robots.txt for AI crawlers: block training, allow search
What GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot and Google-Extended do, which ones robots.txt controls, example rules and how to test them.
Neste texto
Table checked on 22 October 2026. Method and authorship: Camillo Dantas. Portuguese version: robots.txt para robôs de IA.
Which AI crawlers exist and what does each one do?
The names below are the tokens you write on the User-agent line. The function column repeats what the company says on its own documentation page, opened on the date above. Pages that carry no date say so.
| Company | Token | Function stated by the company | Does robots.txt apply? | Page date |
|---|---|---|---|---|
| OpenAI | GPTBot | Collects content that may be used to train generative AI foundation models | Yes. Disallowing it signals that content should not be used for training | none shown |
| OpenAI | OAI-SearchBot | Surfaces websites in ChatGPT search features | Yes. Sites that opt out are not shown in ChatGPT search answers, though they can still appear as navigational links | none shown |
| OpenAI | ChatGPT-User | Actions started by a user in ChatGPT and custom GPTs, not automatic crawling | Possibly not, because the user starts the request | none shown |
| Anthropic | ClaudeBot | Collects web content that could contribute to model training | Yes | 2026-04-07 |
| Anthropic | Claude-User | Fetches pages when a Claude user asks a question that needs them | Yes, per Anthropic | 2026-04-07 |
| Anthropic | Claude-SearchBot | Improves the quality of search results | Yes, per Anthropic | 2026-04-07 |
| Perplexity | PerplexityBot | Surfaces and links sites in Perplexity search results; not used for foundation model training | Yes. Perplexity recommends allowing it to appear in results | none shown |
| Perplexity | Perplexity-User | Visits a page to answer a user's question | Generally ignores robots.txt, because a user asked for the fetch | none shown |
| Google-Extended | A robots.txt token that controls use of crawled content for training future Gemini models and for grounding in Gemini Apps and Vertex AI | Yes. It is a token, not a separate user agent | 2026-10-15 |
Two points are easy to miss. First, Google says Google-Extended does not affect a site's inclusion in Google Search and is not a ranking signal. Blocking it does not remove you from AI Overviews or AI Mode, which run on Search itself. Second, a blocked training crawler tells you nothing about whether a search product will show your page. Training and search are separate permissions.
How do I block training but keep AI search visibility?
Write one group per crawler. A minimal example, built from the tokens above:
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
This is an illustration, not a recommendation for every site. Whether to allow training is a business decision about your content, your licensing and your goals. Many publishers block training and allow search. Others allow both. The method on this site, described in The LLM Seeding method, assumes that visibility in AI search is something you choose deliberately, crawler by crawler.
Anthropic adds a detail: ClaudeBot supports the non-standard Crawl-delay directive, and the rule must be repeated for each subdomain. OpenAI states that for search it can take about 24 hours from a robots.txt update for its systems to adjust. Plan for that delay when you test.
What about GPTBot specifically?
GPTBot is the training crawler from OpenAI. To block it from the whole site, use the first group in the example. To block only a folder, replace / with the path, for example Disallow: /members/. To let it read only part of the site, combine Disallow: / with specific Allow: lines. Whatever you choose, keep OAI-SearchBot in a separate group. Blocking GPTBot does not block OAI-SearchBot, and the reverse is also true.
ChatGPT-User needs a different mindset. OpenAI says it is not used for automatic crawling and that, because a person starts the action, robots.txt rules may not apply. The same logic appears in Perplexity's description of Perplexity-User. If you do not want user-initiated fetches on a private area, robots.txt is the wrong tool. Use authentication.
What does robots.txt not do?
It is a request to well-behaved crawlers, not access control. A file at the root of a domain cannot hide a page from a person or from a crawler that ignores it. It also does not remove an already indexed URL: for that you need noindex or password protection. Sensitive content belongs behind login, not behind a Disallow line.
It also does not guarantee how an AI system will behave when it cites you. Allowing OAI-SearchBot makes your pages eligible to appear in ChatGPT search. It does not promise that they will. For measurement, see the checklist, which includes a section on access and a section on tracking.
How do I test the rules?
- Open
https://yourdomain.com/robots.txtin a browser and confirm that it loads with a 200 status, in plain text, at the root of every subdomain you use. - Read the file from the top. A crawler follows the most specific group that matches its token, so a group for
GPTBotoverrides the*group for that crawler. - Check your server logs for the tokens above over a week. A crawler you blocked should stop requesting pages after its systems refresh the file, which OpenAI puts at about a day for search.
- Repeat after any change to the CDN, the firewall or the hosting. Security rules that block unknown user agents can stop a search crawler you meant to allow, and robots.txt will look correct while the server refuses the request.
- Write down the date of the review. Crawler names and behaviors change, so review the table at least once a quarter.
Common mistake: pasting a list of AI bots from a blog post. Lists age quickly, and a token that does not exist does nothing. Copy tokens from each vendor's documentation, listed below.
Where does llms.txt fit?
It does not replace robots.txt. They solve different problems: robots.txt says who may crawl, while llms.txt is a proposed file that points to your most useful pages. Google states that it does not use llms.txt for Search. See the llms.txt generator and validator for the format and for what is known about who reads it. For the Brazilian setup with examples, the hub offers a guide to robots and AI bots.
Frequently asked questions
How do I block GPTBot in robots.txt?
Add a group with User-agent: GPTBot and Disallow: / to the robots.txt file at the root of your domain. OpenAI says disallowing GPTBot signals that your content should not be used to train its generative AI foundation models. It does not affect OAI-SearchBot, which has its own group.
Does GPTBot respect robots.txt?
OpenAI documents that robots.txt controls GPTBot, OAI-SearchBot and, for search, the way pages appear in ChatGPT. ChatGPT-User is different: because a person triggers it, OpenAI says robots.txt rules may not apply. Server logs are the only way to confirm what a crawler does on your site.
Should I allow OAI-SearchBot?
Allow it if you want your pages to be eligible for ChatGPT search results. OpenAI says sites that opt out are not shown in ChatGPT search answers, though they can still appear as navigational links. Allowing it does not guarantee a mention, and the decision depends on your goals.
Does blocking Google-Extended remove my site from Google Search?
No. Google documents Google-Extended as a robots.txt token that controls training of future Gemini models and grounding in Gemini Apps and Vertex AI. The page states that it does not affect inclusion in Google Search and is not used as a ranking signal.
How long until a robots.txt change takes effect?
OpenAI says it can take about 24 hours after an update for its search systems to adjust. Other vendors do not publish a time on the pages opened for this article. Check your logs after a few days and keep the review date.
Sources and review
The table and the answers use only the vendor pages listed below. Where a page shows no date, the access date is given. Crawler documentation changes without notice. Review it quarterly and after any announcement from the vendor.
Sources
- Overview of OpenAI crawlers (OAI-SearchBot, GPTBot, ChatGPT-User), OpenAI (2026-10-22)
- Does Anthropic crawl data from the web, and how can site owners block the crawler?, Anthropic (2026-04-07)
- Perplexity crawlers (PerplexityBot and Perplexity-User), Perplexity (2026-10-22)
- Google's common crawlers (Google-Extended), Google Search Central (2026-10-15)
- Optimizing your website for generative AI features on Google Search, Google Search Central (2026-07-10)
Comece pelo checklist
Dezoito verificações em seis grupos para saber se o seu conteúdo pode ser compreendido, verificado e citado.