Block AI Crawlers With robots.txt and Keep AI Search Traffic
Block AI training crawlers such as GPTBot, ClaudeBot and Google-Extended in robots.txt, and keep OAI-SearchBot, Claude-SearchBot, PerplexityBot and Googlebot allowed so AI search can still cite you. Google AI Overviews use a separate Search Console setting, and a shared __usage_ai-training token now covers several providers.

To block AI crawlers with robots.txt without losing visibility, block the training bots and keep the search bots. As of December 2026, that means a Disallow for GPTBot, ClaudeBot and Google-Extended, while OAI-SearchBot, Claude-SearchBot, PerplexityBot and Googlebot stay allowed. Google's AI Overviews follow a separate switch in Search Console, not robots.txt.
This guide is research-based, built from each operator's crawler documentation, Google's Search Console help, an October 30, 2026 Search Central post and an IETF draft, all read in December 2026. We ran no log or traffic tests, so no visibility figures appear below.
Which AI crawlers can robots.txt control?
Most major ones, though each company now splits duties across several bots. Blocking one leaves the others untouched, so a lone "block AI" line rarely behaves as people expect.
Here is the current split:
| robots.txt token | Operator | What it does | Honours robots.txt? | Effect of a Disallow |
|---|---|---|---|---|
| GPTBot | OpenAI | Crawls content that may train its foundation models | Yes | Content should not be used for training |
| OAI-SearchBot | OpenAI | Surfaces sites in ChatGPT search answers | Yes | Site left out of ChatGPT search answers |
| ChatGPT-User | OpenAI | Fetches a page when a ChatGPT user asks | May not apply | Not reliable as an opt-out |
| ClaudeBot | Anthropic | Collects content that could train its models | Yes | Future pages excluded from training data |
| Claude-SearchBot | Anthropic | Indexes content for Claude's search results | Yes | May reduce visibility in Claude search |
| Claude-User | Anthropic | Fetches a page when a Claude user asks | Yes | Pages not retrieved for user queries |
| Google-Extended | Control token for Gemini training and non-Search grounding | Yes | No effect on Google Search ranking | |
| PerplexityBot | Perplexity | Surfaces and links sites in Perplexity results | Yes | Site dropped from Perplexity search |
| Perplexity-User | Perplexity | Fetches a page when a Perplexity user asks | Generally ignores it | Not reliable as an opt-out |
Two rows deserve a second look. OpenAI's crawler overview says robots.txt rules may not apply to ChatGPT-User because a person triggered the visit. Perplexity's crawler page is blunter: its user fetcher generally ignores robots.txt. Anthropic is the exception, listing Claude-User as a bot site owners can switch off.
Should you block AI crawlers or only training bots?
In most cases, block only the training bots, because the two kinds trade different things. Training bots take content into a model's weights, usually without a link back. Search bots fetch pages so an AI answer can cite and link them, which is where referral traffic comes from.
OpenAI calls its settings independent: allow OAI-SearchBot, disallow GPTBot. Anthropic's crawler help article warns that disabling Claude-SearchBot may reduce your site's visibility and accuracy in user search results. Perplexity says PerplexityBot is not used to crawl content for AI foundation models at all.
So the useful question for a studio or a small marketing team is rarely "block AI or not". It is closer to this:
- Do you want your writing used to train future models?
- Do you want AI search tools to quote and link your pages?
Most commercial sites want zero training but full citation, a mix that 2023-era tooling never offered.
Timing matters too. OpenAI says its search systems can take around 24 hours to adjust after a robots.txt change, and Perplexity gives the same 24-hour window. Plan edits a day ahead of anything time-sensitive.
How do you stop Gemini training but keep Google Search?
Use Google-Extended, and leave Googlebot alone. Google's Google-Extended overview, updated November 24, 2026, says the token controls whether crawled content trains future Gemini-class models and grounds answers in Google AI products outside Search. It also says Google-Extended does not affect inclusion in Google Search and is not a ranking signal.
Google runs no separate Google-Extended crawler; Googlebot simply records each page's status during normal visits. Blocking Googlebot by mistake therefore wipes you from Search entirely.
AI Overviews and AI Mode are a different matter. Google-Extended does not control them. Google points site owners to the Search generative AI control in Search Console, which it says rolled out to all websites worldwide as of August 31, 2026. The setting sits under Settings, then Search generative AI, and offers three choices: include, exclude, or inherit from a parent property.
Excluding is drastic: links and snippets vanish from AI Overviews, AI Mode and Discover's generative features, along with any clicks they brought. Google says the setting is not used as a ranking signal for the rest of Search, and that exclusion usually applies within 1-2 days, with some cached content taking longer. It also does not limit training; that is still Google-Extended's job.
What is the new __usage_ai-training token?
It is one shared line telling every participating AI company "no training" at once, addressed to a policy token rather than a named crawler:
User-Agent: __usage_ai-training
Disallow: /
The idea comes from an IETF Internet-Draft, draft-kelley-aipref-training-preference-signal, whose version 01 was published on November 16, 2026. Its datatracker page labels it an individual draft that is not endorsed by the IETF and has no formal standing yet; it expires on May 20, 2027 unless updated. A few rules from the draft matter in practice:
- The wildcard group (
User-Agent: *) must not be read as matching the token, so an existing catch-all rule does not count as a preference. Disallowexpresses a preference against training;Allowexpresses one in favour, and paths can differ, such as allowing a press kit folder.- The token is not a crawling instruction. Crawler groups keep doing their normal job.
- More specific rules should win over general ones.
Support is arriving in stages. Google's October 30, 2026 announcement says that when a site opts out with the token and does not name Google-Extended, Google will treat it as a Google-Extended disallow, with support aimed at 2027. Google's crawler docs narrow that to early 2027. Anthropic says it began recognising the signal on October 30, 2026 and is rolling it out across services over time. Its precedence rule is worth knowing: if your file names ClaudeBot, the ClaudeBot rule wins for that path.
OpenAI's crawler page, as read in December 2026, does not mention the token. Keep naming GPTBot explicitly until it does.
Worked example: a robots.txt for a studio blog
Picture a design studio with a blog, a client portal under /portal/ and a press kit under /press/. Goals: AI search cites the blog, nobody trains on the writing, and the press kit stays fully open so models describe your logo and boilerplate correctly. One file covers it:
# No training: shared token plus named crawlers
User-Agent: __usage_ai-training
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /
Allow: /press/
# AI search crawlers and everyone else, including Googlebot
User-agent: *
Disallow: /portal/
Sitemap: https://example.com/sitemap.xml
Why each part is there:
- The draft lets one group mix the policy token with ordinary crawler names, so a single block carries the training opt-out.
- GPTBot is listed because OpenAI has not documented the shared token. ClaudeBot and Google-Extended are listed so the rule holds wherever the token is not yet read.
- OAI-SearchBot, Claude-SearchBot and PerplexityBot are not named, so they fall into the wildcard group: free to crawl the blog, kept out of the portal.
- Under the draft, the wildcard group says nothing about training, and Googlebot and Bingbot keep working normally.
The portal should still sit behind a login. Robots.txt is a public file and a polite request, not access control.
What robots.txt cannot do for you
It does nothing for user-triggered fetchers that skip it, such as ChatGPT-User or Perplexity-User. Nor is it retroactive. Anthropic's wording is that restricting ClaudeBot signals your future materials should be excluded from training datasets. Content collected before the change is a separate question that robots.txt does not answer.
It does not cover copies elsewhere. Google notes that Google-Extended does not stop the same or similar content on other sites from being used, and that models may still mention or link your domain if other pages discuss it.
IP blocking can backfire. Anthropic warns that blocking its IP ranges may stop its bots from reading your robots.txt at all, so your opt-out may not register. Use robots.txt as the primary signal, and allowlist published IP ranges in your firewall if it challenges bots by default.
Checklist before you change robots.txt
- Decide separately on training and on AI search visibility, and write both decisions down.
- List every subdomain; Anthropic says each one needs its own opt-out.
- Choose an AI Overviews setting in Search Console on purpose, rather than by accident.
- Check your CDN or firewall is not challenging the search bots you meant to allow.
- Test the live file at yourdomain.com/robots.txt, then wait 24 hours before judging results.
- Put a reminder in your calendar to re-read each operator's crawler page every quarter.
If you are also deciding how AI tools should read your site, our guide to llms.txt covers a separate, optional file, and what GEO is explains how AI answers choose sources to cite.
What this guide does not cover
We worked from published documentation, which changes often; Anthropic's own page says the way it reads these settings may change as standards develop. We have not covered every crawler on the web, such as Common Crawl's CCBot, Apple's Applebot-Extended or ByteDance's bots, because we did not verify their current documentation for this piece. Nothing here is legal advice on copyright or text-and-data-mining rules, which vary by country. We also have no data on how much referral traffic AI search sends to sites like yours, so treat the trade-off as a judgment call rather than a calculation.
Our recommendation for most sites
For most studios, freelancers and small marketing teams: block training, keep search. Copy the worked example above, swap in your own folders, and leave the Search Console AI control on its default unless you are prepared to lose AI Overviews traffic. Then revisit the file in early 2027, when Google's support for the shared token is due, and simplify if the named groups are no longer needed. If you want those quarterly checks to run on a schedule, our n8n vs Zapier vs Make comparison is a good starting point.
How this was made: researched and written with AI assistance, fact-checked against the linked OpenAI, Anthropic, Google, Perplexity and IETF pages, and edited by Mohammad Sayyaf, December 2026.
Frequently asked questions
Does blocking GPTBot remove my site from ChatGPT search?
No. OpenAI documents GPTBot and OAI-SearchBot as independent settings. GPTBot covers content that may be used to train its foundation models, while OAI-SearchBot decides whether your pages can appear in ChatGPT search answers. You can disallow GPTBot and still allow OAI-SearchBot. OpenAI says search changes can take about 24 hours to apply after you edit robots.txt.
Will blocking Google-Extended hurt my Google rankings?
Google says it will not. Its Google-Extended documentation, updated November 24, 2026, states that the token does not affect a site's inclusion in Google Search and is not used as a ranking signal. It controls Gemini model training and grounding in Google AI products outside Search. Blocking Googlebot instead would remove your pages from Search, so check the user agent name carefully.
How do I stop my site appearing in Google AI Overviews?
Use the Search generative AI control in Search Console, under Settings. Google rolled it out to all websites on August 31, 2026. Choosing exclude removes your links and content from AI Overviews, AI Mode and generative features in Discover, usually within one to two days. You also lose any impressions and traffic from those features. Robots.txt and Google-Extended do not control this.
What does User-Agent: __usage_ai-training do?
It expresses a training preference to every AI provider that reads the shared token, so one Disallow can opt your paths out of AI training. It comes from an individual IETF draft, version 01, published November 16, 2026. Anthropic began recognising it on October 30, 2026, and Google plans to treat it like a Google-Extended disallow from early 2027. A wildcard group does not count.
Is robots.txt enough to stop AI companies using my content?
Not entirely. Robots.txt is a request that well-behaved crawlers honour, and user-triggered fetchers such as ChatGPT-User and Perplexity-User may ignore it. Blocking ClaudeBot only covers your future pages, not content collected earlier. Copies of your work on other sites are also outside your file's reach. For private material, put it behind a login rather than relying on robots.txt.
Sources
- OpenAI Developers: Overview of OpenAI crawlers
- Claude Help Center: Does Anthropic crawl data from the web, and how can site owners block the crawler?
- Google for Developers: Overview of the Google-Extended token
- Search Console Help: Search generative AI control
- Google Search Central Blog: Supporting a shared AI training control for websites
- IETF Datatracker: Machine-Readable Training Preference Signal draft
- Perplexity Docs: Perplexity crawlers