Should you let AI bots in? And how to set it up in Cloudflare

Guide ยท Last checked: December 3, 2026. New to this? Read What is AI SEO? first.

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

KindWhat it doesExamplesIf you block it
Search crawlerReads your pages ahead of time to build an index that answers are drawn fromGooglebot, Bingbot, OAI-SearchBot, Claude-SearchBot, PerplexityBotYou drop out of that company's search and AI answers
Fetcher for a personOpens your page at the moment someone asks an assistant about itChatGPT-User, Claude-User, Perplexity-User, Google-AgentThe assistant cannot read your page for that person
Training crawlerCollects pages to train modelsGPTBot, ClaudeBot, Google-Extended, CCBot, Applebot-ExtendedYour pages are not used in future training; search is not affected

Two traps:

Before you decide: what does one request cost you?

The bot question is mostly a server question.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

What this guide does not cover

Get the next note by email. One measurement a week from our own logs, with the method to repeat it.
Subscribe, free