GUIDE · UPDATED 25 NOVEMBER 2026
How to restrict Shopify checkout by country: 5 methods compared (2026)
"Block a country" means different things depending on what you sell and why. A store that can't ship to Brazil, a creator who can't sell a course in the EU without VAT, and a merchant drowning in card-testing from one region need three different tools.
Below are the five methods Shopify merchants use, what each one actually checks, and a quick way to pick. I build DigiBorder, one of the apps in this list, and I've noted where other tools are the better fit.
The 5 methods at a glance
| Method | Checks | Best for | Weak spot |
|---|---|---|---|
| 1. Shipping zones | Shipping address | Physical products you can't ship somewhere | Does nothing for digital products |
| 2. Shopify Markets | Market the buyer is placed in + shipping | Where you sell, prices, currencies | Digital carts skip shipping |
| 3. IP country blocker | Visitor's IP location | Bots, scrapers, fraud traffic | VPNs; hides the whole store |
| 4. Checkout rule (billing or shipping country) | Address at payment | Who may buy: tax, licensing, sanctions | No POS or admin orders |
| 5. Shopify Flow after the order | The finished order | Review and cancel edge cases | Acts too late for downloads |
What are you trying to stop?
More than one? Run one of each. They check different things at different moments, so they don't conflict.
Method 1: Shipping zones (physical products)
Go to Settings → Shipping and delivery, open your shipping profile, and make sure the country isn't in any zone. With no shipping rate available, a buyer can't complete checkout for a physical order. It's free and built in, and for physical-only stores it's usually all you need.
It doesn't help with downloads, courses, memberships or gift cards. Those don't require shipping, so the zone is never checked.
Method 2: Shopify Markets
In Settings → Markets, keep the country out of every active market. Markets controls where you sell, in which currency and at which prices, and you can exclude products per market with catalogs. Checkout enforcement still comes from the shipping address, which is why digital products slip through. Here's the full explanation and the fix.
Method 3: IP country blocker apps
Apps like Blockify, MIDA, BM Country Blocker and Securify look up each visitor's IP address and block or redirect by country. Many also detect VPNs, proxies and bots. They're the right tool for traffic problems: scraping, card testing, fake orders from one region.
They're a weak tool for who may buy. A VPN changes the IP country, travellers abroad are blocked from their usual stores, and the buyer's billing address is never checked. If your reason is tax, licensing or sanctions, the IP is a proxy for the thing you actually care about.
Method 4: A checkout rule on the billing or shipping country
Shopify lets apps add checkout validation rules that run on Shopify's servers when the buyer completes checkout. If the rule fails, the buyer sees a message and no order is created. Apps from the App Store can do this on every plan; writing your own custom function needs Shopify Plus.
| App | What it checks (per its listing) | Best for | From |
|---|---|---|---|
| DigiBorder | Billing country for products that don't require shipping; Basic adds sanctions protection by billing and shipping address; Strict adds the shipping country, an optional IP country check per list and product rules | Digital products: tax, licensing, sanctions | Free · $9.99/mo |
| Cart Lock | Rules built from cart, product, customer, market and shipping-address conditions | Physical stores needing many checkout rules | $6.99/mo |
| BCV: Billing Country Validator | Billing country against an allow or block list, whole cart | One billing rule for every product | $2.99/mo |
For digital products I recommend DigiBorder, and not only because I built it. It's the one designed around the digital cart: physical-only carts always pass, mixed carts are optional, express wallets are covered, and the Free plan blocks one country with no billing approval. If you also want the IP country to count for the sale, Strict can add an IP country check to each list. For a physical store with a long list of shipping conditions, Cart Lock is the better fit.
Method 5: Shopify Flow after the order
A Flow workflow can tag, hold or cancel orders whose billing or shipping country is on a list. It's free and useful as a second net. But it runs after the order exists: the payment is taken, fees are spent, and for a download the link has usually been sent. Use it to catch edge cases, not as the block.
Stores that sell physical and digital products
Most stores that need country rules sell both: printed books and ebooks, a physical planner and a printable one, merch and a course. Use each tool for its own job and they don't get in each other's way:
- Physical products keep using shipping zones and Markets. You ship where you ship.
- Digital products get a billing-country checkout rule. DigiBorder only checks products that don't require shipping, so physical-only carts always pass.
- Mixed carts (an ebook plus a printed copy in one order) are your choice: on Basic and Strict you decide whether the digital item in a mixed cart is checked too.
| Cart | Shipping zones | DigiBorder rule |
|---|---|---|
| Physical only | Checked | Not involved |
| Digital only | Skipped by Shopify | Checked |
| Mixed | Checked for the physical item | Checked if you turn on mixed-cart coverage |
Blocking states and provinces, not whole countries
Some rules are narrower than a country: a licence that excludes Quebec, a product you can't sell in one US state, an Australian state with its own rules. For physical products, shipping zones can exclude provinces and states. For digital products, DigiBorder's Strict plan can block specific US states, Canadian provinces or Australian states by the billing address. IP blockers like BM Country Blocker can block visitors by state or city, with the usual VPN caveat.
How to test any of these methods
- Use a private browser window and no VPN, unless you're testing the VPN case on purpose.
- Test the product type you actually sell. A physical product will pass a test that a download fails.
- Enter a billing address (and for physical items a shipping address) in the blocked country.
- Try the normal checkout and at least one express button: Shop Pay, Apple Pay, Google Pay or PayPal.
- Test an allowed country too, so you know you haven't blocked real customers.
Common mistakes
- Using an IP blocker for a legal or tax reason. It filters visitors, not buyers, and a VPN gets through.
- Blocking the whole store when you only need to block a sale. You lose browsing visitors, newsletter sign-ups and physical orders from that country.
- Forgetting allow lists. If you only sell to a handful of countries, list those. A block list easily misses one.
- Relying on cancellations. For downloads, cancelling after payment doesn't take the file back.
- Not telling the buyer why. A clear message at checkout saves you support time and chargebacks.
Which method should you use?
- Physical products only, can't ship somewhere: shipping zones and Markets. Free, built in.
- Digital products you can't sell in a country (VAT, licensing, sanctions): a billing-country checkout rule. DigiBorder is built for this.
- Bots, scrapers, card testing from a region: an IP blocker with VPN detection, such as Blockify or MIDA.
- Both a traffic problem and a selling restriction: an IP blocker for traffic plus a checkout rule for sales. They don't conflict.
- A selling restriction where the IP country should count too: DigiBorder Strict, which can add an IP country check to each country list, on top of the billing country.
- A safety net for odd cases: Shopify Flow on top of any of the above.
Free
$0
No time limit
- Block one billing country
- All-digital carts
- Standard message
- No sanctions protection
Basic
$0.99 first month
then $9.99/mo, or $89.99/yr · billed through Shopify
- Sanctions: Russia, Belarus, occupied UA
- One block or allow list, with presets
- Your own message and a recovery link
- Mixed carts (optional)
Strict
$14.99/mo
or $134.99/yr · billed through Shopify
- Full sanctions list, IP and time zone
- Up to 3 country lists, you pick who wins
- Optional IP country check per list
- Shipping country check
- Rules for 50 products, 25 tags, 25 collections
- US/CA/AU states, login, fail-closed
Questions
How do I block orders from a specific country on Shopify?
For physical products, remove the country from your shipping zones and Markets. For digital products, add a checkout rule that checks the billing country, because digital carts skip shipping.
Can I restrict checkout by billing country without Shopify Plus?
Yes. Checkout rules from App Store apps such as DigiBorder run on every Shopify plan. Only custom-built checkout functions require Plus.
What's the difference between a country blocker and a checkout rule?
A country blocker checks the visitor's IP when a page loads and hides the store. A checkout rule checks the address the buyer pays with when they complete checkout, and only stops the purchase.
Can customers get around country restrictions with a VPN?
Around IP blockers, yes. Around a billing-country checkout rule, no: a VPN changes the IP address, not the billing country.
Can I block a US state or Canadian province instead of a country?
Yes. DigiBorder's Strict plan can block specific US states, Canadian provinces or Australian states. IP blockers like BM Country Blocker block by state or city from the visitor's IP.
Will restricting checkout hurt my SEO or traffic?
A checkout rule doesn't: your pages stay open to everyone, including search engines. IP blockers can block crawlers and real visitors if they're set too broadly.