Yes, Cloudflare may be blocking AI bots on your site, and your robots.txt will not tell you. Cloudflare has shipped several AI crawler settings since 2025, some of them on by default for new domains, and they act at the edge before your server answers. If nobody remembers who set up the CDN, check what GPTBot, ClaudeBot and PerplexityBot actually receive, then decide what to allow.
Key takeaways
- Cloudflare has changed its default AI crawler settings more than once since July 2025, so check your zone instead of assuming.
- robots.txt can allow a crawler while a Cloudflare rule still answers it with a 403 or a challenge.
- Cloudflare says that blocking Training also blocks multi-purpose crawlers such as Googlebot, Applebot and BingBot.
- Training, search and user fetches are three separate decisions: most B2B sites that want to be cited should allow search and user fetches.
- Security Analytics and the AI Crawl Control Crawlers tab show what real crawlers received, which an outside test cannot fully prove.
In this article
- What changed: Cloudflare’s AI crawler defaults, with dates
- Which Cloudflare settings can block AI bots
- The symptom: robots.txt says allow, the crawler gets a 403
- How to check in 30 seconds from outside, and where to look inside
- Should a B2B site block AI crawlers? Three decisions, not one
- How to allow search crawlers and still block training
- Other places a block can hide
- Frequently asked questions
What changed: Cloudflare’s AI crawler defaults, with dates
Cloudflare moved from “allow” to “block by default” in 2025 and has adjusted the defaults since. Which default your zone got depends on when it was added and what someone clicked during onboarding.
The short history, from Cloudflare’s own announcements:
- 1 July 2025. Cloudflare, which says it helps manage and protect traffic for 20% of the web, announced it would block AI crawlers by default (opens in a new tab) and ask every new domain whether to allow them.
- 1 July 2026. A changelog entry (opens in a new tab) replaced the single “Block AI bots” toggle with three behaviors you set separately: Search, Agent and Training. It announced that from 15 September 2026 new domains would get Training and Agent blocked on pages that display ads, with Search allowed.
- Same day, Cloudflare’s blog explained (opens in a new tab) that multi-purpose crawlers such as Googlebot, Applebot and BingBot combine Search and Training, and that customers who block Training, through the new options or the legacy “Block AI bots” setting, also block those crawlers.
- November 2026. The current documentation page (opens in a new tab), updated on 2 November 2026, says new domains start with Search, Agents and Training all set to “Allow (do not block)”.
Read together, these say one thing clearly: the setting on your zone is whatever was chosen or defaulted at the time, not what a blog post from last year describes. The only safe assumption is none.
Which Cloudflare settings can block AI bots
Four settings can stop an AI crawler, and they sit in different places. As of December 2026, Cloudflare’s documentation names them as follows.
| Setting | Where it lives | What it does to AI crawlers |
|---|---|---|
| AI Crawler and Agent access policies (previously “Configure AI bot policies”, earlier “Block AI bots”) | Security, Settings, filter by Bot traffic | Block, block on pages with ads, or allow, separately for Search, Agent and Training |
| Bot Preference Sync (managed robots.txt) | Same screen | Prepends Disallow rules and Content Signals to your robots.txt; with Training set to Disallow it also blocks training crawlers at the edge |
| AI Crawl Control (formerly AI Audit) | AI Crawl Control, Crawlers tab | Allow or block each named crawler; “Charge” is pay per crawl, in closed beta |
| Bot Fight Mode | Security, Settings, filter by Bot traffic | Challenges traffic that matches patterns of known bots; cannot be bypassed with WAF custom rules |
A few details matter for a B2B site that wants to be read:
- Training covers mixed-purpose crawlers. The policies page says Training actions also apply to crawlers used for both Search and Training. That is how a Training block can reach Googlebot.
- The robots.txt Disallow is softer. With Bot Preference Sync on, the Training “Disallow” option blocks training crawlers at the edge but, per the robots.txt setting page (opens in a new tab), excludes mixed-use crawlers from that block.
- Bot Fight Mode is blunt. The Bot Fight Mode page (opens in a new tab) says it runs outside the Ruleset Engine, so Skip, Bypass and Allow rules have no effect on it.
- Pay per crawl answers with a price. A crawler that does not pay gets an HTTP 402 Payment Required (opens in a new tab) response instead of your page.
The symptom: robots.txt says allow, the crawler gets a 403
The typical case looks clean on paper. Your robots.txt has User-agent: * and Allow: /, your SEO tool says crawlers are welcome, and ChatGPT search still never cites you.
The reason is order. Cloudflare answers the request at the edge. If a policy, a WAF rule or Bot Fight Mode decides the request is an unwanted bot, the crawler gets a 403 Forbidden, a challenge page, a 402 or a 429 Too Many Requests, and your robots.txt never comes into play. robots.txt is a request to well-behaved crawlers. A firewall is enforcement. When they disagree, the firewall wins.
Google states the same requirement for its own AI features: its AI features documentation (opens in a new tab) lists “ensuring that crawling is allowed in robots.txt, and by any CDN or hosting infrastructure” among the basics.
What this costs is easy to miss. Nothing breaks for human visitors. Traffic reports look normal. The only visible effect is absence: an assistant that answers your buyer’s question from a competitor’s page, because yours returned a 403.
From a real audit of a B2B company in a highly competitive market, anonymised
Its llms.txt linked to just one of its roughly 70 pages.
Small gaps like this decide whether AI assistants can read and cite you. The Readiness Audit lists them for your key pages, free fixes first.
See the sample report (PDF, 26 pages)Run the free AI crawler check
How to check in 30 seconds from outside, and where to look inside
Start outside, then confirm in the dashboard. The outside test is fast but not final, because Cloudflare can identify real crawlers by IP address and a test from your laptop is not a real crawler.
From outside, in a terminal:
- Request your home page with a normal browser user agent and note the status code.
- Repeat with each crawler’s published user agent. OpenAI’s current string for GPTBot, from its crawler documentation (opens in a new tab), is
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot. - Compare. A 200 for the browser and a 403, 402, 429 or a challenge page for the crawler means something at the edge treats crawlers differently.
curl -s -o /dev/null -w "%{http_code}\n" https://www.example.com/
curl -s -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot" https://www.example.com/
Our free AI crawler check does this for you: it reads robots.txt for 13 crawlers and loads your home page as GPTBot, ClaudeBot and PerplexityBot, then compares the answers. It has the same limit as any outside test: a firewall that checks IP addresses may treat our server differently from the real crawlers, in either direction.
Inside the Cloudflare dashboard:
- Security, Settings, filter by Bot traffic. Read the AI Crawler and Agent access policies for Search, Agent and Training, and note whether Bot Preference Sync and Bot Fight Mode are on.
- AI Crawl Control, Crawlers tab. Each crawler shows allowed and unsuccessful requests and robots.txt violations. Cloudflare notes that unsuccessful requests can come from any rule or response error, not only a block there.
- Security, Analytics, Events. Requests challenged by Bot Fight Mode are labeled “Bot Fight Mode” in the Service field. Filter by user agent to see what happened to real GPTBot, ClaudeBot, Googlebot and Bingbot requests.
- Your live robots.txt. Load
/robots.txtin a browser. A block starting with “BEGIN Cloudflare Managed content” means Bot Preference Sync is adding rules you may not have written.
Should a B2B site block AI crawlers? Three decisions, not one
Blocking “AI bots” bundles three separate jobs. Decide each on its own, because they affect different things.
- Training crawlers (GPTBot, ClaudeBot, Google-Extended for Google’s generative AI products) collect pages that may be used to train future models. Blocking them is a reasonable choice if you do not want your content in training data. OpenAI and Anthropic both document that their training opt-outs are separate from their search crawlers.
- Search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) build the index that assistants search when they answer with sources. OpenAI says sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though they can still appear as navigational links.
- User fetchers (ChatGPT-User, Claude-User, Perplexity-User) load a page when a person asks an assistant about it. Blocking them stops the assistant from reading your page at the moment a buyer asks.
For most B2B companies that sell through a shortlist, the commercial answer is to allow search and user fetchers. Training is a judgment call about your content, not about visibility next month. Nobody can promise that allowing crawlers gets you cited, and our FAQ says the same about our own audits: access is a precondition, not a result.
How to allow search crawlers and still block training
Set the policies to match the three decisions above, then make robots.txt say the same thing so compliant crawlers and the edge agree.
In Cloudflare:
- Search: Allow (do not block).
- Agent: Allow (do not block). Cloudflare itself recommends Allow for Personal Agents.
- Training: choose between “Disallow” with Bot Preference Sync, which signals through robots.txt and blocks training crawlers at the edge while excluding mixed-purpose crawlers, and “Block”, which per Cloudflare’s July 2026 blog also blocks multi-purpose crawlers such as Googlebot. If Google Search traffic matters to you, read that sentence twice before choosing “Block”.
- Bot Fight Mode: if it is on and Security Analytics shows it challenging crawlers you want, turn it off or move to a plan where exceptions are possible.
In robots.txt, a version that allows search and blocks the two named training crawlers:
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: *
Allow: /
Then repeat the outside test and check Security Analytics a day later. OpenAI says it can take about 24 hours for its search systems to reflect a robots.txt change.
Other places a block can hide
If Cloudflare looks clean and crawlers still fail, the block is somewhere else. Check these in order:
- WAF custom rules written years ago, for example a rule that challenges every request without a browser cookie or blocks traffic from cloud hosting networks, where most crawlers run.
- Rate limiting that returns 429 to any client making several requests in a short time.
- Hosting firewalls and security plugins on the origin server, which can block by user agent after Cloudflare has let the request through.
- Another CDN or proxy in front of or behind Cloudflare, with its own bot rules.
- Subdomains. Anthropic’s crawler article (opens in a new tab) reminds site owners that robots.txt rules apply per subdomain, so
docs.andwww.can behave differently.
The free check covers your home page only. If you need every key page, the robots.txt rules for each folder and live checks reviewed together with your content and structured data, that is part of the AI Search Readiness Audit described on our audits page, with prices on the pricing page. For the OpenAI side in detail, see GPTBot vs OAI-SearchBot vs ChatGPT-User, and for the rest of the technical checklist, the AEO audit checklist.
Related: How a full audit works, step by step
Frequently asked questions
Should I block AI crawlers on Cloudflare?
Block training crawlers if you do not want your content used for training; allow search crawlers and user fetchers if you want to be cited. Those are separate settings in Cloudflare’s AI Crawler and Agent access policies, so you do not have to choose all or nothing. Check the Training option carefully, because Cloudflare says blocking Training also blocks multi-purpose crawlers such as Googlebot.
Does Cloudflare protect against bots?
Yes, at several levels. Bot Fight Mode is free and challenges traffic that matches known bot patterns, Super Bot Fight Mode is available on Pro, Business and Enterprise plans, and Bot Management is an Enterprise product. The AI policies and AI Crawl Control are available on all plans. The risk for a B2B site is the opposite of the usual one: protection that turns away the crawlers you want.
How to block AI bots?
Use robots.txt to state your preference for compliant crawlers, and Cloudflare’s AI Crawler and Agent access policies or AI Crawl Control to enforce it. Cloudflare’s own documentation notes that robots.txt compliance is voluntary, which is why the edge setting exists. Block by job, not by brand: training, search and user fetch are separate choices.
Does Cloudflare block Googlebot or Bingbot?
Not by itself, but your settings can. Cloudflare’s July 2026 blog says customers who block Training, through the new policies or the legacy “Block AI bots” setting, also block multi-purpose crawlers such as Googlebot, Applebot and BingBot. Filter Security Analytics by user agent to see what Googlebot and Bingbot actually received on your zone.
Why does my robots.txt contain rules I did not write?
Cloudflare’s Bot Preference Sync prepends managed rules and a Content Signals policy to your robots.txt when at least one AI policy blocks or disallows. Look for a block marked “BEGIN Cloudflare Managed content”. The rules change when you change the policies, without a cache purge.