Guide · Fizz Geo Redirect

How to block visitors from a country on Shopify

Stop orders from countries you don't serve with shipping settings, then decide whether you also need to stop browsing. What a country blocker can and can't stop.

Updated

"Blocking a country" can mean two different things, and they need different tools:

  1. Stop orders from a country. Shopify does this natively.
  2. Stop people browsing your store from a country. That needs an app or custom code, and it's never airtight.

Start with the first. Many stores find it's all they needed.

Step 1: stop orders (native, free)

Shopify only lets customers check out to countries you ship to. If a country isn't in any of your shipping zones (and isn't in a market you sell to), customers there can't complete checkout with a delivery address in that country.

In your admin, open Settings → Shipping and delivery, open each shipping profile, and check the countries in each zone. Also check Settings → Markets so you aren't selling to a market you can't serve. A Shopify Community thread on blocking customers lists this as the first option, before apps or code (thread).

This is the one that matters for legal reasons. Whatever happens on the storefront, a checkout can't ship somewhere your shipping settings don't allow.

What it doesn't do: visitors can still browse, add to cart, and only learn at checkout that you don't ship to them. That can mean wasted ad clicks, abandoned checkouts, and in some cases fraud attempts using foreign cards with domestic addresses (shipping zones don't stop those).

Step 2: decide whether to stop browsing

Reasons stores block browsing:

Reasons not to:

How storefront blocking works (and its limits)

Shopify themes and apps can't run code on Shopify's servers before the page is sent, so every theme-based blocker works the same way: the page loads, a script finds out the visitor's country, and if it's blocked, the script covers the page with a message.

That means:

Some apps go further and block by IP address ranges, VPN and proxy detection, or known bots, which catches more but costs more and can block real customers. For real legal restrictions, rely on step 1 and treat a blocker as the polite front door.

The custom code route

The same Community thread mentions custom JavaScript. If you have a developer: Shopify's storefront exposes the country it suggests for a visitor at /browsing_context_suggestions.json (shopify.dev). A script in your theme can read it and show an overlay for listed countries. Remember to skip search engine user agents, to leave your policy and contact pages reachable, and to give yourself a way to test.

Checklist for any blocker

Where an app helps

Fizz Geo Redirect has a blocklist or an allowlist with your own title and message, in the same app as its country redirects. Search engines, ad and preview bots and speed tools are never blocked. Policy, contact, cart, checkout and account pages are excluded by default (you can edit the list). Test mode lets you add ?fizz_geo_country=DE to any address to see what a visitor from Germany sees. The country comes from Shopify in the visitor's browser, so no visitor data reaches our servers.

It has the limits above: a VPN gets past it, and because search engines are never blocked, a blocked country can still find your store in search results. The settings page reminds you to remove those countries from shipping too. It's free while it launches.