Depict
Guide9 min read · Updated November 2026 · By Depict

The calm guide to blocking Shopify bot traffic

Shopify now filters bots out of its reports, which hides them without stopping them. How to check whether that is enough for your store, and if not, how to filter them at the network edge with a free Cloudflare account while staying visible to Google and AI assistants.

Updated November 2026, after Shopify changed how it counts sessions. Cloudflare and Shopify both move fast here, so where this guide names a setting, it describes what the setting does, not where the button sits this month.

One merchant we work with found that around 70% of their traffic came from China. They do not sell there, ship there, or advertise there. Orders from that traffic: zero. Another counted 250,000 sessions in a month and concluded that roughly 215,000 were bots. Neither store is unusual. Bots made up 57% of ecommerce traffic in the 2024 holiday season, according to Radware.

In September 2026, Shopify started filtering identified bots out of its session reports by default. That is good news, and for many stores it is enough. But the filter hides bots from a report. It does not stop them. They still load your pages, and nothing in Shopify's documentation says they stop firing your ad pixels or counting in the apps that bill you by traffic.

This guide helps you work out which kind of store you are. If the bots are a rounding error, you can stop after the next section. If they are half your traffic, the rest shows how to filter them before they reach Shopify, with a free Cloudflare account, without going dark on Google or the AI assistants. No developer required.

Do you still need to do anything?

Ten minutes in Shopify admin will tell you. Look at a 30 to 90 day window, since shorter ones swing too much to read.

  1. Bring the bots back into view. Open a sessions report and, under filters, set "Human or bot session" to show both. The gap between that number and the default view is the share Shopify has identified (Shopify docs).
  2. Put sessions by location next to orders by location. A country with thousands of sessions and no orders is the classic signature. Shopify also points to data center cities such as Ashburn, Virginia, and to search terms that read like machine output.
  3. Check the tools Shopify's filter does not reach. In GA4, look for engagement near zero, a source of Direct or "(not set)", and a country outside your markets, all three together. Then look at the usage meters of any app that bills by sessions or pageviews.

Read Shopify's number as a floor. Shopify says its detection is deliberately conservative, because it would rather miss bots than mislabel a customer. And like GA4, it counts with JavaScript in the browser, so a bot that never runs JavaScript is invisible to both while still loading your pages.

  • A small share, and nothing odd in GA4 or your app bills? Stop here. Shopify's default filter is doing the job, and you have better things to do.
  • A third of your traffic or more, or one country that never buys? Keep reading. Write down total sessions, bot share, and the countries that dominate. You will want the before and after.

What hidden bots still cost you

A cleaner Shopify report is the start, not the fix. Three costs sit outside it.

  • Tools billed by traffic. Heatmaps, popups, personalization, and analytics apps often price by sessions or pageviews. Lucky Orange, for one, runs from $32 a month for 3,500 sessions to $839 for 300,000. These vendors filter known bots, but recent waves use residential proxies and human-like browsing to slip past. Shopify notes that apps reading its own session data will see the new counts. Apps that count for themselves will not.
  • Poisoned ad signals. Meta and Google learn from the traffic their pixels see. Sessions that bounce every time teach them the wrong lessons, and bot clicks on paid ads burn budget directly. In the Shopify community threads from the late 2025 wave, this was the damage merchants named most.
  • Data everywhere else. GA4 and any tool that ranks products by views and clicks still see the bots Shopify now hides. Junk sessions make the pages they hammer look popular, and decisions follow the fiction.

Pick the tools you pay for by traffic, add your session count and bot share, and see the annual number:

The bot bill

Pick which of your tools bill by traffic, plug in your sessions and bot share, and see what a year of serving robots costs you.

What Shopify does, and what it leaves to you

Every Shopify store already sits behind Shopify's own Cloudflare setup, with DDoS protection, a firewall, and hCaptcha on forms (Shopify docs). Plus stores can add checkout bot protection for product drops of up to 60 minutes. What you do not get is control. There is no setting in Shopify admin to block an IP range, challenge a country, or slow down a scraper.

Bot-blocker apps cannot fill that gap. An app runs as JavaScript in your theme, after the page has been served and the visit counted, and a bot that skips JavaScript never runs it at all. Removing a country in Shopify Markets stops checkout from that region, not browsing. The only structural fix is to filter traffic before it reaches Shopify, which means putting your own Cloudflare account in front.

The bots you want to keep

Hands placing a mint-green sweater on a neat stack of keepers, a pile of grey knits waiting beside it

Do not turn every defense to maximum. Some bots are how shoppers find you: Google and Bing, Meta's link previews, and the crawlers behind AI assistants. That last group is small but growing fast. Adobe measured AI-referred visits to US retail sites up 693% year over year in holiday 2025, converting 31% better than the average visitor. OpenAI is blunt about the stakes: sites that opt out of its search crawler "will not be shown in ChatGPT search answers" (OpenAI bot docs).

KeepWhy
Googlebot, BingbotSearch. Never block these
facebookexternalhitLink previews on Facebook, Instagram, Messenger
OAI-SearchBot, Claude-SearchBot, PerplexityBotThe indexes AI assistants answer from
ChatGPT-User, Claude-User, Perplexity-UserLive page fetches when a shopper asks an assistant about you
GPTBot, ClaudeBot, meta-externalagentTraining crawlers. Optional, and no effect on visibility today

One trap with training crawlers. Cloudflare lets you block "Training" as a whole category, but that category also covers crawlers that do search and training in one, and Cloudflare names Googlebot, Bingbot, and Applebot. Block the category and you can block Google. If you want training crawlers out, block them one by one instead.

Pick your strategy before you touch DNS

The setup is the same for everyone. What differs is which rules you switch on afterward. Where you have the choice, prefer a managed challenge over a block: a quick automated check most humans pass without noticing and most bots fail.

Baseline bot defense, for every store. The free plan's Bot Fight Mode is one toggle that challenges known simple bots. It is blunt: it covers the whole domain and allows no exceptions, so click through your store afterward and check that nothing broke. The Pro plan ($20 to $25 a month) swaps it for Super Bot Fight Mode, which adds exceptions, an allow switch for verified good bots, and bot analytics. For a store with a real problem, Pro is usually worth it.

A geo-fence, if one country floods you and never buys. One custom rule does it, following Cloudflare's own pattern. The expression is:

ip.src.country eq "CN" and not cf.client.bot

Set the action to managed challenge. The "not cf.client.bot" part exempts verified crawlers such as Google. A challenge rather than a block matters here, because VPN users, travelers, and expats are real people who will pass it. Free plans include 5 custom rules. EU merchants: the geo-blocking regulation (2018/302) prohibits blocking shoppers in other EU and EEA countries.

An AI crawler policy you chose yourself. Cloudflare sorts AI bots into Search, Agent (fetching a page because a person asked), and Training, and lets you set each one on every plan (Cloudflare docs). Its defaults have changed more than once since 2025, and they differ by when your account was created. Do not inherit one. Open the setting, allow Search and Agent, and leave Training allowed unless you block individual crawlers in AI Crawl Control. Five minutes.

Or stop at Shopify's filter. No setup and no risk. The honest choice if your bot share is modest or a DNS change is too much this quarter.

Most stores with a real problem want the baseline and the AI policy, plus the geo-fence if the geography is lopsided.

Moving your DNS without losing sleep

Hands plugging a yellow network cable into a small black switch on a desk

Cloudflare's rules only apply once your domain's DNS points at Cloudflare, so traffic passes through it on the way to Shopify. This is the step merchants fear, and reasonably. But the move happens in two safe stages, the failure modes are few, and every one of them has an exit that takes seconds.

The whole move hinges on one control: the little cloud next to each DNS record in Cloudflare, grey or orange. Flip it yourself:

The one toggle that matters

Every record in Cloudflare's DNS panel has a little cloud next to it, grey or orange. The whole setup hinges on knowing the difference. Flip it.

CNAMEwwwshops.myshopify.com

Your www record in Cloudflare, roughly as the panel shows itClick the cloud ↑

Shoppers and bots
Cloudflaregives directions, then steps aside
Your store

Grey cloud: Cloudflare is an address book

Someone asks "where does www.yourstore.com live?", Cloudflare answers, and steps out of the way. Every visitor, human or bot, then connects straight to your store. Nothing is filtered, nothing changes. This is the safe starting state: you can move your DNS to Cloudflare and leave everything grey, and your traffic flows exactly as before.

The flip works both ways, in seconds. Orange misbehaving? Click it back to grey and traffic flows like Cloudflare was never there. That is the whole rollback plan.

Cloudflare supports this setup. Shopify does not. Cloudflare documents it on every plan, including Free. Shopify says plainly that it does not support a Cloudflare proxy in front of your store, that it can interfere with certificates and make Shopify's own bot detection less accurate, and that resulting problems are outside its support. In practice it works and many stores run it, but expect "please disable your Cloudflare proxy" as the first reply on any domain support ticket. Weigh that before you start.

Before you touch anything

  1. Inventory your DNS. Wherever your DNS lives today, export or screenshot every record. Email records (MX, SPF, DKIM, DMARC) and verification records (Google Search Console, Meta) matter most. Missed email records are the most common self-inflicted wound, and Cloudflare warns that its importer may not find everything.
  2. Lower your TTLs and test your logins. A day or two ahead, set record TTLs to 300 seconds so any mistake clears in minutes. Confirm you can log in to your registrar, because the rollback runs through it.
  3. Check your Shopify records are standard. An A record to 23.227.38.65 and a www CNAME to shops.myshopify.com (Shopify docs). If yours differ, find out why first.

The move itself

  1. Create a free Cloudflare account and add your domain. Cloudflare imports your records. Compare them against your inventory one by one and add anything missing.
  2. Leave every record on "DNS only" (grey cloud). This way the move changes nothing about how traffic flows.
  3. Change your nameservers at the registrar to the two Cloudflare gives you. This can take up to 24 hours and is usually faster. Your store keeps working throughout, because the records are identical.
  4. Wait for Cloudflare to mark the domain Active, then check the store loads, admin works, and a test email arrives.

Turning the filter on

  1. Flip the www CNAME to proxied (orange cloud), and only that record. Because it points to shops.myshopify.com, Cloudflare recognizes the Shopify link and shows a Shopify icon next to it. Your rules now apply to storefront traffic. Everything else stays grey.
  2. Leave the bare-domain A record grey, and make www your primary domain in Shopify. Shopify redirects the bare domain to the primary one, so every visitor lands on the filtered www. A proxied A record in front of Shopify is what produces certificate errors.
  3. Never enable "Always Use HTTPS" on this domain. It blocks the check Shopify uses to renew your certificate, and the failure shows up weeks later (Cloudflare's Shopify guide has the safe alternative). Set SSL/TLS mode to Full (strict), never Flexible.
  4. Switch on the strategy you picked: bot defense, the geo rule if you chose one, and your AI policy.

Prove it worked

The same evening, and again after a day:

  • The store loads over HTTPS on www and the bare domain, including from your phone off wifi.
  • A real test order goes through checkout, payment included.
  • Shopify admin, Settings, Domains shows SSL active and no proxy warning.
  • Email arrives and sends on your domain, and Search Console and Meta still show verified.
  • Cloudflare's security analytics show challenges being served and almost none solved. Bots do not solve them. Humans do.

If something breaks

  • Flip the www record back to grey. Within seconds to minutes, traffic flows exactly as it did before. This clears certificate errors, redirect loops, "SSL pending", and proxy warnings while you investigate. It is almost always the only exit you need.
  • Full rollback: point your nameservers back to the old DNS host. Leave the old records in place there for a couple of weeks so this stays a five-minute job.

The week after

  • Sessions drop outside Shopify. That is the fix working. GA4 and your traffic-billed apps will show the cliff. Shopify's default reports may barely move, since they were already hiding the bots Shopify caught. Annotate the date so nobody reads it as a traffic problem in three months.
  • Trust Cloudflare for traffic and Shopify for orders. Cloudflare counts everything that arrives, including what it turned away. Shopify sees proxied traffic less clearly, by its own account.
  • Watch for the rare real person caught in a rule. Cloudflare's security events show which rule matched each request. Soften that rule from a block to a challenge, or add an exception above it.

Why is a merchandising company writing this?

Because our merchants kept asking, and because we have a stake. Depict's own pricing counts sessions without separating bots, so floods push customers toward limits for traffic that will never buy. Bots also pollute the views and clicks that merchandising runs on. Cleaner traffic means saner costs and honest data, and honest data is the raw material of good merchandising. That is the job Depict does.

FAQ

Shopify filters bots now. Do I still need Cloudflare?

Often not. Since September 2026, Shopify leaves identified bots out of its session reports by default, and for a store with a modest bot share that is enough. The filter only cleans Shopify's own reports. It does not stop bots loading your pages, and it does not reach GA4, your ad pixels, or apps that count traffic themselves. If bots are a third of your traffic or more, filtering them before they reach Shopify is still the fix.

Does Cloudflare work with Shopify?

Yes, with an asterisk. Cloudflare documents the setup on every plan, including Free. Shopify does not support a Cloudflare proxy in front of your store and will ask you to disable it if you contact support about a domain issue. Many stores run it. Run it with the rollback plan in this guide.

Will this break my checkout?

It should not. Checkout runs on Shopify's infrastructure, and Cloudflare switches off Workers and Snippets on the checkout path in this setup. Place a real test order the same evening to confirm it on your own store.

Can I just block all of China (or any country)?

You can, with one custom rule. Prefer a managed challenge over a hard block: VPN users, travelers, and expats are humans who will pass it, and the verified-bot exemption keeps search crawlers unaffected. EU law prohibits geo-blocking shoppers in other EU and EEA countries.

Will I disappear from Google or ChatGPT?

Not if you set things deliberately. Cloudflare exempts verified crawlers from your rules and lets you allow AI search and agent bots. Two things make stores disappear: inheriting a default nobody chose, and blocking the whole Training category, which Cloudflare says also applies to Googlebot and Bingbot.

Do I need a paid Cloudflare plan?

No. The DNS setup, the Shopify routing, Bot Fight Mode, 5 custom rules, and the AI crawler settings are all on the free plan. Pro, at $20 to $25 a month, adds exceptions, an allow switch for verified bots, and bot analytics.

Facts in this guide were verified in November 2026 against vendor documentation and primary reports. Sources are linked inline. If you spot something that has drifted, tell us and we will fix it.

Depict's visual merchandising runs on the behavioral data this guide just helped you clean: curated first rows with rules underneath, on collection pages, learning from real shoppers instead of robots. If you run on Shopify, there is a free tier: install it and see your own collections in it in minutes.

See Depict on Shopify

Want this run against your actual store?

Leave your email and your store's web address and we'll send you a short personalised read within 48 hours: what's visibly working from the outside, what's quietly leaking, and which of the practices in this guide would move the needle first for you.

We'll email you the read. Nothing else unless you ask for it.

About Depict. Depict is visual merchandising software for e-commerce teams: curated collections with boost, bury, and pin rules underneath, and scheduled publishing for collection pages, on top of your existing storefront. Learn more at depict.ai