When a business tots up what AI is costing it, the sum is usually short and tidy. So many ChatGPT Team seats. A Claude subscription or two. Maybe an API line item that finance has started asking questions about. It lands somewhere between a rounding error and an annoyance, and everyone moves on.
That number is wrong, and not by a little. It is wrong because it only counts the cost of you using AI. It doesn’t count the cost of everyone else using AI on you.
For the last three or four months I have been watching that second cost arrive on my own infrastructure, and it has been considerably more expensive than any subscription I pay for.
The thing I noticed
My web server runs on four cores. That is a perfectly reasonable amount of compute for the traffic it genuinely serves — real people, browsing real pages, at a volume I understand well because I have been measuring it for years.
Over the last three or four months, that stopped being true. Response times degraded — not catastrophically, not all at once, but persistently enough that real customers were getting a slower site. Load average sat where it had no business sitting. The obvious suspects — a plugin update, a bad query, a caching misconfiguration — all came back clean.
What I found instead was volume, and specifically volume from browsers that weren’t attached to people. A large slice of it was sitting in Google Analytics as ordinary sessions — which, as I’ll explain in a moment, is the detail that should worry you most, because it means that traffic was running a full browser and firing my tags exactly like a customer would.
I have since blocked a great deal of it at the edge with Cloudflare, and the origin is healthy again. What follows is what I learned working out what it actually was, and what actually stops it.
None of this appeared on an invoice. It appeared as a slower site for real customers, which is a cost you pay in conversion rate rather than in pounds — and therefore a cost that never gets attributed to its actual cause.
Why this is showing up in Google Analytics at all
This is the part that most people get wrong, and it’s worth being precise about, because it changes what the numbers mean.
Google Analytics 4 excludes known bot traffic automatically. Google’s own documentation says it identifies bots “using a combination of Google research and the International Spiders and Bots List, maintained by the Interactive Advertising Bureau,” and — importantly — that “you cannot disable known bot traffic exclusion or see how much known bot traffic was excluded.”
So GA4 is doing two things for you. It filters against a list. And, far more significantly, it benefits from an accident of physics: classic crawlers don’t execute JavaScript. curl, wget, Scrapy, a plain Python requests loop, even most well-behaved commercial crawlers — they fetch HTML and move on. They never run gtag.js. They never fire a single event. They are invisible to GA4 not because Google filtered them, but because they never knocked on the door.
That accident has been quietly doing the heavy lifting in your analytics for fifteen years. It has now stopped working.
Modern automated traffic is increasingly not a HTTP client. It’s a real Chromium instance. Playwright, Puppeteer, Selenium, browser-use, Chrome DevTools Protocol, computer-use agents, and now an entire consumer category of agentic browsers — OpenAI’s Atlas, Perplexity’s Comet, browser extensions from the assistant vendors. These render the page. They run your JavaScript. They fire your GA4 tags. They fire your Meta pixel. They fire your consent-mode events and your conversion tracking.
Plausible ran a controlled experiment on this in May 2025: a Puppeteer script against a test property, using a mixture of a non-human user agent, normal browser user agent strings, and data-centre IPs in Germany and the US. GA4 recorded 95 sessions as unique visitors, and they were still there after the 48-hour processing window. (Plausible is a direct GA competitor, so treat it as motivated — but the test is documented, and trivially repeatable on your own property.)
Here is the uncomfortable conclusion. The bot traffic you can see in GA4 is, by definition, the traffic sophisticated enough to run a full browser. It is not the cheap stuff. If you are seeing automated hits in Analytics, you are looking at the expensive tail of a much larger distribution — and the tail is the part that costs you the most to serve, because a headless Chromium fetching your page pulls your CSS, your JS bundles, your images and your third-party tags, exactly like a human does.
There’s a real gap in the public record here that I think is worth naming: nobody has measured how much agentic-browser traffic is landing in GA4. The mechanism is certain, the traffic demonstrably exists at scale, and GA4’s stated filtering approach structurally cannot see it. But no one is counting. In the meantime, every marketing team in the country is making decisions on numbers with an unknown and growing contamination rate — which is the same failure mode as a broken event taxonomy, arriving from outside instead of inside.
And the likeliest reason that contamination is growing is the least technical part of this whole story: almost anyone can write a scraper now. The number of people capable of pointing browser automation at your site used to be bounded by the number of people who could code. It isn’t any more. That, far more than any single AI company’s crawler, is what I think is behind the spike — and it’s the part of this nobody is measuring either. More on it below.
A taxonomy of things that aren’t Googlebot
“Bot traffic” is a uselessly broad category, and lumping it together is why most advice on this subject is wrong. Googlebot and someone’s Playwright script are both “bots” in the sense that neither is a person typing. In every way that matters to you, they have nothing in common.
Here is the classification I’d now use. Eight classes, sorted roughly from most honest to least.
| # | Class | Examples | Declares itself? | Runs JS? | Comes from |
|---|---|---|---|---|---|
| A | Verified search crawlers | Googlebot, Bingbot, Applebot | Yes — published IPs + reverse DNS | Yes (Googlebot renders) | Operator data centre |
| B | Declared AI training crawlers | GPTBot, ClaudeBot, CCBot, Bytespider | Yes — published IP lists | No | Operator data centre |
| C | Declared AI fetchers (user-triggered) | ChatGPT-User, Claude-User, OAI-SearchBot, Google-Agent | Yes | No | Operator data centre |
| D | Commercial SEO crawlers | AhrefsBot, SemrushBot, MJ12bot, BLEXBot | Yes (MJ12bot: residential, distributed) | Mostly no | Data centre (mostly) |
| E | Undeclared / stealth crawlers | The Perplexity stealth-crawler case | No — impersonates Chrome | Unknown | Rotating IPs, multiple ASNs |
| F | DIY browser automation | Someone’s Playwright / Puppeteer / Selenium script | No — it is a real browser | Yes | Laptop, VPS, or residential proxy |
| G1 | Cloud agentic browsers | ChatGPT agent (cloud browser) | Yes — cryptographically signed | Yes | Operator cloud |
| G2 | Local agentic browsers | Comet, Atlas, Claude in Chrome | No | Yes | The user’s own residential IP |
| H | Malicious bots | Scalping, credential stuffing, card testing | No, actively evades | Increasingly yes | Residential proxies |
And here’s what each class actually means for you:
| # | In your GA4? | Caught by GA4’s bot filter? | Honours robots.txt? | Can you block it? |
|---|---|---|---|---|
| A | No | Yes — declared UA token | Yes | Yes — but don’t |
| B | No — doesn’t run JS | Yes | 48–63% | Yes, precisely |
| C | No — doesn’t run JS | Yes | Declares it inapplicable | Yes — but it’s a customer |
| D | No | Yes | 69.5% — best of any non-search class | Yes |
| E | Possibly, invisibly | No | 15.5% | Barely — heuristics only |
| F | YES | No | 15.5% overall, 1.1% on disallow-all | Effectively no |
| G1 | Probably (unmeasured) | No | Not stated | Yes — signature is verifiable |
| G2 | YES | No | N/A — it’s a browser | No |
| H | Yes where it renders | No | No | Only with real bot management |
Look at the shape of that. The classes everyone is currently panicking about — B and C, the declared AI crawlers — are the ones that literally cannot appear in your analytics, because they don’t execute JavaScript. The last independent measurement of this, by Vercel in December 2024, found ChatGPT’s and Claude’s crawlers fetch JavaScript files but never execute them. (Nobody has re-measured this since, which is its own small scandal.)
Meanwhile the classes that pollute your analytics, ignore your robots.txt, and cannot be blocked — E, F, G2 and H — are the ones nobody has a name for.
The public conversation has the threat model precisely inverted.
The Googlebot objection, and why it strengthens the argument
The obvious challenge to everything I said about GA4 earlier is: hang on, Googlebot renders JavaScript. Google’s Web Rendering Service is a headless Chromium, and Martin Splitt has confirmed the same WRS is shared across Google Search and Gemini. So why isn’t Googlebot flooding everyone’s Analytics?
The answer is three defences stacked, and it’s worth pulling apart because every one of them fails against the traffic that’s actually a problem.
- WRS declines resources it deems non-essential. Google’s own words: “Googlebot and its Web Rendering Service (WRS) component continuously analyze and identify resources that don’t contribute to essential page content and may not fetch such resources.” (Note it doesn’t name analytics specifically — the widely-repeated claim that it does traces to a conference paraphrase from 2019 with no primary source.)
- WRS is stateless. Also Google’s words: “Local Storage and Session Storage data are cleared across page loads. HTTP Cookies are cleared across page loads.” GA4’s
client_idlives in the_gacookie — a stateless renderer can’t hold a session identity even if the tag fired. - GA4 filters it at ingestion anyway, because
Googlebotis a literal token in a user-agent string list.
Now notice what those three defences have in common. Every one of them is a defence against honesty, not against rendering. Googlebot is filtered because it announces itself, behaves predictably, and doesn’t try to look like a person.
Class F announces nothing. It’s a real Chrome, with real cookies, real state, a real session, and no distinguishing token anywhere. All three defences fail at once — which is exactly what Plausible’s Puppeteer experiment demonstrated, with 95 sessions counted as unique visitors even from German and US data-centre IPs.
Worth being clear about the underlying mechanism: GA4’s bot exclusion runs on the IAB/ABC International Spiders and Bots List, which is a list of user-agent strings, updated monthly, and sold for between $5,000 and $15,000 a year depending on membership. It is a very good list of bots that tell you who they are. It is structurally incapable of catching one that doesn’t.
What robots.txt compliance actually looks like
I’d assumed the numbers here were guesswork. They aren’t. There’s a proper peer-reviewed study — Kim et al., presented at the ACM Internet Measurement Conference 2025 — that deployed four escalating robots.txt versions across 36 institutional websites over 40 days and measured 3.9 million requests from 130 identified bots.
Compliance, by category and by how strict the directive was:
| Class | Overall | Crawl-delay | Endpoint restriction | Disallow all |
|---|---|---|---|---|
| SEO crawlers | 69.5% | 63.5% | 83.1% | 63.9% |
| AI search crawlers | 63.1% | 89.5% | 62.3% | 34.8% |
| AI assistants | 61.6% | 91.0% | 13.1% | 100% |
| AI data scrapers | 55.9% | 56.0% | 35.2% | 76.6% |
| Intelligence gatherers | 45.0% | 80.9% | 37.2% | 9.4% |
| Headless browsers | 15.5% | 3.6% | 27.8% | 1.1% |
Three findings worth carrying:
Compliance collapses as the ask gets stricter. Roughly 61% for a polite crawl-delay, around 31% once you actually disallow something. Bots are happy to slow down. They’re much less happy to stop.
A quarter to a third of bots never fetch robots.txt at all. And AI assistants and AI search crawlers had the lowest re-check rates — under 40% looked again within a 168-hour window. Change your robots.txt today and a large fraction of crawlers won’t notice for a week, if ever.
Individual bots vary enormously. Amazonbot scored 97.3 / 100 / 100. ClaudeBot 48.0 / 100 / 100. GPTBot 63.4 / 30.5 / 100. Bytespider scored 39.8 / 0 / 0 — it complied with precisely none of the endpoint or disallow directives.
And headless browsers — your Class F — at 1.1% compliance with disallow-all. That is the single most useful number in this entire article, because it quantifies the thing everyone assumes and nobody proves: robots.txt is a convention observed by parties who were never the problem.
The same study found something else worth knowing: 18 well-known bot identities showed anomalous ASN patterns consistent with user-agent spoofing — including traffic claiming to be Googlebot, Amazonbot and GPTBot arriving from infrastructure those operators don’t own. So even your allow-list is being impersonated.
Why you cannot block Class F. Really.
I want to be blunt about this, because a lot of vendor content implies otherwise.
The classic detection signals against browser automation — navigator.webdriver, the HeadlessChrome user-agent token, missing window.chrome, empty navigator.plugins, default viewport sizes, Selenium’s window.cdc_* properties — are all defeated by stealth plugins in a few lines of code, and most of them were artifacts of the old headless implementation anyway. Chrome removed old headless in version 132. New-mode headless is the same binary as headful Chrome; it just doesn’t paint to a display.
The subtler signals — Chrome DevTools Protocol artifacts like Runtime.enable leaking consoleAPICalled events, Puppeteer’s injected source URLs, main-world execution traces — survive the common stealth plugins but not the patched forks that exist specifically to close them.
And TLS fingerprinting, which is where most people’s hopes land, cannot help at all here. There’s a paper on exactly this (Jarad and Bıçakcı, on JA4-based bot detection) which achieves 98.6% accuracy and then states the limitation plainly: the method “cannot distinguish a human from an automated actor” when bots use real browser engines, because Puppeteer, Selenium and Playwright inherit the browser’s genuine TLS stack and produce identical fingerprints.
That distinction is the crux of this whole article, so let me put it as plainly as I can:
JA4 fingerprinting catches a script pretending to be Chrome. It does not catch Chrome being driven by a script.
Which leaves behaviour — pointer micro-corrections, acceleration curves, scroll shape, timing distributions. Stealth tooling changes what the browser reports; it doesn’t change how a script moves. This is the one signal with no known evasion, and it’s also the one that requires per-session data collection, machine learning, and a vendor. It is not available to you on a Cloudflare Free plan, and nobody has published an independent, reproducible benchmark of how well it actually works — the impressive numbers all come from the companies selling it.
So the honest answer to “can I block a determined person running headful Chrome under automation?” is no. Not reliably, not at the network layer, and not without a meaningful false-positive rate against real customers.
Which is precisely why the caching half of the Fix tab matters more than the blocking half. You cannot make this traffic go away. You can make it cost you nothing.
What changed: scraping stopped being a skill
Web scraping is not new. What’s new is that it no longer requires anyone who knows how to write a scraper.
Simon Willison — who is about as credible a primary source as exists in this space — documented the shift in July 2025 in a post he titled “vibe scraping.” He pointed OpenAI’s Codex at a conference website, had it drive Playwright, and let it work autonomously for thirteen minutes. He did the whole thing from his phone, in a coffee shop, in an hour or two, and noted that he built it “without even a view source tool.”
That is the entire story. The barrier to entry used to be: understand HTTP, understand the DOM, handle pagination, handle rate limits, handle the site changing its markup next Tuesday. Each of those was a filter. Collectively they meant that the number of people scraping your site was roughly the number of people with a commercial reason to and the ability to.
Now the ability is free and instant. Anyone with a Claude or ChatGPT subscription can describe what they want in a sentence and get a working, browser-driving, JavaScript-executing scraper — one that runs on their own laptop, from their own residential IP, with a genuine Chromium fingerprint. A competitor’s junior analyst who wants your price list no longer needs to ask engineering. They just ask.
And the scale is no longer marginal. Thales/Imperva’s 2026 Bad Bot Report, covering full-year 2025, put bots at more than 53% of all web traffic, with human traffic falling to 47%. The report explicitly adds AI agents as a third category alongside traditional “good” and “bad” bots, which is the right framing — they don’t fit either box. HUMAN Security’s April 2026 telemetry found that roughly 71% of observed agentic activity came from browser-based agents, with Comet at 48%, Atlas at 21%, and Claude’s Chrome extension at 17%. In their data, e-commerce was 38% of the target mix, and about 70% of agent activity was product browsing and search.
If you run a shop, that traffic is already arriving. The question is only whether you have looked.
Why it costs so much more than the request count suggests
The intuitive model is that a bot request costs the same as a human request, so 20% bot traffic means a 20% overhead. That model is badly wrong, and there is now good evidence for exactly how wrong.
Bots are a minority of requests but a supermajority of expensive ones. The Wikimedia Foundation published the cleanest version of this in April 2025: bandwidth for multimedia grew 50% since January 2024, and while bots were around 35% of pageviews, at least 65% of their most resource-consuming traffic came from bots. The reason is structural. Humans cluster on popular content, which sits in edge cache and costs almost nothing to serve. Crawlers enumerate the long tail, miss cache, and get forwarded to the origin — the expensive path, every time.
AI traffic actively destroys your cache. This is now peer-reviewed. A paper from ETH Zurich and Cloudflare presented at ACM SoCC in November 2025 measured what happens to a Varnish cache as AI traffic is mixed in:
| Workload | Cache miss ratio |
|---|---|
| Human traffic only | 17.3% |
| 25% AI traffic | 32.2% |
| 50/50 human / AI | 51.8% |
Miss ratio triples. The mechanism is that AI search agents show 70–100% unique-URL ratios — they barely repeat themselves. A cache works by betting that the next request looks like the last one. Agentic traffic takes that bet away.
Now apply that to a WordPress or WooCommerce site with faceted navigation. A crawler enumerating filter combinations — colour, price band, brand, sort order, page number — generates near-100% unique URLs by construction. It is the pathological case for a cache, and it is also the single most common shape of AI-driven scraping, because price comparison is exactly what people build these things for.
And some of it is genuinely uncacheable. Kinsta’s fleet telemetry, published June 2026 across 10+ billion requests, found 3.75 million add-to-cart requests in 24 hours from ClaudeBot alone, and 7.67 million add-to-cart requests across all tracked bots in the same day. Cart and checkout pages cannot be served from cache in any conventional sense — every hit is PHP execution plus database queries, which Kinsta clocks at 200–500ms of thread time apiece. On four cores, that arithmetic gets ugly quickly. (Kinsta sells bot mitigation, so read it as vendor data — but it’s their own fleet, and add-to-cart URLs are exactly the case you’d predict.)
The bills are real when someone bothers to measure them. Read the Docs published theirs: in May 2024 a single crawler pulled 73TB of zipped HTML, nearly 10TB in one day, costing over $5,000 in bandwidth. After blocking, their bandwidth dropped 75%, from around 800GB/day to 200GB/day. Their diagnosis is the one that should make every site owner wince: the crawlers “lacked basic HTTP checks like ETag and Last-Modified header support,” so they downloaded unchanged files over and over, from distributed IPs.
The asymmetry nobody agreed to
Search engines have always crawled. The deal was implicit but understood: we take your content, we send you visitors. Cloudflare made the deal legible by publishing crawl-to-refer ratios — how many pages a company crawls for every visitor it sends back. Their July 2025 figures:
| Company | Pages crawled per referral |
|---|---|
| Anthropic | 38,065 : 1 |
| OpenAI | 1,091 : 1 |
| Perplexity | 195 : 1 |
| Microsoft | 41 : 1 |
| 5.4 : 1 | |
| DuckDuckGo | 0.3 : 1 |
Google takes five pages and sends you a visitor. That is a trade. The AI ratios are not a trade; they are an extraction. And the ratios above are the declared crawlers of large companies who at least publish IP ranges and respect robots.txt when asked. They say nothing about the enormous, unmeasurable, unattributable volume of one-off scrapers that a million people are now writing on their laptops — traffic that arrives from a residential IP with a real browser fingerprint and no user agent you could ever filter on.
Meanwhile the referral side keeps thinning. SparkToro’s clickstream analysis found 68% of US Google searches ended without a click in the first four months of 2026, up from 49% in 2019. Pew’s 2025 study of 68,879 real searches found users clicked a traditional result on 8% of visits with an AI summary versus 15% without, and clicked a link inside the summary on 1% of visits.
More taken. Less returned. On your four cores.
The honest counter-argument
I want to be careful here, because the obvious conclusion — block it all — is wrong, and the evidence against it is better than the evidence for it.
Adobe Analytics has been measuring AI-referred traffic across more than a trillion visits to US retail sites. Their Q2 2026 report found AI-driven traffic to retail up 393% year on year, and — the part that matters — that in March 2026 AI-referred retail traffic converted 42% higher than non-AI traffic. Twelve months earlier, the same traffic converted 50% lower. Their holiday data (Nov–Dec 2025) showed AI-referred shoppers converting 31% better, spending 45% more time on site, and 33% less likely to bounce.
That inversion is the single most important number in this article. It means any blocking policy you set using 2024 or early-2025 reasoning is now being applied to traffic that behaves in the opposite way.
And the crawl purposes are not all equal. Cloudflare’s July 2025 breakdown: 79% training, 17% search, 3.2% real-time user actions. That 3.2% is a person, right now, asking an assistant a question about you. Fastly found ChatGPT is 98% of all “fetcher” bot requests — the real-time, user-prompted kind. If you blanket-block, you are not just declining to feed a training corpus. You are making yourself unanswerable when a prospective customer asks an assistant whether you stock the thing they want.
So the goal is not a wall. The goal is a policy that distinguishes between:
- A person’s agent, acting for them, right now → this is a customer. Serve them.
- A search crawler that will send people back → this is distribution. Serve them.
- A training crawler taking a permanent copy → your call, and increasingly a licensing question.
- Someone’s price-comparison scraper enumerating your entire catalogue → this is pure cost. Stop it.
The Fix tab is how to actually build that.
Same traffic, three different bills
Here’s what I think is the most under-discussed part of this whole subject. The traffic is roughly the same everywhere. What differs is the currency you pay in — and that currency determines whether you ever find out.
There are three models, and they fail in three completely different ways.
Fixed capacity: you pay in degradation
This is my situation, and probably yours if you self-host. WooCommerce on a VPS with a fixed number of cores. Bandwidth is included or capped. The bill does not move. No alert fires, because there’s no meter to trip.
Instead the cost lands on capacity, and it lands in a specific and quite insidious order. PHP-FPM runs a fixed pool of workers, set by pm.max_children. When crawler requests exceed the pool, they do not immediately fail — they queue on the FPM listen backlog. So the first symptom is not an error. It’s latency. Your real customers get a progressively slower site while the queue drains, and everything still technically works.
Only when the backlog overflows or nginx’s read timeout expires do you get the visible failures: 502 Bad Gateway, 503, 504 Gateway Time-out, and Cloudflare 522s. In /var/log/plesk-phpXX-fpm/error.log you’ll find the tell:
WARNING: [pool example.com] server reached max_children setting (*), consider raising itAnd to find which site is doing it:
grep -r "server reached max_children setting" /var/log/*php*-fpm/error.log \
| cut -d' ' -f5 | tr -d ']' | sort | uniq -c | sort -nrThis ordering is why “the site stayed up” is not evidence that crawlers weren’t hurting you. The site degrades for humans well before it errors for anyone. By the time you see a 502 you have been losing transactions for weeks. Every abandoned checkout in that window looks, in your analytics, like a customer who changed their mind.
The consolation is control. Self-hosting gives you the most levers of any of the three models — nginx, PHP-FPM tuning, fail2ban, a WAF, everything in the Fix tab. You have the most exposure to disruption and the least exposure to cost, in exchange for doing the work yourself.
Elastic capacity: you pay in money, and you might not notice for a month
Autoscaling inverts the problem completely. The site does not slow down. It does not fall over. It scales, serves every crawler beautifully, and sends you an invoice.
This is worse in one important respect: the symptom that would have alerted you has been engineered away. Fixed capacity is at least self-limiting — there’s a ceiling, you hit it, you investigate. Elastic capacity has no ceiling, so the feedback arrives at the end of the billing period, from finance.
The documented cases are instructive:
- Read the Docs, July 2024: one crawler pulled 73TB of zipped HTML, nearly 10TB in a single day, costing over $5,000 in bandwidth. After blocking, daily bandwidth fell 75%, from ~800GB to ~200GB.
- A Vercel user, January 2026: an aggressive AI scraper hit a development deployment — not even production — generating a $1,900 spike, 923% of their $200 spend limit. Their complaint was that the spend notifications failed entirely over the holiday period.
That second one is the more representative failure. A preview deployment nobody was watching, a nominal spend cap that didn’t hold, and a bill discovered after the fact.
The per-unit economics explain how it adds up. AWS CloudFront’s always-free tier covers 1TB out and 10 million requests a month, then charges $0.085/GB for the next 9TB in North America, tapering down with volume. Vercel includes the first 1TB of Fast Data Transfer, then charges $0.15–$0.35/GB, plus $2.00–$3.20 per million edge requests. Note also that Vercel charges $0.50–$0.80 per million requests for WAF rate limiting — you pay for the privilege of blocking the traffic you’re paying for.
Run Read the Docs’ 73TB month through those and the picture is stark:
| Platform | Cost of 73TB of crawler egress |
|---|---|
| AWS CloudFront (NA, pay-as-you-go) | ~$5,300 + request charges |
| Vercel (Fast Data Transfer, best case $0.15/GB) | ~$10,800 |
| A fixed-price VPS | £0 — you pay in 504s instead |
| Shopify | £0 |
Worth noting that the cloud vendors themselves seem to have concluded that unbounded metering plus bot traffic is a bad deal for customers: AWS now offers flat-rate CloudFront plans with no overage charges — $15/month for 50TB and 10 million requests, up to $1,000/month for 500 million. If you run anything elastic and public, capping your spend is the single fastest mitigation in this entire article, and it takes about four minutes.
Fully managed SaaS: you pay in distortion, and you can’t do much about it
Which brings me to the question I actually set out to answer, because I assumed I knew and I was wrong.
Does a Shopify merchant get charged more because of AI crawler traffic? No. Not on any plan.
Shopify’s pricing states plainly that plans include “unlimited bandwidth (no bandwidth fees).” More persuasive than the marketing line: I went looking for the catch in Shopify’s Terms of Service, and there isn’t one. There is no fair-use clause, no excessive-bandwidth provision, no throttling right, and no overage mechanism anywhere in the ToS. On most platforms “unlimited” is qualified somewhere. Here it genuinely isn’t.
That holds for headless too. Hydrogen storefronts hosted on Oxygen are “available at no extra charge on paid Shopify plans,” and Shopify publishes no bandwidth cap, request quota or worker-invocation limit for Oxygen at all. Architecturally Oxygen is an edge-worker runtime much like Vercel’s — but it’s sold as a flat inclusion rather than a meter. Shopify simply absorbs the crawler cost. When a developer asked on Shopify’s own forum what Oxygen’s limits were, the question went unanswered.
Storefront API rate limits point the same way. Shopify removed them entirely: “There are no rate limits applied on the number of requests that can be made to the API.” (The Admin API’s leaky bucket — 40 requests, refilling at 2/second — is consumed by your apps, not by inbound crawlers. Anyone telling you AI crawlers eat your Shopify API quota is conflating two unrelated systems.)
So Shopify merchants are immune. Except they’re not, in three ways that are easy to miss precisely because none of them show up as an infrastructure bill.
One: the analytics distortion is worse, not better. Shopify shipped bot filtering for analytics in October 2025 — which is itself a tacit admission of the problem. But the details matter. It is not on by default; you have to add the “Human or bot session” dimension yourself. It only applies to session-related metrics. It is not retroactive — nothing before 7 October 2025 can be reclassified. And Shopify explicitly biases toward under-detection, on the reasonable grounds that “it’s better to miss some bots than incorrectly label real customers as bots.” At launch, headless stores had no bot filtering at all.
The cost here is the denominator. Inflated session counts deflate your reported conversion rate, and corrupt your channel attribution — which then misprices every paid acquisition decision you make on top of it. A merchant looking at a conversion rate that’s been quietly diluted by bot sessions will conclude their site is underperforming and spend money fixing the wrong thing.
Two: Shopify doesn’t bill for traffic, but Shopify’s app ecosystem does. This is the actual money leak, and it’s billed through Shopify. Plenty of apps meter in sessions, pageviews or requests. Fast Simon’s AI Search & Filters is priced in monthly sessions — free at 100, $39.99 at 2,000, $99.99 at 10,000, $299.99 at 30,000. Klevu prices in search requests, category pageviews and impressions. Shopify’s own developer documentation notes that “usage-based pricing accounts for over 60% of revenue from top-earning apps,” and describes no merchant-side spend cap.
So bot traffic doesn’t raise a Shopify merchant’s hosting bill. It pushes them up an app pricing tier. Neither Fast Simon nor Klevu documents whether bot sessions are excluded from their counters — which strikes me as a question every merchant on a metered app should be putting to their vendor in writing.
Three, and this is the one I’d lead with: Shopify merchants have almost no ability to do anything about it. Everything in the Fix tab — WAF rules, rate limiting, ASN blocking, cache rules — is unavailable to them.
- Shopify runs Cloudflare at the platform layer, with WAF and DDoS protection. That is Shopify’s Cloudflare, not the merchant’s. There is no rule authoring.
- Putting your own Cloudflare in front of a Shopify store is explicitly unsupported: “Cloudflare proxy setups, including O2O, aren’t supported by Shopify.” They name Cloudflare’s orange-to-orange technique specifically, to close that exact loophole.
- There is no merchant-facing WAF, no IP allow/deny list, no rate-limit rule, no user-agent blocking.
- Checkout bot protection exists, but is Plus only, must be requested through support, is capped at 60-minute events, one at a time, up to 500 products — and Shopify is candid that it targets auto-checkout bots at flash sales. It is a sneaker-drop tool. It does nothing about catalogue scraping.
The merchant’s only enforceable lever is robots.txt.liquid — editable since June 2021, and, as Shopify itself notes, “directional and advisory,” with the warning that “Shopify Support can’t help with edits to the robots.txt.liquid file.”
And by default, that file doesn’t block AI crawlers. Check the robots.txt of any large Shopify store — Allbirds and Gymshark both serve identical default rules naming adsbot-google, Nutch, AhrefsBot, AhrefsSiteAudit, MJ12bot and Pinterest. No GPTBot. No ClaudeBot. No CCBot, Google-Extended or PerplexityBot. AI crawlers are permitted on product and collection pages by default, and the merchant must opt out manually.
Then there’s the part that reframes the whole question. Shopify is actively feeding your catalogue to AI agents, and it’s on by default. Shopify’s Agentic Storefronts — launched with Google in January 2026 around the Universal Commerce Protocol — are, in Shopify’s own words, “active by default for eligible stores,” pushing product data to ChatGPT, Google AI Mode and Gemini, Microsoft Copilot and Meta. And crucially, this is a push feed, not a crawl: Shopify Catalog syndicates title, description, options, images, price and live availability directly. Which means, as Shopify’s help documentation states outright, blocking AI crawlers in robots.txt “doesn’t stop your product data from being sent by Shopify Catalog to the agentic storefronts that you’ve activated.”
You turn it off in Sales channels → Agentic, or by marking individual products Unlisted. I’d guess a very large number of merchants don’t know it’s on.
Whether that’s good or bad depends entirely on the Adobe conversion numbers in the Problem tab — if agent-referred traffic converts 42% better, being in that feed is a distribution channel, not a leak. My point isn’t that Shopify’s default is wrong. It’s that the platform which removes your ability to see the cost also removes your ability to make the decision — and then makes it for you.
And what can each platform actually do about it?
This is where it gets perverse. Here’s what’s available to a site owner on each platform:
| Capability | CF Free | CF Pro | CF Enterprise | AWS / CloudFront | Vercel | Shopify |
|---|---|---|---|---|---|---|
| Edit robots.txt | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Block by user agent | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| Block by IP / ASN | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| Rate limiting | 1 rule, IP, 10s | 2 rules | 100 rules, full keys | ✅ | ✅ | ❌ |
| Verified-bot detection | ✅ cf.client.bot | ✅ | ✅ | ✅ Bot Control Common | ✅ | ❌ |
| Per-crawler AI controls | ✅ AI Crawl Control | ✅ | ✅ | ➖ | ✅ AI bots ruleset | ❌ |
| Granular bot score | ❌ | ❌ | ✅ | ✅ Targeted tier | ➖ | ❌ |
| JA3 / JA4 fingerprints | ❌ | ❌ | ✅ Enterprise only | ✅ free since Oct 2024 | ❌ not documented | ❌ |
| Behavioural / ML detection | ❌ | Partial (SBFM) | ✅ | ✅ Bot Control Targeted | ✅ BotID Deep Analysis | ❌ |
| Custom WAF rules | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
Two things in that table are worth stopping on.
AWS gives you JA4 fingerprinting for free. CloudFront has shipped the Cloudfront-viewer-ja4-fingerprint header at no additional cost since October 2024, and AWS WAF has supported JA4 in rate-based rules since March 2025. Cloudflare gates the same capability behind Enterprise plus Bot Management. That inverts most people’s assumptions about which platform is more capable, and it’s worth knowing before you pick one.
The tools that actually work against Class F are on the platforms where the traffic already costs you money. AWS WAF Bot Control’s Targeted tier explicitly detects bots “that don’t self-identify,” using browser interrogation, fingerprinting and behavioural heuristics — $10/month per web ACL plus $10 per million requests, with the first million free. Vercel’s BotID, powered by Kasada, names the problem in its own documentation: “Tools like Playwright and Puppeteer automate these sessions… These bots aim to blend in with normal traffic.” Basic is free on all plans; Deep Analysis is $1 per 1,000 checks on Pro, and is designed to be route-scoped — checkout, signup, API — rather than applied site-wide.
(One trap if you’re on Vercel: “Bot Protection doesn’t work when a reverse proxy — e.g. Cloudflare, Azure, or other CDNs — is placed in front of your Vercel deployment.” Cloudflare in front of Vercel silently disables it.)
So stack it up:
| Feels the pain | Sees the pain | Can fight back | |
|---|---|---|---|
| Fixed self-hosted, CF Free | Most | Eventually | Least |
| Elastic cloud | In money | At the invoice | Most |
| Shopify | Barely | No | Not at all |
The person hurt most by Class F traffic — the self-hoster on four cores watching their site slow down — has access to the weakest detection tier available. The person who could most easily buy their way out is the one whose only real symptom is a larger bill. And the Shopify merchant has neither the problem nor the tools nor any way of knowing.
That’s the trade, stated plainly:
| Fixed self-hosted | Elastic cloud | Managed SaaS (Shopify) | |
|---|---|---|---|
| You pay in | Degradation, lost transactions | Money | Distorted data, app tiers |
| Financial exposure | Capped at your VPS fee | Effectively unbounded | Near zero |
| Do you find out? | Eventually, painfully | At the invoice | Usually never |
| Can you block it? | Fully | Fully (and pay to) | robots.txt, advisory only |
Nobody gets a free ride. You just get to choose which invoice you’d rather not read.
Two notes before the configs.
On plans: almost every “just use Bot Management” answer you’ll read assumes Cloudflare Enterprise, where cf.bot_management.score and JA4 fingerprints live. They are Enterprise-only. Everything below except where explicitly marked works on Free and Pro, because that’s what the sites actually having this problem are running.
On order: these are in priority sequence, not difficulty sequence. Steps 3 to 5 — caching — will do more for you than Steps 6 and 7 — blocking. That surprised me. Caching works on traffic you can’t identify, from IPs you can’t classify, with no risk of turning away a customer, and it’s the only layer that helps against a scraper running on someone’s laptop from a residential IP. Blocking is the sharper instrument, but it only works on traffic you can recognise, and the traffic that worries me most is precisely the traffic you can’t.
If you do three things: turn on Smart Tiered Cache, cache your HTML, and check your AI bot policy before 15 September.
Step 0: Measure before you block
Do not deploy a single blocking rule until you know what you’d be blocking. Cloudflare’s own recommended method is to deploy rules with the Log action first, validate against real traffic, then switch to Block.
Three things to pull, which are also the three things you should quote in any internal business case:
- Cloudflare → Analytics → Traffic, filtered by path. Find your most-requested URLs and compare them to your most-valuable URLs. The gap between those two lists is your problem, quantified.
- AI Crawl Control (dashboard → your domain → AI Crawl Control). This is available on all plans, including Free. It lists the AI crawlers hitting you, by name, with volumes, and shows whether they’re respecting your robots.txt.
- GA4, segmented for the signature: unassigned/direct source, single-page sessions, near-zero engagement time, data-centre-adjacent geography. Treat these as practitioner heuristics rather than gospel — there’s no published research validating them — but the shape is usually unmistakable once you look.
Step 1: Declare your position (free, and legally load-bearing)
This blocks nothing. Do it anyway, because it costs nothing and it converts “they took it” into “they took it after being told not to,” which is a materially different position if licensing ever gets litigated.
Cloudflare’s Content Signals Policy extends robots.txt with a Content-Signal directive. Minimum viable version:
User-Agent: *
Content-Signal: search=yes, ai-train=no
Allow: /Three signals are defined: search (indexing and returning links/excerpts), ai-input (RAG, grounding, real-time retrieval for generated answers), and ai-train (training or fine-tuning). Values are yes or no; omitting one expresses no preference. Cloudflare’s own default for managed customers is search=yes, ai-train=no — deliberately silent on ai-input, which is the right default for most commercial sites. You want to be retrievable when someone asks about you; you’re less keen on being absorbed.
The policy also carries this, which is the actual point:
# ANY RESTRICTIONS EXPRESSED VIA CONTENT SIGNALS ARE EXPRESS RESERVATIONS OF RIGHTS
# UNDER ARTICLE 4 OF THE EUROPEAN UNION DIRECTIVE 2019/790 ON COPYRIGHT AND RELATED
# RIGHTS IN THE DIGITAL SINGLE MARKET.To enable it: Security Settings → filter by Bot traffic → “Set your preference to block training in robots.txt.” All plans.
Two related standards are worth knowing about but not acting on yet. The IETF AI Preferences working group is standardising a Content-Usage directive (draft-ietf-aipref-vocab hit -07 on 19 August 2026, not yet an RFC, and the draft itself carries a no-consensus warning). RSL (Really Simple Licensing) published a 1.0 recommendation in December 2025 and defines a License: directive pointing at an XML licence document. Both are declarative. Neither is enforced.
As for llms.txt — skip it. Ahrefs analysed server logs across 137,000 domains and found 97% of llms.txt files received zero requests in May 2026. Of the requests that did arrive, the largest share came from SEO audit tools. It is a file that people write and nothing reads.
Step 2: Set your AI bot policy — and read this before 15 September
Cloudflare replaced its old single “Block AI bots” toggle with a three-way classification. In Security Settings → Configure AI bot policies, you now set a policy for each of:
- Search — “collects or indexes your content so it can answer questions about it later”
- Agent — “automated activity acting in real time on a person’s behalf… such as chat fetch bots and browser-use agents”
- Training — “crawls your content to train or fine-tune a model, permanently absorbing your data into the model”
Each gets Block on all pages, Block on pages with ads, or Allow.
Now the warning. On 15 September 2026, Cloudflare sets new defaults: for domains onboarding after that date, Training and Agent are blocked by default on ad-bearing pages. But the mechanism matters more than the default, because of this, verbatim from Cloudflare:
“Since the defaults will be enforced by the most restrictive applicable rules, multi-purpose crawlers such as Googlebot, Applebot, and BingBot will be blocked by customers who have selected to block Training.”
Read that again. If you block Training, you block Googlebot. Google, Apple and Microsoft all run crawlers that serve search and AI purposes, and Cloudflare resolves the ambiguity in favour of the strictest rule you’ve set. Cloudflare’s community forums already have people who tripped this.
If you have ever ticked “block AI training crawlers” — and a great many site owners did, in a fit of entirely reasonable irritation, sometime in 2024 or 2025 — go and look at that setting this week. The opt-out is in the same Security settings panel, and it confirms you want no change to Training crawlers that also crawl for Search.
For most commercial sites I’d suggest: Search = Allow. Agent = Allow. Training = your call, with eyes open about what it does to Googlebot.
My own reasoning on Agent: an agent request is a customer request with extra steps. HUMAN’s data has 70% of agent activity as product browsing and search, and Adobe has that traffic converting 42% better than the average. Blocking it to save CPU is optimising the wrong variable.
Step 3: Cache the HTML — this is the biggest lever, and almost nobody has it on
If you take one action from this article, take this one. It’s the same lever as general site speed work, pointed at a different problem. Caching is a more effective defence than blocking, because it works on traffic you can’t identify, from IPs you can’t classify, without any risk of turning away a customer.
And here’s the thing most people running Cloudflare do not know:
“The Cloudflare CDN does not cache HTML or JSON by default.”
That’s from Cloudflare’s own documentation. Out of the box, Cloudflare caches by file extension — images, CSS, JS, fonts, PDFs. It does not cache your product pages, your category pages, or your filter URLs. Which means every single crawler request for a page goes straight through Cloudflare to your PHP-FPM pool. Cloudflare in front of a default WordPress install absorbs your images and precisely none of the traffic that costs you CPU.
Everyone assumes Cloudflare is protecting them. For HTML, it isn’t, until you tell it to.
The three-rule setup
Page Rules are deprecated; use Cache Rules (dashboard → Rules → Overview → Cache Rules). Order matters — they evaluate top-down, and the Place at dropdown controls position.
Rule 1 — Bypass cache for sessions and staff. Must be first. Cache eligibility: Bypass cache.
(http.cookie contains "wordpress_logged_in_")
or (http.cookie contains "wp_woocommerce_session_")
or (http.cookie contains "woocommerce_cart_hash")
or (http.cookie contains "woocommerce_items_in_cart")
or (http.cookie contains "comment_author_")
or (http.cookie contains "wp-postpass_")contains rather than eq is necessary — every one of those cookie names carries a variable hash suffix.
A trap worth flagging: WooCommerce’s own documentation lists five cookies to exclude from caching, and two of them — woocommerce_recently_viewed and store_notice[…] — are set for anonymous visitors. That advice is written for a PHP-level page cache making a per-user decision. Do not put them in an edge rule, or you will bypass cache for the exact anonymous traffic you were trying to protect against, and wonder why your hit ratio is zero.
Rule 2 — Never cache transactional paths. Cache eligibility: Bypass cache.
(starts_with(http.request.uri.path, "/cart"))
or (starts_with(http.request.uri.path, "/checkout"))
or (starts_with(http.request.uri.path, "/my-account"))
or (http.request.uri.path contains "/wc-api/")
or (starts_with(http.request.uri.path, "/wp-admin"))
or (http.request.uri.path eq "/wp-login.php")
or (starts_with(http.request.uri.path, "/wp-json/"))
or (http.request.uri.query contains "wc-ajax=")
or (http.request.uri.query contains "add-to-cart=")Use starts_with rather than contains for path prefixes, or contains "/cart" will also match a product slug like /cart-accessories. Adjust to your actual page slugs — they’re site-specific and translatable.
Don’t skip /wp-json/. The block-based WooCommerce Cart and Checkout run on the Store API at /wp-json/wc/store/v1. Cache that and checkout breaks. WooCommerce’s Store API documentation says nothing at all about caching, which is a genuine gap.
Rule 3 — Cache anonymous HTML. Last. Cache eligibility: Eligible for cache, with Edge TTL → “Ignore cache-control header and use this TTL”, set to 4 hours.
(http.host eq "example.com")Read this before you deploy Rule 3. That Edge TTL option is the one that makes HTML caching work on WordPress, because WordPress emits no-cache headers on many responses. It is also the one that removes your safety net. Cloudflare’s own troubleshooting docs are explicit: with Cache Everything on dynamic HTML plus a TTL override, “Cloudflare can cache the response and remove the Set-Cookie header before the response is stored at the edge.” Their instruction is flat: “Do not cache login pages or other authenticated HTML.”
Rules 1 and 2 are not optional hardening. They are the only thing standing between you and serving one customer’s cart to another. Deploy them first, verify, then add Rule 3.
Edge TTL, not Browser TTL
These get conflated constantly and only one of them matters here.
- Edge Cache TTL — how long Cloudflare’s network holds the resource. A hit at the edge never touches your server. This is the lever.
- Browser Cache TTL — how long a visitor’s browser holds it. Useful for returning humans. Completely useless against crawlers, which are overwhelmingly stateless per request and carry no warm browser cache between fetches.
Minimum Edge TTL by plan: Free 2 hours, Pro 1 hour, Business and Enterprise 1 second. The Free plan’s 2-hour floor is actually helpful here — it forces the long TTL you want.
Cache Rules quota: Free 10, Pro 25, Business 50.
Turn on Smart Tiered Cache. It’s free and it’s a checkbox.
Cloudflare’s cache is per data centre. A distributed crawler hitting the same URL from fifty points of presence generates up to fifty origin misses. Tiered Cache puts an upper tier between the edge and your origin, collapsing that toward one.
Smart Tiered Cache is available on Free, Pro, Business and Enterprise. It requires manual activation. If you do nothing else in this section, do this.
Why TTL is a blast-radius setting, not a freshness setting
This is the arithmetic that reframed the problem for me. For a cacheable URL set:
origin requests per period ≈ unique URLs × (period / TTL) × distinct PoPsNote what’s missing: request volume. Above your TTL, it doesn’t matter whether a crawler asks for a page once or ten thousand times. Your origin load is set by your URL count and your TTL, full stop.
Worked example. Say 5,000 products plus 200 categories — 5,200 cacheable URLs:
| Edge TTL | Origin requests/day | Sustained rate |
|---|---|---|
| 30 minutes | 249,600 | ~2.9/sec |
| 2 hours | 62,400 | ~0.7/sec |
| 4 hours | 31,200 | ~0.36/sec |
At 200–500ms of PHP per request, 2.9/sec sustained is genuinely uncomfortable on four cores. 0.36/sec is nothing. The step from 30 minutes to 4 hours is an 8× reduction in origin load, for free, and it is invisible to customers — provided you purge on change.
Which is the correct mental model: TTL isn’t about freshness, it’s about blast radius. Long TTL plus event-driven purge gives you both. Short TTL gives you neither — it just guarantees crawlers reach your origin on a schedule.
Purge is now available on every plan — this is news
Since 1 April 2025, all purge methods work on all plans, including Free: purge by URL, by tag, by prefix, by hostname, and purge everything. Cloudflare’s own wording: “Historically, methods other than ‘purge by URL’ and ‘purge everything’ were exclusive to Enterprise customers.”
This invalidates most of the WordPress-and-Cloudflare tutorials currently on the internet, which still tell you cache-tag purge is Enterprise-only. Surgical invalidation is now viable on a free plan, which is what makes the long TTL above safe.
One Free-plan constraint to design around: 5 tag/prefix/hostname purges per minute (bucket of 25), 100 operations per request. A bulk stock import touching 500 products needs to batch, or debounce into a single purge.
For plugin-driven purging, Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals (wp-cloudflare-page-cache) is the current pick: actively maintained by Themeisle, 70,000+ installs, works on the free Cloudflare plan, uses modern Cache Rules, WooCommerce-aware, auto-purges related pages on update. Cloudflare’s own official plugin has a long history of neglect and is mostly an APO front-end.
On APO itself: it’s $5/month on Free, included on Pro and above, and Cloudflare says it bypasses cache “on standard WordPress and WooCommerce cookies for authenticated users” — but does not publish which cookies. For a WooCommerce store I’d take hand-written Cache Rules over an opaque managed one every time. You can read them, audit them, and put them in version control.
Step 4: Fix the layer underneath — and know which parts actually help
This distinction is the one I’d most want a reader to take away, because a great deal of “speed up WordPress” advice fails silently here.
Some layers stop PHP from running. Others just make PHP run faster. Only the first kind is a defence.
| Layer | Stops PHP executing? | Under crawler load |
|---|---|---|
| Cloudflare edge cache (HTML) | Yes — never reaches your box | Decisive |
| Plesk nginx caching | Yes — nginx serves it | Decisive |
| W3 Total Cache, Disk: Enhanced | Yes — .htaccess rewrite | Decisive |
| WP Super Cache, Expert mode | Yes — mod_rewrite | Decisive |
| LiteSpeed Cache on a LiteSpeed server | Yes | Decisive |
| WP Super Cache, Simple mode | No — PHP boots, then short-circuits | Partial |
| W3 Total Cache, Disk: Basic | No — a PHP script serves it | Partial |
| WP Rocket / FlyingPress (default) | No — PHP-served | Partial |
| Redis object cache | No — PHP runs fully, queries are cheaper | Marginal |
| OPcache | No — only skips compile | Marginal |
OPcache eliminates compilation, not execution. A WooCommerce product page still boots WordPress, loads every plugin, runs its queries and renders its templates. Redis object cache reduces database round-trips inside a request that still fully executes and still occupies a worker slot for its entire duration — and against scan traffic, object cache hit rates are poor anyway, because the objects cached for URL N aren’t the ones needed for URL N+1.
A worker slot occupied for 200ms instead of 400ms is still an occupied worker slot. You have doubled your ceiling, not removed it. A 2× speedup is not a defence against a 100× traffic increase.
The Plesk setting that’s probably costing you
If you’re on Plesk, go to Websites & Domains → [domain] → Apache & nginx Settings and find the nginx caching options.
Two things to know. First, “Smart static files processing” — which is on by default and which everyone assumes is doing something — only handles static files. It does nothing whatsoever for PHP-generated HTML, which is exactly what crawlers hammer. It’s table stakes, not a defence.
Second, and this is the one: Plesk’s nginx cache timeout defaults to 5 seconds. Against a crawler walking 5,000 unique URLs, a 5-second cache is decorative — nothing is ever revisited inside the window. Raising it (3600 is a reasonable start) is probably the single highest-value change available to a Plesk user reading this.
Before you do, configure “Bypass cache when” and “Disable caching for locations” with the same cookie and path lists from Step 3. Same rule as at the edge: get the exclusions right first, or you will serve carts across customers.
One genuinely lovely default worth knowing: “Return stale cached records” is on by default (nginxCacheUseStale5xx). When PHP-FPM is saturated and starts returning 502s, nginx serves the stale copy instead of the error. Under exactly the load this article is about, that’s the difference between a slightly out-of-date page and a broken one.
PHP-FPM workers
On a four-core box the binding constraint is usually RAM, but the sane constraint is CPU. WooCommerce processes typically run 64–128MB. Measure yours:
ps aux | grep 'php-fpm: pool' | awk '{sum+=$6} END {if (NR>0) print sum/NR/1024 " MB"; else print "0 MB"}'The RAM formula is pm.max_children = RAM available for PHP / average process size. But on four cores, 60 concurrent PHP processes means fifteen-fold oversubscription and catastrophic context switching. Take the lower of the RAM-derived and CPU-derived numbers; on four cores that’s usually 8–16. Raising max_children past the point of CPU saturation doesn’t increase throughput — it converts fast failures into slow ones, which is worse.
Set it in Domains → [domain] → PHP Settings → PHP-FPM Settings, or via /var/www/vhosts/system/example.com/conf/php.ini:
[php-fpm-pool-settings]
pm.max_children = 12then /usr/local/psa/bin/php_settings -u.
Step 5: The uncacheable tail
Everything above works because caching depends on repeat access. Which brings us to the part where it doesn’t.
The SoCC paper measured AI agents at 70–100% unique URL ratios, and data scrapers “approaching one.” Human and AI traffic were found to share only about 20% overlapping content. At a 100% unique ratio, no cache of any size or policy can produce a hit. That is arithmetic, not a tuning problem.
So be honest about what Step 3 bought you: it removed the bulk of crawler load — the repeated hits on your catalogue, which is most of the volume — and it did nothing for the combinatorial tail. Faceted navigation is where that tail lives, because a crawler enumerating filters generates unique URLs by construction.
Ranked by value:
Sort your query string. Free, safe, immediate. In your Cache Rule, set Cache Key → Sort query string: On. Available on all plans. This collapses ?color=red&size=l and ?size=l&color=red into one cache key, turning a factorial parameter-order explosion into a single ordering. Highest value-per-effort item on the list.
Return a 404 for combinations that yield nothing. This is Google’s own explicit recommendation: “Return an HTTP 404 status code when a filter combination doesn’t return results” — and don’t redirect to a generic error page. Cloudflare caches 404s for 3 minutes by default, and you can raise that via Status Code TTL in Cache Rules. Dead facets become both cheap and cached.
Disallow filter parameters in robots.txt. Also Google’s advice — “there’s no good reason to allow crawling of filtered items, as it consumes server resources”:
Disallow: /*?*filter_
Disallow: /*?*orderby=
Disallow: /*?*min_price=
Allow: /*?product_cat=$Compliant crawlers honour this. The ones causing your problem often don’t. It’s a request, not a control — which is the whole reason Steps 6 and 7 exist.
Use & as your parameter separator. Google notes that commas, semicolons and brackets “are hard for crawlers to detect as parameter separators.” Several WooCommerce filter plugins use commas for multi-select. Worth checking yours.
Move filtering to URL fragments. Google: “If your filtering mechanism is based on URL fragments, it will have no impact on crawling.” Fragments are never sent to the server, so #color=red is genuinely invisible to a crawler. This is the only option that makes the URL space finite from the outside. It’s an architectural change requiring JS-driven filtering, but it’s the complete answer.
Offload search entirely. Algolia, Typesense, Meilisearch. Filter queries never touch PHP or MySQL, and the combinatorial space is handled by something built for it. For a four-core box where facets are the main browse path, this is the structurally correct answer.
Two things not to bother with for load purposes: rel=canonical and rel=nofollow are indexation hygiene and don’t prevent a request that’s already been made; and noindex is actively pointless here, because the crawler has to fetch and render the page to discover the directive. It reduces index bloat and zero load.
One aside, because it’s interesting rather than actionable: the SoCC researchers found that modern cache eviction algorithms — SIEVE, S3FIFO, ARC — hold above 75% hit ratio for human requests even at 50% scan traffic, where LRU, LFU and FIFO degrade fast. They act as implicit traffic filters, deprioritising scan-like requests without needing to classify anything. You can’t select an eviction policy on Cloudflare, so this isn’t a knob you can turn. But it’s a reason your choice of edge provider is going to matter more over the next few years than it did over the last ten. (At 75% scan ratio, incidentally, every policy falls below 30%. There is a cliff, and it isn’t far away.)
Step 6: Challenge the expensive paths, not the whole site
This is the core insight of the mitigation half. Don’t block traffic. Block expensive traffic. Your product pages are cached and cheap. Your faceted search is uncached and ruinous. (If you’re setting up WAF rules for the first time, the general store-hardening rules are worth doing at the same time — same panel, same afternoon.) Rules that target paths rather than visitors are more precise, less likely to hurt real users, and don’t require Enterprise.
This works on Free, Pro and Business, because cf.client.bot (true for verified bots — Googlebot, Bingbot and friends) is available on all of them, and it avoids the matches regex operator, which requires Business+.
Rule 1 — Managed Challenge on expensive paths, verified crawlers exempted. Action: Managed Challenge.
(
starts_with(http.request.uri.path, "/search")
or (http.request.uri.path eq "/" and has_key(http.request.uri.args, "s"))
or http.request.uri.query contains "filter="
or http.request.uri.query contains "facet="
or http.request.uri.query contains "orderby="
or http.request.uri.query contains "min_price="
or http.request.uri.query contains "product_cat="
)
and not cf.client.botA managed challenge is nearly invisible to a real browser with a real user and brutal to a headless script that isn’t solving challenges. Verified bots pass straight through. Note that cf.client.bot exempts all verified bots, including verified AI crawlers — which is usually what you want at this layer, since your AI policy in Step 2 handles them separately.
Adjust the query parameters to match your own stack. For WooCommerce, filter_*, product_cat, min_price, max_price, orderby and paged are the usual suspects. Check your own top-requested URLs first — you’re looking for the parameter combinations that generate near-infinite unique URLs.
Rule 2 — Data-centre ASNs on dynamic paths. ip.src.asnum is available on all plans. Action: Managed Challenge.
ip.src.asnum in {16509 396982 8075 14061 24940 16276}
and not cf.client.bot
and (
starts_with(http.request.uri.path, "/cart")
or starts_with(http.request.uri.path, "/checkout")
or starts_with(http.request.uri.path, "/search")
or starts_with(http.request.uri.path, "/wp-json/")
)Those are AWS (16509), Google Cloud (396982), Microsoft (8075), DigitalOcean (14061), Hetzner (24940) and OVH (16276) — all verified against BGP records. Two caveats worth stating plainly: AS8075 is Microsoft generally rather than Azure specifically, so it’s incomplete coverage; and AWS also announces from other ASNs. More importantly, this rule cannot touch the traffic I opened this article worrying about. Someone running a Playwright scraper on their own laptop is on a residential connection. There is no ASN to block. Agentic browsers like Comet and Atlas are consumer software on consumer machines. This rule catches the cloud-hosted tier only — worth having, not sufficient.
Rule 3 — Label the self-declared crawlers. Uses lower() and contains, so it works without the Business-plan regex operator. I’d start this one on Log, not Block.
(
lower(http.user_agent) contains "gptbot"
or lower(http.user_agent) contains "oai-searchbot"
or lower(http.user_agent) contains "chatgpt-user"
or lower(http.user_agent) contains "claudebot"
or lower(http.user_agent) contains "claude-user"
or lower(http.user_agent) contains "perplexitybot"
or lower(http.user_agent) contains "perplexity-user"
or lower(http.user_agent) contains "bytespider"
or lower(http.user_agent) contains "ccbot"
or lower(http.user_agent) contains "meta-externalagent"
or lower(http.user_agent) contains "amazonbot"
)One omission to note: Google-Extended is not a user agent. It’s a robots.txt control token only — Google’s docs are explicit that “Google-Extended doesn’t have a separate HTTP request user agent string.” It will never appear in your logs, and a WAF rule matching it will never fire. It belongs in robots.txt, not here.
Be honest about what this is for. A user agent is a self-declaration, and anyone who wants to evade it changes one string. Cloudflare’s own August 2025 investigation found Perplexity running undeclared crawlers impersonating Chrome on macOS, rotating through unlisted IPs across multiple ASNs in direct response to robots.txt restrictions and WAF blocks — 3–6 million stealth requests a day alongside 20–25 million declared ones. User agent matching is an observability tool, not a defence. Use it to understand who’s polite. Don’t imagine it stops anyone who isn’t.
Use the AI Crawl Control crawlers table as your live source for these strings rather than a list from an article — it changes.
If you are on Enterprise with Bot Management, you also get bot scoring, and the pattern is much sharper:
(
starts_with(http.request.uri.path, "/search")
or http.request.uri.query contains "filter="
)
and cf.bot_management.score lt 30
and not cf.bot_management.verified_botScores run 1–99; 1–29 is “likely automated,” 30+ is “quite certain this is a human.” You can also test cf.bot_management.js_detection.passed, which is specifically designed to catch headless browsers — the exact traffic that’s polluting your analytics. Both fields are Enterprise-only, which is a genuine frustration for the small sites that need them most.
Step 7: Rate limit the enumeration
Rate limiting is the right tool against the specific behaviour that hurts: enumerating your catalogue. Know the plan limits before you plan around them:
| Free | Pro | Business | Enterprise | |
|---|---|---|---|---|
| Rules | 1 | 2 | 5 | 100 |
| Key on | IP only | IP only | IP + NAT | Full set incl. JA4 |
| Counting period | 10s | up to 1 min | up to 10 min | up to 65,535s |
| Mitigation timeout | 10s | up to 1h | up to 1 day | up to 1 day |
You will read advice about rate limiting on JA4 fingerprint. That’s Enterprise Advanced Rate Limiting. Free and Pro key on IP, full stop.
Your one Free-plan rule, spent where it does most good — match expression:
starts_with(http.request.uri.path, "/search")
or http.request.uri.query contains "filter="Characteristic: IP. Period: 10s. Threshold: 5 requests. Action: Managed Challenge.
On Pro, use both rules and stretch the period to 60 seconds — a threshold of around 20 requests per minute on faceted paths is generous for a human clicking filters and hostile to a script walking the tree.
One honest caveat: Cloudflare publishes no recommended thresholds for e-commerce search endpoints. The only concrete numbers in their documentation are for login and OTP endpoints (4 requests/minute, 10/10 minutes, 20/hour). Any figure I give you is editorial judgement derived from your own traffic, not vendor guidance. Their actual advice is to analyse your own past traffic — which is Step 0, again.
Step 8: The frontier — getting paid instead
Worth knowing about, mostly not yet actionable.
Pay per crawl puts a price on a crawl request. A crawler without payment gets HTTP 402 Payment Required with a crawler-price header; one that pays gets a 200 and a crawler-charged header. Cloudflare acts as merchant of record, and crawlers authenticate via Web Bot Auth signatures. It is still in closed beta. Note one configuration trap: pay per crawl runs after bot solutions, so if you have AI bots blocked, they never reach billing. You have to choose blocking or charging, not both.
Monetization Gateway, announced 1 July 2026, is the more significant successor — the ability to “charge any caller for any resource, from an API to data to an MCP tool call.” Built on x402, an open HTTP payment protocol, settling in stablecoins with sub-second settlement and micropayments down to fractions of a cent. Early access, waitlist open.
Whether or not you want to accept payment in USDC, the direction of travel is worth registering. The trajectory of the web is from “crawling is free because it sends traffic back” to “crawling is priced because it doesn’t.” If your business has genuinely proprietary data — and if you run a specialist retailer, your catalogue, availability and pricing are proprietary data, whatever anyone scraping it thinks — being on the waitlist costs nothing.
The framework, in one table
If you take nothing else, take this. Classify by what the request is for, not by whether it’s a bot.
| Traffic | Serve it? | How |
|---|---|---|
| Verified search crawlers | Yes | cf.client.bot exemption in every rule; Search = Allow |
| A user’s agent asking about you now | Yes | Agent = Allow; don’t rate-limit product pages |
| Training crawlers | Your call | Content-Signal: ai-train=no; know it may catch Googlebot |
| Anything hammering faceted search | No | Sort query string, 404 dead facets, then challenge |
| Anything touching cart/checkout at machine speed | No | ASN + path rule, Block not Challenge |
| Cheap, cached, static requests | Don’t care | Steps 3–4 — engineer the cost away |
And the uncomfortable fifth row, which has no rule: a scraper on someone’s laptop, from a residential IP, in a real Chromium. There is no ASN to block, no user agent to filter, and no fingerprint that distinguishes it from a customer. You cannot block this traffic. You can only make it cheap to serve — which is why the caching half of this article matters more than the blocking half.
The point
The cost of AI isn’t the subscription. It’s the externality.
Every organisation is carefully budgeting for the AI it buys, and almost none are budgeting for the AI that arrives uninvited, at machine speed, executing their JavaScript, missing their cache and consuming compute they’re paying for on behalf of someone building a price comparison table.
Worse, the cost is nearly invisible by design. It doesn’t show up as a line item. It shows up as a slower site, and slower sites convert worse, and conversion rate is attributed to a hundred things before anyone thinks to check the load average.
And where it lands depends entirely on what you’re running. Self-host and you pay in degradation, discovered eventually and painfully. Run something elastic and you pay in money, discovered at the invoice. Sit on Shopify and you mostly don’t pay at all — which sounds like the winning hand until you notice that you also can’t see it, can’t block it, and have been opted in by default to feeding your entire catalogue to four AI channels.
I only found mine because I went looking. It’s worth an hour of your time to go and look at yours — and about four minutes to turn on tiered caching while you’re in there.
Getting this right is the same instinct that runs through everything at Conversion Works: know what’s actually happening in your data, don’t trust a number you haven’t interrogated, and engineer the cost out rather than arguing with it. If bot traffic is polluting the events you make decisions on, Conform exists to enforce clean, governed event data at the edge — which is where this problem starts and where it’s cheapest to solve.
If you want a second pair of eyes on what’s hitting your origin, get in touch.
Sources
- Google Analytics Help, “Known bot-traffic exclusion”
- Plausible Analytics, “Testing bot traffic filtering in Google Analytics,” 22 May 2025
- Simon Willison, “Vibe scraping and vibe coding a schedule app for Open Sauce 2025 entirely on my phone,” 17 July 2025
- Thales/Imperva, 2026 Bad Bot Report: “Bad Bots in the Agentic Age,” 29 April 2026
- HUMAN Security, “State of Agentic Traffic,” 4 May 2026
- Wikimedia Foundation, “How crawlers impact the operations of the Wikimedia projects,” 1 April 2025
- Zhang et al., “Rethinking Web Cache Design for the AI Era,” ACM SoCC ‘25, Nov 2025
- Kinsta, “Why bot traffic is now an infrastructure problem (not just an SEO problem),” 23 June 2026
- Read the Docs, “AI crawlers need to be more respectful,” 25 July 2024
- Cloudflare, “The crawl-to-click gap: Cloudflare data on AI bots, training, and referrals,” 29 August 2025
- Cloudflare, “AI crawler traffic by purpose and industry,” 28 August 2025
- Cloudflare, “Perplexity is using stealth, undeclared crawlers to evade website no-crawl directives,” 4 August 2025
- Cloudflare, “Your site, your rules: new AI traffic options for all customers,” 1 July 2026
- Cloudflare, “Content Signals Policy”
- Cloudflare, “Monetization Gateway,” 1 July 2026
- Cloudflare Docs, Block AI bots
- Cloudflare Docs, AI Crawl Control
- Cloudflare Docs, Rate limiting rules
- Cloudflare Docs, Bot score
- Fastly Threat Insights, “AI crawlers make up almost 80% of AI bot traffic,” 19 August 2025
- SparkToro, “In 2026, less than one third of Google searches still send a click,” 9 June 2026
- Pew Research Center, “Google users are less likely to click on links when an AI summary appears,” 22 July 2025
- Adobe Digital Insights, “Quarterly AI Traffic Report,” April 2026
- Adobe, “AI traffic surges across industries, retail sees biggest gains,” 12 January 2026
- PPC Land, “llms.txt adoption rises 8.8x but 97% of files get zero AI requests” (reporting Ahrefs and Originality.ai research)
- IETF AI Preferences WG, draft-ietf-aipref-vocab
- RSL Standard 1.0
- Cloudflare Docs, Default cache behaviour
- Cloudflare Docs, Cache Rules
- Cloudflare Docs, Edge and Browser Cache TTL
- Cloudflare Docs, Tiered Cache
- Cloudflare Docs, Dynamic content and login issues
- Cloudflare Docs, Cache Keys (query string sort)
- Cloudflare, “You get Instant Purge, and you get Instant Purge!”, 1 April 2025
- WooCommerce, Configuring caching plugins
- WooCommerce, Cookies
- WordPress, Advanced Administration Handbook: Cookies
- Plesk, Apache and nginx settings
- Plesk, Enabling nginx caching
- Plesk KB, PHP-FPM max_children
- Google, Managing crawling of faceted navigation URLs
- Shopify Pricing
- Shopify Terms of Service
- Shopify, Bot filtering in analytics and reports
- Shopify changelog, “Filter out bot traffic in your sessions-related reports,” 27 October 2025
- Shopify, Protecting your store from bots
- Shopify, Checkout bot protection
- Shopify, Editing robots.txt.liquid
- Shopify, Troubleshooting domains (Cloudflare proxy unsupported)
- Shopify, Agentic storefronts
- Shopify, Shopify Catalog and product discovery
- Shopify, API rate limits
- Shopify, Hydrogen and Oxygen fundamentals
- Shopify news, “The agentic commerce platform,” 11 January 2026
- Vercel Community, “Unexpected billing spike from AI scraper on development deployment,” 22 January 2026
- Vercel regional pricing
- AWS CloudFront pricing
- Google Search Central, Fix Search-related JavaScript problems (WRS resource handling, stateless rendering)
- Google, Common crawlers (Google-Extended is a robots.txt token, not a user agent)
- Kim, Bock, Luo, Liswood, Poroslay & Wenger, “Scrapers selectively respect robots.txt directives,” ACM Internet Measurement Conference 2025
- Jarad & Bicakci, “When Handshakes Tell the Truth: Detecting Web Bad Bots via TLS Fingerprints”
- Vercel, “The rise of the AI crawler,” 17 December 2024 (AI crawlers fetch but do not execute JavaScript)
- Chrome for Developers, “Removing —headless=old from Chrome”
- IAB Tech Lab, IAB/ABC International Spiders and Bots List (pricing and methodology)
- rebrowser, Runtime.enable CDP detection writeup
- HUMAN Security, “ChatGPT Atlas vs Perplexity Comet: agentic browsers,” 11 December 2025
- OpenAI Help Centre, Cloud browser allowlisting (Web Bot Auth, RFC 9421)
- Cloudflare, “Signed Agents,” 28 August 2025
- AWS WAF Bot Control components
- AWS WAF pricing
- Amazon CloudFront JA4 fingerprinting, 11 October 2024
- Vercel, Bot management
- Vercel, BotID