How to Stop Bot Traffic From Specific Countries on Shopify
A store asked the Shopify Community why bots from three countries got past Cloudflare and a blocking app. What it was told, and what really helps.


You can’t stop bot traffic from specific countries on Shopify with a country block alone. A country is the bluntest rule you can set, and some of this traffic never passes through the tools you put in front of your store. What works is two things together: Shopify’s own bot filter for your reports, and rules that look at the network and the browser, not just the flag.
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 April 2026, a store asked the Shopify Community about a flood of bot traffic from specific countries. About a third of the store’s visits came from Bangladesh, a fifth from India and a tenth from Nepal. None of it added to cart, reached checkout or ordered, and all of it showed up in Shopify’s analytics and Live View.
The store had blocked those countries in Cloudflare, with rate limits and bot filtering, redirected its Shopify address to its main domain, and installed a country and VPN blocking app. The traffic kept coming, and Cloudflare never saw it.
In August 2026 a Shopify Plus store joined in: in ten days, Singapore brought 41% of its sessions, no orders, and visits that averaged under a second. Its conversion rate more than halved. Eight posts in, there is no accepted answer.
What were they told, and does it work?
The replies came down to five ideas, two of which the store had already tried.
Block the countries in Cloudflare
Cloudflare only applies its firewall to traffic that passes through its network. A bot that goes to Shopify by another road, which is what the store and one reply suspected, never meets the rule. And Shopify doesn’t support putting Cloudflare’s proxy in front of a store; it lists weaker bot detection among the risks. The Plus store said its account manager advised against it too.
We cover the Cloudflare question in how to block countries on Shopify →.
Install a country and VPN blocking app
The store tried this and saw no real change in its analytics. That’s how these apps work. An app in your theme runs in the visitor’s browser after Shopify has already served the page, so the visit is counted before the app can act. A bot that doesn’t run scripts at all is never seen by the app.
An app changes what the visitor can do next. It doesn’t clean a report.
Ignore Shopify’s numbers and use another tool
Two replies said most stores live with it: trust a separate analytics tool, judge by orders, and treat Shopify’s sessions as a rough guide. It’s a sensible stopgap, but it was written before Shopify changed its own numbers.
Filter your reports to people
The last reply had the best answer to the reporting problem: a report filtered to human sessions for conversion, and the unfiltered one to spot surges. Shopify added that “Human or bot session” filter in October 2025, and it is the first thing to use.
Look at the network, not the country
The same reply suggested comparing user agents, IP addresses and networks, and blocking a repeating pattern rather than a whole country, which can turn away real customers. We agree. A country tells you only where a connection appears to come from, and a VPN or a hosting network can change that.
Does Shopify filter bots now?
Yes, more than when the thread started. Shopify labels each session as human or bot, on purpose leaning toward missing a bot rather than mislabelling a customer. Since its September 2026 update, identified bot sessions are left out of session reports by default, and on the Home page and Live View they are always left out. Orders and sales don’t change.
Bots Shopify doesn’t recognise yet can still show up, which is where blocking comes in.
Shopify can now keep bots out of your numbers. Keeping them out of your store is a separate job.
What does a real fix need?
What you need | Why it matters |
|---|---|
Reports filtered to people | Your conversion rate means something again |
Rules on VPN, proxy and hosting networks | A country rule turns away real customers too |
A log of who was blocked and from where | You block a pattern, not a guess |
Nothing Shopify won’t support | No proxy in front of your store |
How do you stop bots from specific 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. It checks each visitor as the page loads and can block by country and region, and also by what a country rule misses: VPNs, Tor, proxies, a provider or a whole network. Each visit in its log shows the network it came from, so when a wave hits, you can block that network in one step instead of a country.
Its “Block unknown bots” setting stops browsers that call themselves automated, such as headless browsers and scraping tools, while search engines and link previews stay allowed. If you do block a whole country, read how to block countries without blocking Googlebot → first. With risk protection on, each visit is scored on signals such as a hosting network, a threat list, a time zone that doesn’t match the location and rapid repeat visits, and “Block risky visitors” turns away those over your threshold.
The limits, plainly. It runs in your theme, so it can’t stop a bot that doesn’t run scripts or never loads your storefront, and Shopify may still count a blocked visit. A bot that disguises its browser name won’t trip the bot setting, though a rule on its network can. And every visit the app checks counts toward your plan, blocked ones included, so a store under a bot wave should check its spending limit in Shopify billing. If bots are filling carts rather than just browsing, see how to stop bots creating and abandoning carts →.
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
Why doesn’t Cloudflare see this bot traffic?
Cloudflare only acts on traffic routed through its network, and Shopify supports it only as “DNS only”, which routes nothing through it. Even with the proxy on, a bot that reaches Shopify another way never meets your rules.
Will blocking a country clean up Shopify Analytics?
Not by itself, since the visit can be counted before an app acts. Shopify’s “Human or bot session” filter cleans the reports, and is now the default.
Should I block whole countries to stop bots?
Only if you don’t sell there. Otherwise block the networks and VPNs the bots use and keep the country open. To stop one person rather than a crowd, see how to block customers on Shopify →.