robots.txt for AI crawlers: GPTBot, ClaudeBot, PerplexityBot
How should robots.txt handle AI crawlers like GPTBot, ClaudeBot and PerplexityBot? Decide for each crawler whether you want it to read your site, then write a User-agent group with Allow or Disallow rules for it. Allowing the crawlers behind AI search features gives your pages a chance to be cited, and blocking training-focused crawlers is a separate choice you can make independently.
This guide lists the main AI user agents, what each is documented to do, and sample rules. User agent names and behaviour change, so confirm each against the company’s own documentation before you deploy.
The main AI crawlers and what they are for
The table is a summary of what the companies document. Verify against their pages.
| Company | User agent | Documented purpose |
|---|---|---|
| OpenAI | GPTBot |
Collects content that may be used to train models |
| OpenAI | OAI-SearchBot |
Search features in ChatGPT |
| OpenAI | ChatGPT-User |
Fetches pages when a user asks ChatGPT to |
| Anthropic | ClaudeBot |
Collects content that may be used to train models |
| Anthropic | Claude-SearchBot |
Improves search result quality for Claude |
| Anthropic | Claude-User |
Fetches pages when a user asks Claude to |
| Perplexity | PerplexityBot |
Indexes pages for Perplexity search results |
| Perplexity | Perplexity-User |
Fetches pages when a user asks a question |
Google-Extended |
Control for some generative AI uses of your content | |
| Apple | Applebot-Extended |
Control for use of content in Apple’s AI models |
| Common Crawl | CCBot |
Builds a public web archive used by many projects |
Two points worth noting. First, Google-Extended is a control token, not a separate crawler, and it is not how AI Overviews in Search are controlled. Those follow the normal Googlebot and Search rules. Second, user-triggered agents such as ChatGPT-User act on a person’s request, and companies describe their handling of robots.txt for these agents differently, so read their notes.
Sample: allow the AI crawlers you want
If your goal is to be found and cited, allow the search-oriented agents. This sample allows everything, which is also what you get with no rules at all, but stating it makes your intent explicit.
# Allow AI search and assistant crawlers
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: Claude-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Perplexity-User
Allow: /
# Everyone else
User-agent: *
Allow: /
Disallow: /login
Disallow: /admin/
Sitemap: https://example.com/sitemap-index.xml
Sample: allow search, opt out of training
Many publishers want to be cited but not used for model training. You can express that by blocking the training-focused agents and leaving the others open.
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
This is a policy choice with trade-offs. Blocking training crawlers may reduce how well a model knows your brand in answers that do not use live search. Decide with your legal and marketing teams.
Sample: keep private areas out
User-agent: *
Disallow: /account/
Disallow: /checkout/
Disallow: /internal/
Remember that robots.txt is a request, not access control. Well-behaved crawlers follow it. Anything sensitive must be protected by authentication, not by a rule.
Common mistakes
- Blocking everything by accident. A leftover
Disallow: /from a staging site is the classic one. Check the live file. - A blanket bot block in your CDN or firewall. Security tools sometimes challenge AI crawlers even when
robots.txtallows them. Check your logs. See why server logs matter for AI search. - Rules for the wrong name. User agent names are matched by token. Check spelling and current names.
- Forgetting the sitemap line. Point crawlers to your sitemap.
- Assuming robots.txt removes content already collected. It controls future crawling, not past use.
Verify it works
- Open
https://yourdomain.com/robots.txtand read it as the crawler would. - Use the page fix checker or a technical SEO audit to confirm pages are reachable and not blocked.
- Look at your server logs for these user agents and check they receive 200 responses.
Roll changes out safely
Treat robots.txt like code. Edit it in version control, review changes, and test on a staging copy first. After you deploy, request the live file in a browser, check the status is 200 and confirm the rules are the ones you intended. Then watch your server logs for a week. If an agent you allowed does not appear, or one you blocked keeps requesting pages, investigate before assuming the rules failed: caches, CDN rules and the crawler’s own schedule all play a part.
Keep a short note in the file’s comments explaining why each rule exists, so the next person does not remove an important line by mistake.
FAQ
Does blocking GPTBot remove me from ChatGPT search answers?
OpenAI documents separate agents for training and search. Blocking one does not automatically block the other, but check OpenAI’s current documentation.
Should I add llms.txt as well?
It is optional, and its real effect is unproven. See llms.txt: helper or hoax.
Will allowing AI crawlers hurt my SEO?
Allowing them does not affect how Google ranks your pages. Heavy crawling can load your server, so watch your logs.
Next step
Open your live robots.txt, compare it with the tables above and decide which agents to allow. Then re-check in a month with the AI search visibility checklist.
Related guides
- XML sitemap and robots.txt mistakes that cost you pages: Sitemap and robots.txt mistakes to avoid.
- Technical SEO audit checklist for 2026: A technical SEO checklist to work through.
- Canonical, hreflang and redirect errors that hide pages: Fix the errors that hide pages from search.
More questions
What is GPTBot and what does it do?
GPTBot is OpenAI's user agent that collects content that may be used to train models. It's a training-focused crawler, separate from OpenAI's search-oriented agents like OAI-SearchBot and ChatGPT-User.
How do I allow AI crawlers in my robots.txt?
You can allow AI crawlers by creating User-agent rules with Allow directives for specific crawlers. For example, to allow search-oriented agents, you'd add separate User-agent entries for OAI-SearchBot, Claude-SearchBot, PerplexityBot, and similar agents, each with 'Allow: /' rules.
Can I block training crawlers but allow AI search crawlers?
Yes. You can block training-focused crawlers like GPTBot, ClaudeBot, and CCBot with 'Disallow: /' rules while allowing search-oriented agents like OAI-SearchBot, Claude-SearchBot, and PerplexityBot with 'Allow: /' rules. This lets you be cited in search results without contributing to model training.
What's the difference between OAI-SearchBot and GPTBot?
OAI-SearchBot is documented for search features in ChatGPT, while GPTBot collects content that may be used to train models. OAI-SearchBot is search-oriented, whereas GPTBot is training-focused.
Do I need to list all AI crawlers in robots.txt?
No. If you want to allow all crawlers, you can either have no rules at all or state your intent explicitly with a catch-all 'User-agent: *' rule with 'Allow: /' (and any Disallow rules for specific paths like login or admin areas).
Should I verify AI user agent names before deploying my robots.txt?
Yes. User agent names and behavior change, so the page recommends confirming each against the company's own documentation before you deploy your rules.
