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.
"Blocking a country" can mean two different things, and they need different tools:
- Stop orders from a country. Shopify does this natively.
- 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:
- Licensing or distribution deals that mean you mustn't show prices in a country.
- A wave of bot traffic or fraud attempts from one region.
- Saving visitors from a dead end: a clear "we don't deliver to you yet" message is kinder than a failed checkout.
Reasons not to:
- Search engines. If a blocker hides your store from Googlebot, your search listings suffer everywhere. Google notes that "the Googlebot crawler usually originates from the USA" (Google Search Central), so a careless allowlist can block Google itself.
- Location detection isn't perfect. Shopify's own docs warn that "Customers using VPNs or traveling might be detected in the wrong country" (Shopify Help Center). A customer on holiday may be blocked from their home store.
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:
- It stops ordinary visitors. Most people never notice there's a script.
- It doesn't stop determined ones. A VPN changes the detected country; turning off JavaScript skips the script.
- The page has already loaded. The content is in the page source, so it isn't a way to keep prices secret.
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
- Bots and crawlers never blocked.
- Policy pages, contact page, cart and account reachable, so people can still read your terms and get in touch.
- Your own message, not a generic "Access denied".
- A test mode, so you can see what a blocked visitor sees without a VPN.
- Allowlist mode ("only these countries"), if you sell to a handful of countries.
- Shipping zones that match.
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.