How to Properly Block Countries on Shopify

Someone running a client’s store asked the Shopify Community how to block countries after foreign traffic spikes. What they were told, and what works.

MSM TECHNOLOGIES6 min read · 16 November 2026
A seamstress works on her laptop at the cutting table in her bright workshop

Shopify has no setting to turn visitors away by country. Its markets and shipping zones decide where you sell, but people from anywhere can still browse. To block countries on Shopify, you need an app that runs in your theme and checks where each visitor comes from. It stops browsing and checkout. It doesn’t keep the visit out of Shopify’s own numbers.

This post starts from a real question on the Shopify Community, as the thread stood in November 2026. The facts about Shopify come from its own help pages and changelog.

What did the store ask?

In July 2024, someone looking after a client’s store asked the Shopify Community how to properly block countries on Shopify. The store was getting huge bursts of traffic from South Korea, and on those days the conversion rate collapsed. They were used to blocking countries at the server on other platforms, and Shopify doesn’t let you touch the server.

A month later, a second store saw spikes from Germany on its checkout pages in another analytics tool, and none of them in Shopify’s reports.

Seven posts later, there is no accepted answer, and the question stands for any store whose numbers swing when nobody real is shopping.

What were they told, and does it work?

The replies came down to three ideas: one is right but doesn’t help, one works at a cost Shopify warns about, and one the asker had already tried.

Don’t worry about the server

The first reply asked whether the store ran anywhere other than Shopify. If it doesn’t, Shopify hosts it, and server load isn’t the store’s problem. That’s fair, but it leaves the reports untouched.

Put Cloudflare in front of the store

Two replies suggested moving the domain’s DNS to Cloudflare and adding a firewall rule that blocks chosen countries. It’s the only idea that stops a visit before it reaches Shopify, and so keeps it out of Shopify’s numbers.

The catch: Cloudflare only applies firewall rules to traffic it proxies through its network. Plain DNS isn’t enough. And Shopify says plainly that it doesn’t support the Cloudflare proxy, including the “orange-to-orange” setup where your Cloudflare sits in front of Shopify’s. Its risks: security certificates that fail to renew, a store that can be slower or offline, weaker bot detection, and a setup that could break at any time, outside Shopify Support’s help.

The asker sensed this: one client ran it and it worked, but that store had more cart bugs than the others. It suits a store with a developer on call. For everyone else, Shopify’s advice is to keep Cloudflare on “DNS only”, which leaves the firewall out.

Use a country blocking app

The asker had already looked at apps. Their verdict was fair: the apps stopped the browsing, but each blocked visitor still showed up as a visit. That’s how an app in your theme works. The browser has to load your page before the app can check where the visitor is.

So an app won’t clean your session count by itself. It does stop the rest: browsing, carts and orders to places you don’t serve.

What does Shopify do on its own?

Nobody in the thread raised it, but if a country isn’t in one of your active markets, visitors from there can browse and view products, but can’t complete a purchase. Leaving a country out of your markets and shipping zones stops orders. It doesn’t stop visits.

Shopify Plus stores can also ask for bot protection at checkout, but it’s built for flash sales, not for bot fraud.

Is the conversion rate problem still real?

Less than in 2024. In October 2025 Shopify added a “Human or bot session” filter to its sessions reports, so you can look at conversion for people only. Since 21 September 2026, the default sessions view focuses on human visitors where that filter is available. Sessions and conversion rate may look different from before; orders and sales don’t change.

Shopify’s reports can now set bots aside. Keeping them out of your store is still up to you.

What does a real fix need?

Put together, a fix has four parts:

What you need

Why it matters

It stops visitors from blocked places

No browsing, no carts, no checkout pages

It checks the address at checkout too

An order to a country you don’t serve can’t go through

It shows where the spikes come from

You see what was blocked and why, in your own log

It works within Shopify’s rules

No proxy Shopify won’t support

How do you block countries on Shopify?

With an app from the Shopify App Store. Public apps with checkout rules run on every Shopify plan.

UCB: Country & Fraud Blocker is the one we make at msmtech, so we’re not neutral. You switch it on in your theme, and on each page it hides the store for a moment while it checks where the visitor is. If they’re in a place you block, they see your own blocking page, in your words and design, or you send them to another page. You can block countries, states and regions, cities, IP addresses, and visitors hiding behind a VPN, Tor or a proxy.

The same country and state lists apply to the shipping address at checkout, so an order to a blocked country can’t be placed, even by someone who got past the blocking page. If the location check can’t finish within ten seconds, the page shows rather than lock out a real customer, and checkout is the backstop.

The app’s bot setting lets search engines through, but a country rule applies to every visitor, crawlers included. If you block a country a search engine crawls from, add a rule that lets it in by name.

As the asker found, blocked visitors still reach your store first, so Shopify can still count them. What changes is everything after: they can’t browse, fill a cart or check out, and the app’s log shows where they came from. If the spikes bring fake orders, the app can also tag or cancel risky orders. We worked out what a fraudulent order really costs a Shopify store →.

Every plan has every feature. The free plan includes 100 visits a month. Paid plans start at USD 4.99 a month with 10,000 visits and a 7-day free trial, and visits above a plan’s allowance are billed on top, as of November 2026.

Frequently asked questions

Can Shopify block visitors from a country without an app?

No. Markets and shipping zones decide where you sell; visitors from outside your markets can browse but can’t buy. Our guide to Shopify shipping rules → covers what zones and profiles can do.

Will blocking a country fix my conversion rate?

Not by itself, because Shopify may still count the visit. The “Human or bot session” filter shows conversion for real shoppers.

Can I block one region, or one customer, instead of a whole country?

Yes. A country blocker can stop states and regions, and a postcode rule goes finer still: see how to prevent Shopify orders to certain postcodes and regions →. To stop one person, see how to block customers on Shopify →.