Short answer: a robots.txt file lets you treat AI crawlers differently by purpose. Several companies run separate bots for model training, for building a search index, and for fetching a page when a user asks. The most common setup is to allow the search bots and decide separately about the training bots. There is no single correct choice; it depends on what you want from AI products.
Last updated: 28 November 2026. Bot names and behaviour come from each company’s own documentation, linked at the end. These documents change, so re-check before you rely on them.
Which AI crawlers exist, and what do they do?
| Bot (user agent) | Company | Purpose according to the company | If you disallow it |
|---|---|---|---|
| OAI-SearchBot | OpenAI | Surfaces sites in ChatGPT’s search features | Your site will not appear in ChatGPT search answers, though it may still show as a navigational link. OpenAI says changes can take about 24 hours. |
| GPTBot | OpenAI | Crawls content that may be used to train OpenAI’s foundation models | Signals that your content should not be used for training |
| ChatGPT-User | OpenAI | User-initiated actions, such as visiting a page when someone asks a question | OpenAI says robots.txt rules may not apply to these requests, and this bot does not decide Search inclusion |
| ClaudeBot | Anthropic | Collects public web content that could contribute to training | Signals that your future content should be excluded from training |
| Claude-SearchBot | Anthropic | Improves the relevance of search results | Stops indexing for search; may reduce visibility in those results |
| Claude-User | Anthropic | Visits sites when a user’s question needs it | Stops retrieval for user queries; may reduce visibility in user-directed search |
| PerplexityBot | Perplexity | Surfaces and links sites in Perplexity search; not used for foundation model training | You can manage its access in robots.txt |
| Perplexity-User | Perplexity | Fetches a page when a user asks; not used for training | Perplexity says it generally ignores robots.txt because a user triggers it |
| Google-Extended | Controls use of your content to train and ground certain Gemini products | Per Google it is not a ranking signal and does not affect inclusion in Search |
Two things people often mix up. First, Google-Extended does not control AI Overviews or AI Mode. Those are part of Search, and Google points to snippet controls (nosnippet, max-snippet) and a Search generative AI setting in Search Console for them. Second, blocking Googlebot removes you from Google Search entirely, so never use it as an “AI block”.
A sample robots.txt: visible in AI search, not offered for training
This example allows the search-focused bots and disallows the training-focused ones. Treat it as a starting point, not a recommendation for every site.
User-agent: OAI-SearchBot Allow: / User-agent: Claude-SearchBot Allow: / User-agent: PerplexityBot Allow: / User-agent: GPTBot Disallow: / User-agent: ClaudeBot Disallow: / User-agent: Google-Extended Disallow: /
If you are happy for everything to be used, you do not need any rules: a bot that is not mentioned is allowed by default. Explicit Allow lines only document your intent. You can build either version in a minute with our free robots.txt AI crawler generator.
How to choose
| If you are… | Consider |
|---|---|
| A local business that wants enquiries | Allowing search bots, since being findable is the goal. Training bots are optional. |
| A publisher whose content is the product | Blocking training bots, and reading each company’s terms for search and user fetchers. |
| Unsure | Starting with the sample above and reviewing it every few months. |
Before you edit robots.txt on WordPress
- Open
yourdomain.com/robots.txtand note what is already there. WordPress can generate a virtual file, and SEO plugins such as Yoast include a file editor. - Keep your existing rules and add the new ones. Do not replace the file blindly.
- Check any CDN or security plugin as well. Some have separate settings that block bots regardless of robots.txt, so a bot you allowed may still be turned away.
- Re-open the file after saving and confirm it loads.
What robots.txt cannot do
- It is a request, not a lock. Well-behaved crawlers follow it, and it does not secure private content.
- It does not remove content a crawler has already collected.
- User-initiated fetchers (ChatGPT-User, Perplexity-User) may not follow it, as their own documentation says.
- Anthropic advises against blocking by IP address, because that can stop its bots reading robots.txt in the first place. It supports the non-standard Crawl-delay line if you only want to slow ClaudeBot down.
Frequently asked questions
Will blocking GPTBot remove my site from ChatGPT?
According to OpenAI, GPTBot relates to training. Appearing in ChatGPT’s search features is controlled by OAI-SearchBot.
Does blocking Google-Extended hurt my Google rankings?
Google says its status is not a ranking signal and does not affect inclusion in Search.
Do I need an llms.txt file as well?
Google says Google Search does not use such files. We cover what is and is not known in a separate article on llms.txt.
Where does this fit with AEO and GEO?
Allowing the right crawlers is a precondition for being cited, not a ranking trick. Our explainer Is AEO/GEO different from SEO? sets out what Google does and does not say.