How do I block visitors from a country on Shopify?
To stop orders from a country, remove it from your shipping zones and from your active markets in Shopify. That's free, built in, and it holds at checkout. To stop people from that country browsing your store as well, you need theme code or a country blocker app, which covers the page with a message. That kind of block runs in the visitor's browser, so someone using a VPN or with scripts turned off still gets through.
What does "blocking a country" mean on Shopify?
It means one of two things, and they need different tools:
- Stop orders from a country. Shopify does this with shipping and market settings.
- Stop browsing from a country. That needs code or an app, and it's never airtight.
Start with the first. Many stores find it's all they needed.
How do I stop orders from a country for free?
Leave the country out of your shipping zones and your active markets. Shopify's help page on shipping zones says customers outside your zones "receive a notice that no shipping rate is available for their region", and "Customers in inactive markets can't place orders even when their country is in a shipping zone with available rates" (Shopify Help Center).
In your admin:
- Open Settings → Shipping and delivery, open each shipping profile, and check the countries in each zone.
- Open Settings → Markets and make sure you aren't selling to a market you can't serve.
When a UK store owner asked on the Shopify Community how to make the store "UK exclusive", a Shopify staff reply suggested removing shipping zones outside the home country so "only orders within your country can be completed" (Shopify Community, March 2022).
Is that enough for legal or sanctions reasons?
It's the part that matters most. Whatever happens on the storefront, checkout won't ship to an address your settings don't allow. A browser-based blocker is the polite front door on top of it, never a replacement.
What doesn't it stop?
Browsing. Visitors still see your products and prices, add to cart, and only learn at checkout that you don't ship to them. That can mean wasted ad clicks and abandoned checkouts.
Should I also stop people browsing?
Only if you have a reason. Common ones:
- 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 a dead end: "we don't deliver to you yet" is kinder than a failed checkout.
And reasons to hold back:
- Search engines. Google notes that "the Googlebot crawler usually originates from the USA" (Google Search Central). A blocker that doesn't skip crawlers, or an allowlist that leaves out the US, can block Google itself.
- Wrong locations. Shopify warns 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 does a storefront country block work?
A script in your theme finds the visitor's country after the page loads and covers the page with a message if that country is blocked. Shopify themes and theme apps can't run code on Shopify's servers before the page is sent, so every theme-based blocker works this way.
That has three consequences:
- It stops ordinary visitors. Most people never notice the script.
- It doesn't stop determined ones. A VPN changes the detected country, and turning scripts off skips the check.
- The page has already loaded. The content is in the page source, so a block won't keep prices secret from someone who looks.
Some apps go further and block by IP range, VPN and proxy detection, or known bots. That catches more, costs more, and can block real customers.
Can I block a country with theme code instead of an app?
Yes, with a developer. Shopify's storefront tells your theme which country it detects for a visitor at /browsing_context_suggestions.json (shopify.dev). A script can read it and show an overlay for the countries you list. Note that Shopify's guide lists "You have more than one market configured on your Shopify store" as a requirement for that endpoint.
If you build it yourself, remember to:
- Skip search engine and link-preview user agents.
- Leave your policy, contact, cart and account pages reachable.
- Give yourself a way to test a country without a VPN.
What should a country blocker do?
Six things, whether you build or install it:
- Never block bots and crawlers, so your store stays in search results.
- Keep policy, contact, cart and account pages reachable, so people can read your terms and get in touch.
- Show your own message, not a bare "Access denied".
- Offer a test mode, so you see what a blocked visitor sees.
- Support an allowlist ("only these countries") if you sell to a handful.
- Match your shipping zones, so the two never disagree.
What do country blocker apps cost?
From free to around $30 a month for most stores. Prices from each App Store listing on 28 November 2026:
- Blockify Fraud Filter, Blocker: free plan with up to 2 active block rules and analytics for the first 200 visitors. Premium is ₹923.56 a month (about $9.97) for up to 50 block and redirect rules plus VPN, proxy and bot blocking. Enterprise is ₹2,772.54 a month (about $29.94) for unlimited rules (listing).
- Cozy Country Redirect: no free plan, a 21-day trial, and ₹646.22 to ₹1,941.42 a month (about $6.98 to $20.97) by Shopify plan. Its Basic and Professional plans list a country blocker (listing).
The listings showed prices in Indian rupees for our location, at the listing's own rate of 1 INR = 0.0108 USD, so your price may differ.
Does blocking a country hurt SEO?
Not if crawlers are skipped. The trade-off is the other way round: because search engines aren't blocked, people in a blocked country can still see your store in search results. They just meet the block message when they click. If you also want to send some countries to another store instead of blocking them, see How do I redirect Shopify visitors by country without hurting SEO?
Where does Fizz Geo Redirect fit?
Fizz Geo Redirect has a blocklist or an allowlist with your own title and message, in the same app as its country redirects. It's free while it launches.
- Search engines, ad and link-preview bots and speed tools are never blocked.
- Policy, contact, cart, checkout and account pages are excluded by default, and you can edit the list.
- Test mode lets you add
?fizz_geo_country=DEto any store 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, and blocks keep working if our server is down.
It has the limits above. A VPN or scripts turned off get past it, location can be wrong for travellers, and a blocked country can still find your store in search. The settings page reminds you to remove those countries from shipping as well. It doesn't block by IP range or detect VPNs; Blockify does. The free redirect planner helps you decide which countries to block and which to redirect, and What replaced the Shopify Geolocation app? covers Shopify's own redirection. See the comparison for prices side by side.