Skip to content

Is Your Firewall Silently Blocking AI Crawlers? Checking Cloudflare, WAF & CDN

Robots.txt says yes, but your WAF or CDN might still say no. Here's the test that finds out which layer is actually blocking AI crawlers.

Co-Founder & CEO
Published
Updated
Reading time
20 min read
Is Your Firewall Silently Blocking AI Crawlers? Checking Cloudflare, WAF & CDN

Summarise this post with

A permissive robots.txt proves nothing. Most sites that list GPTBot, ClaudeBot and PerplexityBot as allowed there are still blocking some of them, just not at that layer. Robots.txt is a request a crawler can choose to honour. The block, when it exists, almost always sits one layer deeper, inside Cloudflare, a WAF, bot management, or origin middleware, or on a page that only renders its content in the browser.

This matters the moment any of those crawlers shows up in your server or CDN logs with a non-200 response, or doesn't show up at all despite robots.txt allowing it.

One caveat going in. A test request can pass where the real crawler fails. Many WAFs and bot-management tools verify a crawler by IP range, not by the user agent string you typed into curl. Treat everything below as a way to find a probable block, then confirm it against your own logs.

If your own test turns up a block you can't clear yourself, our Technical SEO and AI Readiness team fixes WAF and CDN rules for AI crawlers every week. A short scope call tells you what's actually blocking you before you touch a single setting.

Robots.txt Is A Policy File, Not A Network Control

An AI crawler is a bot built by an AI company to fetch pages, either to train a model or to answer a live question. Robots.txt is how a site tells that bot which paths it's welcome to fetch. The word that matters is tells. Robots.txt has no enforcement behind it. It's a text file at a known URL, and a crawler that ignores it faces no technical obstacle at all, only reputational risk from the company that sent it.

Enforcement happens somewhere else entirely. At the edge, a CDN or WAF decides whether a request even reaches your origin, and inside whatever system classifies a given request as "this is GPTBot" or "this is a browser." Robots.txt cannot, on its own, stop or identify a crawler that chooses to ignore it; both jobs belong to the network layer.

Cloudflare's own documentation makes the split explicit in a way that's easy to miss. Allowing a crawler in robots.txt doesn't stop Cloudflare enforcing its own rules against it anyway; the platform tracks robots.txt violations per crawler as a signal separate from whatever your text file says. Your policy and the platform's enforcement are two different systems that happen to read the same file.

Practically, that means the page most people check, robots.txt, tells you what you intended. It tells you nothing about what actually happened to the last hundred requests from GPTBot. For the intended side of that question, which AI crawlers to allow in robots.txt is the fuller reference. This article is about the other side. What actually happened, not what you asked for, is what the rest of this guide checks.

That gap is also why the SERP for this topic is thin. Most guides on AI crawlers stop at robots.txt syntax, because that's the file anyone can read and edit without server access. Checking what the WAF actually did requires log access, a terminal, and knowing which headers to look for, which is exactly what the rest of this guide walks through.

Where AI Crawlers Actually Get Blocked: CDN, WAF, Bot Management, And Client-Side Rendering

Before testing anything, it helps to know where a block can actually live. Most AI crawler blocks sit in one of these layers, not in robots.txt, because robots.txt never reaches any of them:

  • CDN edge rules: Firewall rules configured at the CDN level, before a request ever reaches your server. This is where most Cloudflare, Fastly and similar blocks happen.
  • WAF custom rules: Rules written to catch scrapers or bad traffic in general, which can catch an AI crawler's user agent string as collateral damage.
  • Bot management challenges: A JavaScript challenge, a CAPTCHA, or a managed-challenge response meant for suspicious traffic, which an AI crawler can't solve because it isn't a browser.
  • Origin middleware: Application-level code on your own server that checks the user agent or IP before serving a response, independent of whatever the CDN already decided.
  • Client-side rendering: Pages where the meaningful content only appears after JavaScript runs. A crawler that doesn't execute scripts gets an empty shell, which looks like a block even though nothing technically blocked it.

Cloudflare, Akamai and Sucuri can all block AI crawlers by default or through aggressive bot-protection settings tuned for an entirely different threat. None of these three products set out to block ChatGPT or Claude specifically. They set out to stop scrapers, and an AI crawler's traffic pattern often looks exactly like one.

This is the list to work through once a test below comes back blocked. Five places, and the fix is different for each.

The AI Crawler User Agents You Need To Test

Testing "AI crawlers" as one category hides the question that actually matters, which is whether you're blocking training, search, or both. The named user agents in current use split cleanly by operator and by job.

CrawlerOperatorPrimary Use
GPTBotOpenAIModel training
ChatGPT-UserOpenAIUser-triggered fetch, a ChatGPT user asked it to open the page
OAI-SearchBotOpenAISearch indexing
ClaudeBotAnthropicModel training
Claude-UserAnthropicUser-triggered fetch
PerplexityBotPerplexitySearch indexing and retrieval
Perplexity-UserPerplexityUser-triggered fetch
Google-ExtendedGoogleModel training (Gemini and AI features)

The training-versus-search split isn't cosmetic. Blocking GPTBot slows OpenAI's next model from learning your content. Blocking OAI-SearchBot can remove you from ChatGPT's live search answers today. The two decisions deserve separate settings, not one blanket rule, and the "Should You Block AI Crawlers At All?" section further down walks through that trade-off directly.

There's also a layer under all of this that user agent strings don't touch at all, whether the model treats your brand and your content as the same entity across every page you publish. That's a separate, harder problem than crawler access, and how LLMs actually read a site is where TRM's own approach to it lives if you want to go further than access control.

How To Run A Crawler Access Test, Step By Step

This is the test nothing else in this space actually walks you through. It goes quickly once you've done it a couple of times, and it tells you, precisely, which layer is responsible.

  1. Pull the robots.txt the edge actually serves. Fetch https://yoursite.com/robots.txt fresh, not from memory or a staging copy. A CDN can serve a cached or environment-specific version of this file, so confirm you're reading what a crawler would actually get right now.
  2. Request the same URL twice, once as the crawler, once as a browser. Send the request with the AI crawler's exact user agent string, then send it again with an ordinary browser user agent, and compare the two responses side by side. Here's the pattern, run as a pair. curl -A "GPTBot" -I https://yoursite.com/page and the same request with curl -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" -I https://yoursite.com/page. A browser 200 against a crawler 403 on the identical URL is the clearest signal of a user-agent-reactive filter, something actively checking who's asking rather than what's being asked for. Run that pair for every crawler in the table above, against two or three representative pages, not just the homepage.
  3. Read the headers before you read the status code. A 200 isn't automatically a pass. Check for headers such as server: cloudflare or cf-mitigated: challenge, and read the response body too, because a 200 that returns an empty challenge page or a blank shell still fails the test even though the status code looks clean.
  4. Pull server or CDN logs for the same crawlers over a real window of time. A single test request is a snapshot. A 200, 403 and 429 in your logs mean success, an outright block and rate-limiting respectively, and this is where you catch a block that a one-off curl request would miss entirely, including requests the CDN dropped before they ever reached your server. Once access looks clean here, turning Search Console and GA4 into a content audit is the natural next check. Access tells you a crawler could read the page, not what it found once it did.
  5. Hold the result loosely until you've checked against real traffic. Many WAFs and bot-management platforms verify a crawler by IP range rather than by user agent string alone, so a test request with the right user agent and the wrong IP can pass a check the real crawler would fail, or fail a check the real crawler would pass. Your curl request proves what a request with that user agent does. It doesn't prove what OpenAI's actual infrastructure experiences.

Test more than your homepage. A block configured at the WAF level might only trigger on paths matching a pattern, a blog subdirectory, a pricing page, anything that looks like it's being scraped at volume. Run the pair of requests above against a handful of representative URLs, a high-traffic blog post, a product or pricing page, and anything behind a login wall if you have one, since those often carry tighter rules than the public pages.

That gap between a test request and the real crawler is exactly what one engineer ran into while building a small checker of their own. Testing seven AI user agents against both robots.txt and live HTTP responses, they found a bot that robots.txt explicitly allowed got a 403 straight from the server, which is the whole thesis of this article in one concrete example. The file said yes, the server said no, and nothing about robots.txt would ever have surfaced that disagreement.

Run all five steps and you'll know, for a given URL and a given crawler, which of three things is true. The crawler can read the page, the crawler is getting a soft block or challenge, or the crawler is being rejected outright. The next section defines exactly where those lines sit.

Reading The Results: Pass, Challenge, Or Block

Three outcomes, and they're easy to collapse into two if you're not careful.

Pass. A bot is genuinely allowed only when three things line up together, robots.txt, a 200 and no noindex. Drop any one of them and you don't have a pass, you have something that looks like one until you check closer.

Challenge. A challenge page, a CAPTCHA, or a JavaScript puzzle meant for human visitors. A 200 status code doesn't mean robots.txt compliance, and a challenge response is not the same as a block, though in practice it has the same effect, since no AI crawler currently in the field can solve a CAPTCHA.

Block. An explicit 403, 401, or a connection that never resolves. No ambiguity here. This is the one outcome that matches its own name.

The distinction that trips people up most is between a challenge and a genuine pass, because both can return a 200. The fix is the same one from the test above. Read the body, not just the status line.

There's a fourth case worth naming separately, because it's invisible to every check above that only looks at raw HTTP responses. Comparing the raw HTML a server returns against a full JavaScript-rendered version of the same page catches sites where the content a browser shows a human never reaches a crawler that doesn't execute scripts. Nothing blocked the crawler on purpose. The page just never finished loading from the crawler's point of view, and the practical outcome matches a block anyway. An AI search engine cites nothing from a page that, to a human, looks complete.

How common is this across the open web? One engineer who built a checker across their own set of test sites found roughly 30 percent blocking at least one AI bot at the infrastructure layer despite a robots.txt that explicitly allowed it. That's one person's test set, not an industry survey, and it shouldn't be read as a market-wide figure. What it does confirm is the gap this entire article is built around. A permissive robots.txt and an open door are two different things, often on the same site.

Running this test once tells you where you stand today. AI visibility tools that track crawler activity on an ongoing basis are the next step if the answer matters enough to monitor rather than check once a quarter.

Running this test across every page and every bot category gets tedious fast, and rules drift after every WAF update. The GEO + SEO Growth Programme includes a standing crawler-access check as part of ongoing reporting, so a new block shows up the week it appears, not the quarter it costs you traffic.

Cloudflare AI Crawl Control: What It Blocks And How To Fix It

Cloudflare is the most common CDN and WAF sitting in front of B2B sites, which makes its own AI Crawl Control feature worth understanding specifically rather than lumping into "a WAF might block you."

Mechanically, an AI Crawl Control block isn't a system of its own. It's enforced by creating or updating a WAF custom rule on your zone, the same mechanism you'd use to block any other kind of traffic. Turning AI Crawl Control on writes a rule you could, in principle, also write by hand.

Detection quality depends on your plan. On Cloudflare's free plan, AI Crawl Control identifies crawlers only by user agent string; paid plans can additionally use Cloudflare's own Bot Management detection ID, a harder signal to spoof than a string anyone can set in a request header. If you're on the free plan and a crawler is getting through that you expected to block, or being blocked when you expected to allow it, user-agent-only detection is the first thing to check.

The response a blocked crawler sees also depends on plan tier. Custom block responses require a paid plan, and the response code can be configured as either 403 or 402; Cloudflare's own documentation doesn't state a single default, so don't assume a 403 in your logs means AI Crawl Control specifically rather than a different rule on the zone.

For visibility into what's actually happening, the Crawlers tab inside AI Crawl Control shows request volume broken out per crawler, the fastest way to confirm what the curl test from earlier already suggested, without re-running a single request.

Cloudflare also now distinguishes training from search at the setting level. A Disallow AI Training toggle keeps a mixed-use crawler, one that both trains models and serves live search results, active in search while blocking the training use specifically. Google's Google-Extended directive is the closest equivalent on the Google side; the "Should You Block AI Crawlers At All?" section below covers what each setting actually changes.

How widely is this actually used? Cloudflare's own figures put roughly 17 percent of sites on its network enabling some mechanism to block AI training, against under 1 percent that block AI search bots. That gap is the clearest evidence available that most site owners who touch this setting at all understand the distinction. Block training, leave search alone. These changes, including the Disallow AI Training distinction itself, took effect on September 15, 2026, so a setup checked before that date is worth revisiting.

If your site runs on Cloudflare and the test above came back with a block, check these settings in this order. Start with the Crawlers tab for actual traffic, then the zone's WAF custom rules for anything matching AI Crawl Control's pattern, then your plan tier for whether you're stuck with user-agent-only detection. Once you've confirmed what's actually happening, auditing content with AI tools for SaaS teams is where to look next for what crawlers that do get through are actually doing with the page.

Fixing Blocks At Other Layers: Akamai, Sucuri, And Origin Rules

Not every B2B site runs on Cloudflare, and even on Cloudflare, some blocks live outside AI Crawl Control entirely. The fix pattern is the same regardless of vendor.

  1. Review your bot-protection defaults. Akamai and Sucuri, like Cloudflare, can block AI crawlers by default or through bot-protection settings tuned for a different threat entirely. Check the bot management dashboard first, before touching anything else, since this is where most unintentional blocks originate.
  2. Allowlist verified AI user agents and their published IP ranges. User agent alone is spoofable, so the safer fix allowlists both the string and the IP ranges the operator publishes for that crawler. This is the direct counter to the IP-verification caveat from earlier. If your WAF checks IP ranges too, matching on user agent alone won't fix anything.
  3. Narrow any WAF rule written broadly enough to catch scrapers in general. A rule meant to stop volumetric scraping often has no exception for a crawler that happens to request pages at a similar rate. Scope the rule to exclude the specific user agents and IP ranges you've chosen to allow, rather than disabling the rule entirely.
  4. For client-rendered pages, serve pre-rendered HTML or add a crawler-specific bypass at the origin. If your site renders meaningful content in the browser via JavaScript, an AI crawler that doesn't execute scripts needs either a server-rendered version of the same content or a dedicated route that serves pre-rendered HTML to recognized crawler user agents.

Rolling this across more than a handful of pages, especially the pre-render fix, is exactly the kind of recurring technical work that benefits from a process rather than a one-off fix. Sequencing technical SEO work into agile sprints is the playbook for exactly that kind of rollout.

If you've worked through this list and you're still not confident which setting is actually responsible, that's the normal outcome once a site has layered CDN rules, an application firewall and client-side rendering on top of each other over several years. A technical SEO and AI-readiness review is built for exactly that kind of multi-layer diagnosis, where the fix is less "change one setting" and more finding which of six settings is the one that matters.

Common Mistakes When Testing Or Blocking AI Crawlers

  1. Trusting a single test request as proof the real crawler gets the same result. Many bot-management platforms verify a crawler by IP range rather than by the user agent string in the request, so a curl request with the right header and the wrong IP tells you how that platform treats an impostor, not how it treats OpenAI or Anthropic's real infrastructure.
  2. Treating a log entry that names GPTBot as confirmation the request came from OpenAI. Anyone can set a user agent string to anything they want, and platforms that take this seriously verify by IP, not by name alone. A log full of GPTBot entries might be GPTBot. It might also be a scraper wearing GPTBot's name.
  3. Treating a challenge page as an allow because the crawler technically reached the server. The server responding isn't the same as the server serving your content. A crawler that can't solve a CAPTCHA gets nothing useful out of a 200 wrapped around a challenge page.
  4. Skipping the JavaScript-rendered check on client-rendered pages. Raw HTML and a fully rendered page can differ enough that a page looking complete to a human in a browser looks empty to a crawler that never executes the scripts that build it. Testing only the raw response misses this entirely.
  5. Testing once and treating the result as permanent. A WAF rule change, a plan upgrade, a new bot-management default, or a security vendor's quarterly rule update can silently flip a pass into a block with no announcement anywhere you'd see it. Catching content decay before it costs rankings applies the same discipline to crawler access that it applies to content. Check again on a schedule, instead of once and never again.
  6. Assuming one blocked crawler means they're all blocked. GPTBot, ClaudeBot and PerplexityBot are enforced by different rules in most WAF configurations, even when they're grouped under one "AI bots" toggle in a dashboard. Test each one. A block on one says nothing about the other six.

Should You Block AI Crawlers At All? Training Versus Search Access

This question only makes sense once you split it in two, because the two halves have opposite consequences.

Blocking a training crawler, GPTBot, ClaudeBot, Google-Extended, keeps your content out of the next version of a model. It has no effect on whether that model's live search feature can still answer a question using your page today, because training and live retrieval are handled by separate crawlers in most cases. Cloudflare's own announcement on mixed-use crawlers describes a Disallow AI Training setting built to keep a mixed-use crawler active in search while blocking only its training use, and states that Google's Google-Extended directive doesn't affect Search ranking in either direction. Blocking it costs you nothing in rankings and gains you nothing in rankings. It's purely a training-data decision.

Blocking a search or retrieval crawler, OAI-SearchBot, Perplexity's retrieval agents, is a different decision entirely. That crawler is how an AI search engine builds the index it answers questions from and the page it cites. Block it, and you don't appear in that engine's answers at all, the same way blocking Googlebot removes you from Google's results. If the goal was ever to show up when someone asks ChatGPT or Perplexity a question your content answers, blocking the search crawler is the one move that guarantees you won't.

Bing hasn't drawn this line the same way yet. Bing's own robots.txt-based training preference is targeted for early 2027; until it ships, Bing relies on the NOARCHIVE meta tag to express the same intent. If training opt-out matters to you on Bing specifically, that's the mechanism to use in the meantime, not a robots.txt rule that Bing doesn't yet read the way Google or Cloudflare's mixed-use crawlers do.

Here's the practical default for most B2B sites: Block training where you can using a mixed-use setting, and leave search and retrieval crawlers alone unless you have a specific reason to want your content excluded from AI answers entirely.

Before deciding either way, it helps to know how much AI search is already replacing the clicks you'd be protecting. Tools that flag AI-driven zero-click queries put a number on that before you make the call. And if the answer is "AI search already sends me some traffic," rewriting old posts for AI search visibility is the next lever once you've confirmed the crawlers that matter can actually reach the page.

FAQs

Does A 200 Response Mean An AI Crawler Is Allowed Under Robots.txt?
No. A 200 status code only means the server responded. Being allowed under robots.txt also requires that the crawler's user agent is permitted by your rules, and that the response carries no noindex directive. A 200 on a page robots.txt disallows is a crawler ignoring policy, not an allow.
Is A CAPTCHA Or Challenge Page The Same As A Block?
In practical terms, yes. No current AI crawler can solve a CAPTCHA or a JavaScript challenge, so a challenge response produces the same outcome as an explicit block, the crawler gets nothing usable. The status code might read 200 or 403 depending on how the challenge is served, but the result for the crawler is identical either way.
Can I Trust A Test Request To Behave Like The Real AI Crawler?
Only partly. Setting the right user agent string gets you most of the way, but some WAFs and bot-management tools verify a crawler by IP range instead. A test request from your own machine can pass a check the real crawler fails, or the reverse, so treat a result as a strong signal, not a guarantee.
Does Cloudflare Block AI Crawlers By Default?
Not uniformly. Cloudflare's own figures show roughly 17 percent of sites on its network enable some setting to block AI training crawlers, and under 1 percent block AI search bots, meaning most sites leave both alone unless an administrator specifically turns on AI Crawl Control or a related WAF rule.
What's The Difference Between GPTBot And ChatGPT-User?
GPTBot is OpenAI's training crawler. It fetches pages to train future models and has nothing to do with any individual user's request. ChatGPT-User fires when someone using ChatGPT asks it to open a specific page right now. Blocking one has no effect on the other.
Will Blocking AI Training Crawlers Hurt My Visibility In AI Search Answers?
No, provided you block the right crawler. A setting like Disallow AI Training keeps a mixed-use crawler active for search while blocking only its training use, and Google's Google-Extended training directive doesn't affect Google Search ranking either way. Training and search access are separate decisions with separate consequences.
How Often Should I Re-Run The Crawler Access Test?
Whenever your WAF, CDN, or bot-management settings change, and otherwise on a regular schedule rather than only once. Rules drift silently. A security vendor's default update or a new bot-protection tier can flip a pass into a block with no announcement you'd ever see outside your own logs.
What Does A 429 Response Mean Versus A 403?
A 403 means the request was refused outright, typically by a WAF or access rule. A 429 means the server accepted the request but is rate-limiting it, often because the crawler is making requests faster than a threshold allows. The fix for a 429 is usually slowing the crawl rate, not removing a block.
Does Google Search Console Show Whether AI Crawlers Are Blocked?
Not for AI crawlers specifically. Search Console reports on Googlebot's own crawling and indexing, not on GPTBot, ClaudeBot, or PerplexityBot. Checking AI crawler access means reading your own server or CDN logs for those user agents directly, since no AI company currently offers a Search Console equivalent.
Should I Block AI Crawlers From My Site Entirely?
Usually not all of them. Blocking training crawlers is a reasonable default if you don't want your content used to train future models. Blocking search and retrieval crawlers removes you from that engine's AI answers entirely, a bigger decision than most sites make by accident through a misconfigured WAF rule.

Still unsure which layer is blocking you, or whether it's worth fixing yourself? Send us your test results and we'll tell you plainly what we'd check next. Contact us.

Written by

Waqas Arshad
Waqas ArshadCo-Founder & CEO

The visionary behind The Rank Masters, with years of experience in SaaS & tech-websites organic growth.