If you run a website, AI companies are probably reading it. Some of them use what they collect to train models. Others use it to answer questions in ChatGPT, Claude or Perplexity and link back to you. Those are two very different deals, and robots.txt lets you accept one while refusing the other.
This guide shows you how to block AI training with robots.txt in 2026, crawler by crawler, using each company’s own documentation. You’ll get copy-paste rules, the trade-off for search traffic, and the one thing robots.txt can’t do for you.
Training bots vs AI search bots: the split that matters
Most big AI companies now run more than one crawler. Roughly, they fall into three groups:
- Training crawlers collect pages that may end up in the data used to train future models. Blocking these is the “don’t train on my site” switch.
- Search crawlers index pages so an AI search feature can quote and link them. Blocking these removes you from those answers.
- User-triggered fetchers visit a page because a person asked a chatbot about it. Several companies say robots.txt may not apply to these at all.
If all you want is to stop AI training, block the first group and leave the second alone. Block everything and you also give up citations, which for some sites are becoming a real source of clicks.

The AI crawler user agents, company by company
OpenAI: GPTBot, OAI-SearchBot, ChatGPT-User
OpenAI’s crawler documentation is the clearest example of the split. GPTBot collects content that may be used to train its foundation models. Disallowing it, in OpenAI’s words, “indicates a site’s content should not be used in training generative AI foundation models.”
OAI-SearchBot is for ChatGPT search. Block it and your pages won’t show in ChatGPT search answers, though they can still appear as plain navigational links. OpenAI says the two settings are independent, and that search changes take about 24 hours after you update robots.txt. One detail to know: if you allow both bots, OpenAI may use a single crawl for both purposes.
ChatGPT-User handles visits a person triggers inside ChatGPT. OpenAI says robots.txt rules “may not apply” to it. There’s also OAI-AdsBot, which only visits pages submitted as ads, and OpenAI says its data isn’t used for training.
Google: Google-Extended
Google doesn’t run a separate AI crawler. Googlebot does the fetching, and Google-Extended is a robots.txt token that controls what Google may do with the result. According to Google’s crawler docs, it decides whether your content can be used to train future Gemini models and for grounding in Gemini Apps and the Vertex AI API for Gemini.
The same page says Google-Extended “does not impact a site’s inclusion in Google Search nor is it used as a ranking signal.” That’s the reassuring part. The less reassuring part: Google’s page doesn’t list AI Overviews or AI Mode as things Google-Extended controls. Those features live inside Search, and blocking Googlebot to avoid them would mean leaving Google Search entirely.
Anthropic: ClaudeBot, Claude-SearchBot, Claude-User
Anthropic’s help page lists three bots. ClaudeBot collects training data; blocking it tells Anthropic to keep your future pages out of training sets. Claude-SearchBot indexes for search quality. Claude-User fetches pages when a Claude user asks something that needs them.
Anthropic supports the non-standard Crawl-delay rule, and it asks you to put rules on every subdomain you want to opt out. It also advises against blocking its IP addresses, because then its bots can’t read your robots.txt and the opt-out may not stick.
Common Crawl: CCBot
Common Crawl is a nonprofit that publishes a huge open web archive, and that archive has been used to train many language models. Its FAQ says the crawler identifies as CCBot, obeys robots.txt and honours Crawl-delay. If you only block one bot that isn’t tied to a big AI company, make it this one.
Apple, Meta and Perplexity
Apple works like Google. Applebot crawls for Siri, Spotlight and Safari search, and Applebot-Extended is a control token, not a crawler. Disallow it and your pages are kept out of training for Apple’s foundation models, but they can still appear in Apple’s search results, and Apple says the rule isn’t considered in ranking.
Meta uses meta-externalagent for training foundation AI models and meta-webindexer to cite and link pages in Meta AI answers. Its user-request fetcher and its link-preview bot may skip robots.txt in some cases.
Perplexity says PerplexityBot is for search results and “is not used to crawl content for AI foundation models.” So blocking it doesn’t stop any training. It only removes you from Perplexity’s answers.
Robots.txt to block AI training but keep AI search
This is the setup we’d suggest for most blogs and small business sites. It blocks the documented training crawlers and tokens and leaves search bots alone. Add it to the robots.txt file at the root of your domain, next to whatever rules you already have.
# Block AI training crawlers and tokens
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: meta-externalagent
Disallow: /
# Search and AI search crawlers stay allowed
User-agent: *
Allow: /
Sitemap: https://example.com/sitemap.xml
Swap in your own sitemap URL. If your file already has a User-agent: * group with Disallow lines for admin or cart pages, keep that group as it is and just add the AI blocks above it. Each crawler follows the group that names it most specifically, so the named groups win for those bots.

Block AI crawlers completely (training and search)
Some publishers want nothing to do with AI products at all. If that’s you, add the search bots too:
# Also block AI search indexing
User-agent: OAI-SearchBot
Disallow: /
User-agent: Claude-SearchBot
Disallow: /
User-agent: PerplexityBot
Disallow: /
User-agent: meta-webindexer
Disallow: /
# User-triggered fetchers (may ignore robots.txt)
User-agent: ChatGPT-User
Disallow: /
User-agent: Claude-User
Disallow: /
User-agent: Perplexity-User
Disallow: /
Be honest with yourself about the cost. Your pages stop showing up as sources in ChatGPT search, Claude and Perplexity. For a news site with paying subscribers that might be the right call. For a new blog trying to get found, it’s a lot to give up.
And if you only want to slow bots down rather than shut them out, CCBot and Anthropic’s bots read Crawl-delay:
User-agent: CCBot
Crawl-delay: 2
User-agent: ClaudeBot
Crawl-delay: 1
The catch: robots.txt only works going forward. It’s a request that well-behaved crawlers honour, not a lock, and none of the pages we checked promise to delete what was collected before you added the rule. Anthropic describes ClaudeBot blocking as excluding your “future” material. If a page was crawled in 2024, a rule you add today doesn’t pull it out of a model that already shipped.
The new shared AI-training token (coming, not here yet)
Listing a dozen bots by name is tedious, and new ones keep appearing. A shared signal is on the way. On 30 October 2026, Google’s Search Central blog announced it aims to support a common AI-training control “along with other AI providers in 2027”, based on work in the IETF’s AIPREF working group.
The proposal is an individual Internet-Draft dated 30 October 2026. It isn’t an approved standard; the datatracker marks it as not endorsed by the IETF. It doesn’t add new directives. You write a normal robots.txt group for a reserved name. Here’s the example from the draft:
User-Agent: __usage_ai-training
Disallow: /
Allow: /press-kit/
That reads as “no AI training on this site, except the press kit.” Google’s crawler page says it intends to support this in early 2027. Its blog post adds that if you use the shared token without naming Google-Extended, Google plans to treat it as a Google-Extended disallow. Anthropic’s help page says it began recognising the signal from 30 October 2026, rolling out gradually, and that a rule naming ClaudeBot directly still takes priority.
Our advice: add the shared group now if you like, since it costs nothing, but keep the named rules too. Today only some companies have said they read it.
How to check your rules work
- Open
https://yourdomain.com/robots.txtin a browser and confirm the new lines are there. Caching plugins sometimes serve an old copy. - On WordPress, check whether an SEO plugin generates robots.txt for you. If it does, edit the rules there instead of uploading a file.
- Use the robots.txt report in Google Search Console to make sure Google can still fetch the file without errors.
- Give it a day. OpenAI, Perplexity and Meta all mention changes taking up to about 24 hours.
- Check your server logs later for the user agent names above. Anthropic publishes its IP ranges so you can tell real ClaudeBot traffic from fakes.
If you hit errors after editing the file, the same step-by-step approach in our guide on fixing bugs with AI works for config problems too: paste the exact file and the exact error, and ask what’s wrong.
Our verdict: what most sites should do
Block the training crawlers, keep the search ones. That one change says “no” to model training at the companies that document their bots, while your pages can still be cited and linked in ChatGPT search, Claude and Perplexity. Going further only makes sense if your business depends on people never reading your content anywhere but your own site.
Running a blog that you hope to monetize? Our post on whether an AI-written blog can get AdSense approval covers the other side of the AI-and-publishing question.
Next: curious which models were built on all this web data? See every Claude model explained.
FAQ
Does blocking GPTBot remove my site from ChatGPT?
No. GPTBot is for training. ChatGPT search uses OAI-SearchBot, which is a separate setting. You can block one and allow the other.
Will blocking Google-Extended hurt my Google rankings?
Google says it doesn’t affect inclusion in Google Search and isn’t a ranking signal.
Can robots.txt remove content AI has already trained on?
No. The rules apply to future crawling. None of the vendor pages we read say they’ll remove data collected before you opted out.
Do all AI crawlers obey robots.txt?
The documented ones say they do, except for user-triggered fetchers, which several companies say may not follow it. Bots that don’t identify themselves won’t be stopped by robots.txt at all; that needs server-side blocking.