---
title: "Cloudflare Block AI Bots Setting: Is It On for Your Site?"
description: "Cloudflare can block AI crawlers by default, and robots.txt will not show it. Check what GPTBot, ClaudeBot and PerplexityBot get from your site."
url: https://fullsearchaudit.com/blog/cloudflare-block-ai-bots/
language: en
updated: 2026-12-04
---

# Is Cloudflare blocking AI bots on your site? How to check, and what to allow

Cloudflare can block AI crawlers by default, and robots.txt will not show it. Check what GPTBot, ClaudeBot and PerplexityBot get from your site.

By Vadym Borovskyi, who prepares and checks every Full Search Audit report 
Published 4 December 2026 · 9 min read

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.

## 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. **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](https://www.cloudflare.com/press/press-releases/2025/cloudflare-just-changed-how-ai-crawlers-scrape-the-internet-at-large/) and ask every new domain whether to allow them.
2. **1 July 2026.** A [changelog entry](https://developers.cloudflare.com/changelog/post/2026-07-01-ai-traffic-options/) 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.
3. **Same day, Cloudflare’s blog** [explained](https://blog.cloudflare.com/content-independence-day-ai-options/) 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.
4. **November 2026.** The current [documentation page](https://developers.cloudflare.com/bots/additional-configurations/block-ai-bots/), 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](https://developers.cloudflare.com/bots/additional-configurations/managed-robots-txt/), excludes mixed-use crawlers from that block.
- **Bot Fight Mode is blunt.** The [Bot Fight Mode page](https://developers.cloudflare.com/bots/get-started/bot-fight-mode/) 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](https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/what-is-pay-per-crawl/) 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](https://developers.google.com/search/docs/appearance/ai-features) 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.

## 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:**

1. Request your home page with a normal browser user agent and note the status code.
2. Repeat with each crawler’s published user agent. OpenAI’s current string for GPTBot, from its [crawler documentation](https://developers.openai.com/api/docs/bots), is `Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot`.
3. 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.

<code><span class="line"><span>curl -s -o /dev/null -w "%{http_code}\n" https://www.example.com/</span></span> <span class="line"><span>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/</span></span></code>

Our free [AI crawler check](https://fullsearchaudit.com/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:**

1. **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.
2. **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.
3. **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.
4. **Your live robots.txt.** Load `/robots.txt` in 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](https://fullsearchaudit.com/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:**

1. Search: Allow (do not block).
2. Agent: Allow (do not block). Cloudflare itself recommends Allow for Personal Agents.
3. 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”.
4. 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:

<code><span class="line"><span>User-agent: GPTBot</span></span> <span class="line"><span>Disallow: /</span></span> <span class="line"><span></span></span> <span class="line"><span>User-agent: ClaudeBot</span></span> <span class="line"><span>Disallow: /</span></span> <span class="line"><span></span></span> <span class="line"><span>User-agent: OAI-SearchBot</span></span> <span class="line"><span>Allow: /</span></span> <span class="line"><span></span></span> <span class="line"><span>User-agent: Claude-SearchBot</span></span> <span class="line"><span>Allow: /</span></span> <span class="line"><span></span></span> <span class="line"><span>User-agent: PerplexityBot</span></span> <span class="line"><span>Allow: /</span></span> <span class="line"><span></span></span> <span class="line"><span>User-agent: *</span></span> <span class="line"><span>Allow: /</span></span></code>

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:

1. **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.
2. **Rate limiting** that returns 429 to any client making several requests in a short time.
3. **Hosting firewalls and security plugins** on the origin server, which can block by user agent after Cloudflare has let the request through.
4. **Another CDN or proxy** in front of or behind Cloudflare, with its own bot rules.
5. **Subdomains.** Anthropic’s [crawler article](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler) reminds site owners that robots.txt rules apply per subdomain, so `docs.` and `www.` 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](https://fullsearchaudit.com/audits/), with prices on the [pricing page](https://fullsearchaudit.com/pricing/). For the OpenAI side in detail, see [GPTBot vs OAI-SearchBot vs ChatGPT-User](https://fullsearchaudit.com/blog/gptbot-oai-searchbot-chatgpt-user/), and for the rest of the technical checklist, the [AEO audit checklist](https://fullsearchaudit.com/blog/aeo-audit/).

## 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.

Vadym Borovskyi

10+ years in marketing. Now builds AI automation for marketing teams. Prepares and checks every report at Full Search Audit. Reads each finding before it reaches the client and answers every email himself, in writing.

[How the audit works](https://fullsearchaudit.com/how-it-works/) [Sample report](https://fullsearchaudit.com/sample-report/) [LinkedIn](https://www.linkedin.com/in/axelt/)

Next step

Are you blocking AI crawlers without knowing it?

Check in 30 seconds whether 13 AI and search crawlers may read your site: robots.txt, llms.txt and a live test of your home page as GPTBot, ClaudeBot and PerplexityBot.

- Free
- No sign-up
- Result on screen
- Prepared and checked by Vadym Borovskyi

[Run the free AI crawler check](https://fullsearchaudit.com/ai-crawler-check/) [See a real report first (PDF, 26 pages)](https://fullsearchaudit.com/sample-report/)
