DEV Community

Cover image for Block AI Crawlers Without Losing AI Search: What Each Bot Does
ParallaxGrain
ParallaxGrain

Posted on

Block AI Crawlers Without Losing AI Search: What Each Bot Does

To block AI crawlers and still be found in AI search, a site has to make three separate decisions. Most AI operators run several bots with different jobs: one that collects pages for model training, one that builds the index cited answers rely on, and one that opens a single page because a user asked. Each bot has its own name and its own robots.txt behaviour, and blocking it costs something different. A rule that names the wrong bot can remove a site from ChatGPT or Perplexity answers while training carries on.

A bot's name says nothing about what blocking it costs. Decide per purpose (training, search, one user's request), then write a rule for every bot that serves it.

Block AI crawlers by purpose: training, search, user request

Training crawlers gather pages for model training sets. Blocking a training-only crawler excludes later content from those sets and leaves search listings untouched. Search crawlers build the index that AI answers cite, so blocking one removes the site from those answers. User-triggered fetchers open a page because someone pasted a link or asked about it. ChatGPT-User, Perplexity-User, Google's fetchers and Meta-ExternalFetcher may skip robots.txt while Claude-User follows it, so for the first group rate limits and IP rules are the controls that bind.

Two tokens are not crawlers. Google-Extended and Applebot-Extended never fetch a page; they tell the operator how content already collected by Googlebot or Applebot may be used.

Which bot does what, and what blocking it changes

Bot or token Purpose Honours robots.txt (as documented) What blocking it changes
GPTBot (OpenAI) Training Yes Content stays out of OpenAI model training; ChatGPT search is unaffected
OAI-SearchBot (OpenAI) Search Yes Site disappears from ChatGPT's search answers; it may still appear as a plain link
ChatGPT-User (OpenAI) One user's request Rules may not apply Nothing for search; the fetch may still happen
ClaudeBot (Anthropic) Training Yes Future pages are excluded from training data
Claude-SearchBot (Anthropic) Search Yes Pages are not indexed for Claude search, so visibility may drop
Claude-User (Anthropic) One user's request Yes Claude cannot open the page for a user's question
PerplexityBot Search, not training Yes Site is no longer surfaced in Perplexity search results
Perplexity-User One user's request Generally ignores A rule usually has no effect
Googlebot Search and the AI features built into it Yes Googlebot no longer reads the site; Search and its AI features lose the content
Google-Extended (token) Gemini training and grounding Yes Content is not used for those; Search inclusion is unchanged
Applebot Apple search; its data may also feed Apple AI Yes Apple search stops crawling the site
Applebot-Extended (token) Apple model training Yes Training opt-out; pages stay in Apple search
Bingbot Bing search; crawled content also grounds Copilot answers Yes Bing stops crawling the site; no AI preference overrides the block
CCBot (Common Crawl) Open web dataset Yes New crawls stop; the dataset stays open to anyone
Meta-WebIndexer Meta AI search Yes Site is not cited or linked in Meta AI answers
Meta-ExternalAgent Training and direct indexing Yes Content is neither used for training nor indexed directly

Google-Extended, Googlebot and AI Overviews

Search itself includes AI Overviews and AI Mode. A page qualifies as a supporting link when Search has indexed it and may show a snippet for it, and nothing more is required. Crawl rules for Googlebot are therefore the control, and they cover the AI features along with classic results. Google-Extended governs a separate set: training of future Gemini models, plus answers in the Gemini apps and Vertex AI that are grounded in crawled pages. Disallowing it leaves Search inclusion and ranking alone. What Search displays from a page, AI features included, is limited with page-level rules: noindex, max-snippet, nosnippet and data-nosnippet.

Apple and Bing: one crawler serves search and AI

Apple's pair has one trap. When robots.txt names Googlebot but not Applebot, Applebot follows the Googlebot rules, so a block written for Google also applies to Apple search. Bing has no AI-only bot. From 1 February 2027 Microsoft honours separate training and grounding preferences: training can go in robots.txt, grounding is set page by page, and neither changes eligibility for Bing results.

How robots.txt picks the rule for a bot

A crawler picks the one group that carries its own name (letter case does not matter) and obeys that group alone. Only a bot with no group of its own falls through to the wildcard group. A wildcard rule that closes the site therefore closes it to every search bot without a group of its own, and a short group written for one bot replaces the wildcard rules for that bot instead of adding to them.

A robots.txt rule asks; it neither enforces nor removes. Google can still list a disallowed URL that other sites link to, shown without its content, and noindex is the control for that. Enforcement lives at the server or CDN, as rate limits and IP rules. A CDN setting can also block a crawler that robots.txt allows. Since 15 September 2026, Cloudflare's Block action for the Training category also covers Googlebot, Bingbot and Applebot, so choosing it to stop AI training also hides the site from search. Its Disallow AI Training setting publishes the opt-out and leaves those three crawlers in.

Opt out of training and stay in AI search

  1. Add a whole-site Disallow rule under each training token: GPTBot, ClaudeBot, Meta-ExternalAgent, CCBot, Google-Extended and Applebot-Extended.
  2. Leave the search bots unblocked: OAI-SearchBot, Claude-SearchBot, PerplexityBot, Meta-WebIndexer, Googlebot, Bingbot and Applebot. If a wildcard group closes the site, give each of them an allow group of its own.
  3. Treat user-triggered fetchers separately. Blocking Claude-User stops Claude from opening the page when asked, while ChatGPT-User and Perplexity-User may ignore the rule, so a rate limit does that job.
  4. Allow a day. Crawlers cache robots.txt, and OpenAI, Perplexity and Meta each document a delay of up to 24 hours.

A shared opt-out for step 1 is on its way. One robots.txt group, whose token starts with two underscores and ends in ai-training, says no AI training to every operator that reads it. Anthropic began recognising it on 30 October 2026, Google plans to read it in 2027, Microsoft starts on 1 February 2027 and OpenAI says it will follow in the coming months. It is an individual Internet-Draft, not a standard. It covers training only, a wildcard group never matches it, and a rule that names ClaudeBot still wins over it for Anthropic.

How to check the result without guessing

  1. Open robots.txt and confirm it answers with a normal 200. A 4xx answer is read as no restrictions, and a server error can halt crawling.
  2. For each bot in the table, find the group it would use, its own or else the wildcard group, and read only that group.
  3. Check what the bots receive. A CDN challenge page or a login makes an allow rule worthless, and a page that builds its text with JavaScript reaches some crawlers as an empty shell (CCBot does not execute scripts). The longer guide to the other reasons an AI assistant cannot read a page covers those causes.
  4. Run the Agent Readiness Checker. It reads robots.txt for each AI crawler and the home page without JavaScript, groups the bots as AI search bots, training bots, user requests and search engines, and returns two scores plus an ordered list of fixes. Points are lost when robots.txt shuts out a search engine or an AI search bot, and blocking training crawlers costs nothing there.
  5. After a day, search the access log for the names you disallowed. Fresh requests for blocked paths point to a wrong group, a cached robots.txt or a bot that ignores the rule, and because a name alone can be forged, match the address before deciding which.

Top comments (0)