In 2026 the robots.txt question changed. It used to be one decision — let Google in, keep the admin pages out — and the file barely changed for years. Then AI crawlers arrived in three different jobs at once: training crawlers that collect pages to train models on, AI search crawlers that fetch pages to cite in answers, and assistant fetchers that grab one page when a user asks about it. Blocking 'AI' as one thing gets the decision wrong in both directions: block too little and your content trains models you never agreed to feed; block too much and your pages vanish from the AI answers your readers actually use.
This guide explains the three groups, what each crawler token actually does, what robots.txt can and cannot do about any of them, and the file that draws the line most sites want in 2026.
The three groups of AI crawlers
The first group is training crawlers. GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), Google-Extended, Applebot-Extended, Meta-ExternalAgent, Bytespider and cohere-ai collect pages to train models on. Their job is bulk collection, and the cost of blocking them is narrow: your pages stop feeding future training runs. Nothing about search changes — Google-Extended is not Googlebot, and blocking it does not touch Google Search.
The second group is AI search crawlers. OAI-SearchBot fetches pages so ChatGPT search can cite them. Blocking it removes your pages from AI answers, which is a real traffic cost — the same cost as blocking a search engine, just a newer one.
The third group is assistant fetchers. ChatGPT-User and Claude-Web fetch a single page when a user asks an assistant about it — 'summarise this article', 'what does this page say'. Blocking them does not affect search or training at all; it breaks the fetch for your URLs specifically, so the assistant tells the user it cannot read the page.
Two tokens sit across the groups and cause most of the confusion. PerplexityBot is listed as a training crawler, but it also powers Perplexity search — blocking it can remove your pages from Perplexity answers, so think twice before treating it like a pure training bot. And facebookexternalhit, Twitterbot and LinkedInBot are fetchers too, just older ones: block them and link previews stop rendering on those platforms.
| Group | Tokens | Block it and… |
|---|---|---|
| Training | GPTBot, ClaudeBot, CCBot, Google-Extended | Pages stop feeding future model training |
| AI search | OAI-SearchBot | Pages stop appearing in AI answers |
| Assistant fetchers | ChatGPT-User, Claude-Web, Perplexity-User | Assistants cannot fetch your pages on request |
| Search engines | Googlebot, Bingbot | Pages leave search entirely |
The file most sites want in 2026
For most live sites the answer is the middle preset: block AI training, allow AI search. The file is one User-agent group per training crawler with Disallow: /, and no rule at all for the search engines or the AI search crawlers. It keeps the site in Google, in Bing, and in AI answers, while drawing a line at training use.
The Robots.txt Generator writes exactly that file: pick the 'Block AI training, allow AI search' preset, add your Disallow paths and your Sitemap: line, and download it. The staging preset — Disallow: / for every crawler — is the other file every site needs, and the one that must be removed at launch: a staging block left on a live site makes the whole site vanish from search.
One warning belongs here, because it is the most common way this file goes wrong: a Disallow: / under User-agent: * blocks everything, including Googlebot. It is the right file for staging and the wrong file for production, and the only difference between the two is which server it is uploaded to.
What robots.txt cannot do
The file is public and voluntary, and those two words carry most of the misunderstandings. Public means anyone can read it — including the paths you list as disallowed. A secret directory named in robots.txt is announced, not hidden; private pages need a login. Voluntary means well-behaved crawlers obey it and bad actors ignore it; it is a request, not a lock.
The second limit is the one people feel most: blocking training does not untrain a model. A crawler that already took your content keeps it in the training data; the file only governs future fetches. If content must never have been used, that is a licensing and legal question, not a robots.txt one.
The third limit is Disallow versus noindex. Disallow tells a crawler not to fetch the page; it does not tell a search engine to forget the URL. If other pages link to a disallowed page, Google may still list the URL with no description. Removing a page from results needs the opposite order: allow the fetch, add a meta robots noindex tag to the page — the Meta Tag Generator writes that tag — and let Google recrawl it. And noindex written inside robots.txt does nothing at all: Google stopped supporting it in September 2019.
The fourth limit is crawl-delay. It is not in RFC 9309, Google ignores it entirely, and Googlebot's crawl rate is set in Search Console instead. A crawl-delay line only affects crawlers that honour it, such as Bing — which is why the generator emits it only when explicitly asked, with a comment in the file saying Google ignores it.
Cloudflare changed the default in September 2026
One more fact shapes the 2026 decision: since 15 September 2026, Cloudflare blocks AI training and agent bots by default on new domains whose pages show ads. That means many sites already have a training block at the network edge without ever writing a robots.txt line — and the file and the edge setting can disagree. If your site sits behind Cloudflare, check what the edge is already doing before writing rules that duplicate it or, worse, contradict it. The file is still worth having: it is the portable, host-independent statement of the policy, and it travels with the site if the CDN changes.
Testing the file before you ship it
A robots.txt file is a small program, and its rule is easy to get wrong by hand: the longest matching pattern wins, and Allow beats Disallow at equal length. A Disallow: /admin/ plus an Allow: /admin/public does what you expect — the longer Allow wins for the public path — but only if the paths are spelled exactly right, and a typo in either line silently flips the result.
Test it before uploading: paste the file into the tester on the Robots.txt Generator, pick the crawler, and check the URLs that matter — /admin/public should stay allowed while /admin/ is closed, and a training crawler should be blocked while Googlebot is allowed. The tester names the exact rule that decided each URL, so a wrong result tells you which line to fix. After uploading, check the live file in Google Search Console's robots.txt report — the browser cannot fetch another site's robots.txt, so the tester only ever tests pasted text, and the live check belongs in Search Console.
Try it yourself
Frequently asked questions
Should I block AI crawlers from my site?
Block the training crawlers, keep AI search: that is the preset most live sites want in 2026. Blocking GPTBot, ClaudeBot and CCBot stops future training use and costs nothing in search. Blocking AI search crawlers like OAI-SearchBot removes your pages from AI answers, and blocking Googlebot removes them from Google entirely — both are real costs, so block by group, not by the word 'AI'.
Does blocking GPTBot remove my content from ChatGPT?
No — not from training, and not from search either. GPTBot is the training crawler; blocking it only governs future training fetches, and content already taken stays in the training data. ChatGPT search uses OAI-SearchBot, and fetching a page on a user's request uses ChatGPT-User — different tokens, different jobs, and blocking one does not block the others.
Why is my page still in Google after I disallowed it?
Because Disallow is not noindex. Disallow tells Googlebot not to fetch the page; it does not tell Google to forget the URL, and if other pages link to it, Google may list the URL with no description. To remove it, allow the fetch, add a meta robots noindex tag to the page itself, and let Google recrawl it.
What is the difference between the robots tag and the robots.txt file?
The tag lives on one page and tells search engines what to do with that page — noindex, nofollow. The file lives at the site root and tells whole crawlers which paths they may fetch. The tag de-indexes a page; the file cannot. The Meta Tag Generator writes the tag, the Robots.txt Generator writes the file, and most sites need both.
Do I need a robots.txt at all?
No — without one, everything is allowed. It earns its keep when you have paths that should not be crawled (admin, cart, search results, staging), when you want to declare the sitemap in one place, or when you want to draw the training-vs-search line for AI crawlers. A small site with nothing to hide works fine without one.
How do I test a robots.txt file?
Paste it into the tester on the Robots.txt Generator, pick the crawler, and check each URL: the tester reports Allowed or Disallowed with the exact rule that decided it, using RFC 9309 longest-match rules. The tester only tests pasted text — browsers block cross-origin reads of other sites' robots.txt — so check the live file in Google Search Console's robots.txt report after uploading.