Should you let AI bots in? And how to set it up in Cloudflare
For most sites: let the search crawlers and the fetchers that work for a person in, decide about training crawlers separately, then check that your firewall does what you think it does.
Three kinds of bot, three different costs of blocking
| Kind | What it does | Examples | If you block it |
|---|---|---|---|
| Search crawler | Reads your pages ahead of time to build an index that answers are drawn from | Googlebot, Bingbot, OAI-SearchBot, Claude-SearchBot, PerplexityBot | You drop out of that company's search and AI answers |
| Fetcher for a person | Opens your page at the moment someone asks an assistant about it | ChatGPT-User, Claude-User, Perplexity-User, Google-Agent | The assistant cannot read your page for that person |
| Training crawler | Collects pages to train models | GPTBot, ClaudeBot, Google-Extended, CCBot, Applebot-Extended | Your pages are not used in future training; search is not affected |
Two traps:
- robots.txt does not reach most fetchers. For ChatGPT-User, OpenAI says "robots.txt rules may not apply". Google says its fetchers for a person, Google-Agent among them, "generally ignore robots.txt rules", and Perplexity says the same of Perplexity-User. Anthropic says its bots, Claude-User among them, respect robots.txt.
- Google-Extended does not take you out of AI Overviews. Google says Google-Extended "doesn't impact a site's inclusion in Google Search". AI Overviews and AI Mode are controlled with the generative AI control in Search Console, or with nosnippet, max-snippet and noindex. Blocking Googlebot takes you out of Google entirely.
Before you decide: what does one request cost you?
The bot question is mostly a server question.
- New site? Let the crawlers in. A site that blocks Googlebot or the AI search crawlers from day one is not indexed, and does not show up anywhere.
- Static pages on a CDN? A request costs you close to nothing. Cloudflare says requests to static assets on Workers are free and unlimited. This site has no bot rules for that reason.
- Pages built from a database on each request? Every request that misses the cache becomes database reads, and you pay for those. A rule for unknown automated traffic may be worth it. Expect it to catch some bots you wanted, and check which.
- Is your HTML cached at all? Cloudflare says it "does not cache HTML or JSON by default". Without a cache rule, every page request goes to your server, bots' included.
- Floods? Cloudflare's basic DDoS protection is on for every plan, free included. What costs you is what still gets through to your server.
- Content for signed-in people only? A bot rule is not access control. Check what a request without a login actually receives; if the server sends the content and only the page hides it, anyone can read it, bot or not.
Our own two sites, side by side: Why this site has no bot rules, and glasp.co does.
Setting it up in Cloudflare (December 2026)
Cloudflare renamed and rebuilt these settings in 2026. Older guides that mention a single "Block AI bots" switch are out of date.
- AI Crawler and Agent access policies (Security > Settings > Bot traffic). Three settings, Search, Agent and Training, on every plan including Free. Set Search to Allow. Set Agent (fetchers for a person) to Allow; Cloudflare itself recommends Allow for personal agents. For Training, choose Disallow, not Block, if you do not want training: Cloudflare's blog says Block now applies to mixed-use crawlers, "including Applebot, Bingbot, and Googlebot", while under Disallow "they can keep crawling your site for search". For a new domain, the starting values depend on your answer, when you add it, about whether the site shows ads. With no ads, everything starts at Allow. Check yours.
- Bot Preference Sync (same page, under Training: Disallow). Writes the matching lines into your robots.txt for you. It writes nothing while everything is Allow.
- Bot Fight Mode (Free plan). Challenges traffic that looks automated across the whole site, and cannot be switched off for one bot with a rule. If a bot you want is being challenged, turn it off, or on a paid plan use Super Bot Fight Mode with a Skip rule.
- WAF custom rules. They run before everything above. A broad rule here can block a crawler you set to Allow, and Cloudflare notes that such blocks may not show up in its AI crawler pages. To act on training crawlers only, a rule on
cf.verified_bot_category eq "AI Crawler"leaves search engines and assistants alone. - Challenge or block? Fetchers for a person do not run the JavaScript a challenge needs, so in practice a challenge stops them as surely as a block.
Check that it works
- AI Crawl Control (left menu): requests per crawler, allowed or not, status codes. On Free, the last 24 hours.
- Security > Analytics: what was challenged or blocked, and by which rule.
- A challenge looks like a normal page. It is an HTML page whatever was asked for; the only reliable mark is the response header
cf-mitigated: challenge. A check with curl that "got a page" may have got the challenge. - Ask an assistant to open one of your pages, then look for its request in the log: which agent came, and whether it was served.
What this guide does not cover
- Pay per crawl (closed beta).
- CDNs other than Cloudflare. The three kinds of bot and the server question apply everywhere; the menu names do not.