You remove a country from the places you sell to, then notice visits from that country still appearing. That does not necessarily mean the setting failed. Shopify can stop those visitors from purchasing while still letting them browse the storefront.
Leafy’s Quick Answer
To stop checkout from a country, remove it from your active Shopify Markets and confirm it has no usable shipping option. To stop people in that country from accessing the storefront, use a country-blocking app such as ShieldLeaf. These are different controls: can’t check out does not mean can’t visit.
First decide what “block” should mean
Country blocking can solve two different problems. Choose the outcome before changing settings.
| Your goal | Use | What the visitor experiences |
|---|---|---|
| Do not accept orders shipped to a country | Shopify Markets and shipping settings | The visitor can browse but cannot complete a purchase |
| Do not let traffic from a country browse the storefront | A storefront country blocker | The visitor sees a blocked-access page or is redirected |
This distinction matters when unwanted regional visits are cluttering traffic reports or when showing the storefront in a region is itself the problem. Removing a country from Markets is a selling restriction, not a storefront access rule.
Option 1: Stop checkout with Shopify Markets
If the goal is simply not to sell to a country, start with Shopify’s native settings:
- In Shopify admin, go to Markets.
- Open the market that contains the country.
- In Includes, edit the country list and remove that country, or move the whole market to Draft if you no longer sell anywhere in it.
- Review Settings → Shipping and delivery so the country is not available through an unintended shipping zone or rate.
- Test checkout with an address in that country.
Shopify’s current Markets documentation says customers in inactive markets cannot complete a purchase. Its backup-region documentation also makes the limitation clear: unmatched visitors can still browse products using the backup-region experience.
That is often the right result. A merchant might want international visitors to discover the brand even when delivery is unavailable. But it will not meet a requirement to keep selected country traffic outside the storefront.
Option 2: Block storefront access by country
For storefront blocking, use a tool designed to handle the visit before the person browses the store. ShieldLeaf keeps that setup inside a simple Shopify workflow:
- Install ShieldLeaf and enable its Shopify app embed.
- Open Protection and choose the country or countries to block.
- Select the visitor experience: a blocked-access page or a redirect URL.
- Write a short, neutral message if you use the blocked page.
- Preview the result before switching protection on.
- Turn the rule live, then review recent blocked activity.
The free plan covers one active blocked country, including blocked-page or redirect mode and preview. Pro adds unlimited countries, country groups and presets, and blocked-visit activity logs. No theme-code edits are required for normal app-embed setup.
Choose a blocked page or a redirect
A blocked page is usually the clearest choice when there is nowhere useful to send the visitor. Say that access is unavailable in the region and, if appropriate, provide a support route. Keep the message factual; a visitor might be traveling or using a corporate network.
A redirect is better when another legitimate destination exists—for example, a regional storefront, distributor, or information page. Check that the destination does not immediately redirect the visitor back and create a loop.
Leafy’s Watch-Out
Country rules use IP-based geolocation. VPNs, mobile carriers, and corporate networks can make a visitor appear in a different country. Treat a country block as practical traffic handling, not proof of a person’s identity or a complete fraud-control system.
Test the rule before going live
Do not rely on the country selection alone. Check the full experience:
- preview both desktop and mobile views;
- confirm the blocked message is readable and on-brand;
- test every redirect URL and watch for loops;
- verify that an allowed country can still browse normally;
- make sure the app embed remains enabled in the published theme;
- review activity after launch to confirm the rule is handling the traffic you intended.
The practical decision is simple: use Markets when the boundary belongs at checkout, and use ShieldLeaf when the boundary belongs at the storefront. The image’s equation is the useful memory cue—can’t check out ≠ can’t visit.