How-To · Technical Setup
Robots.txt for AI Crawlers: Who Gets on the Guest List
Which AI crawlers to let in, which ones are optional, and copy-ready robots.txt examples, plus the sneaky mistakes that quietly hide sites from AI search.
To be cited by AI assistants, let their search crawlers in, OAI-SearchBot, Claude-SearchBot, PerplexityBot and Googlebot. Training crawlers like GPTBot, ClaudeBot and Google-Extended are a separate choice. Blocking them limits use of your content for model training but doesn't remove you from AI search results.
Key Takeaways
- Let search crawlers in: OAI-SearchBot, Claude-SearchBot, PerplexityBot and Googlebot.
- Training crawlers like GPTBot, ClaudeBot and Google-Extended are optional and don't affect AI search visibility.
- A crawler follows only the most specific group that names it, so repeat shared rules in each group.
- Check your CDN and host bot settings too. They can block crawlers before robots.txt is read.
Robots.txt is a tiny text file at yoursite.com/robots.txt. It's basically the guest list for your website. Well-behaved crawlers read it at the door before they wander in.
It's also one of the easiest places to accidentally lock out the very assistants you want citing you. One copied line can do it.
The Short Version of Who's Who
Search crawlers index your pages so assistants can find and link to them. Keep these on the list.
Training crawlers collect content that may be used to train future models. Blocking them is a content-use decision, not a visibility decision.
User-triggered agents show up because a person asked an assistant to look at a page. OpenAI and Perplexity both say their user-triggered agents may not follow robots.txt, since a human made the request.
The Full Cast
| User agent | Company | Job | If you block it |
|---|---|---|---|
OAI-SearchBot | OpenAI | ChatGPT search | You won't appear in ChatGPT search answers |
GPTBot | OpenAI | Model training | Signals your content shouldn't be used for training |
ChatGPT-User | OpenAI | Visits when a user asks | Robots.txt may not apply, per OpenAI |
Claude-SearchBot | Anthropic | Claude search results | Claude can't index you for search |
ClaudeBot | Anthropic | Model training | Future content is left out of training |
Claude-User | Anthropic | Visits when a user asks | Claude can't fetch your pages for users |
PerplexityBot | Perplexity | Perplexity search results | Less visibility in Perplexity |
Perplexity-User | Perplexity | Visits when a user asks | Generally ignores robots.txt, per Perplexity |
Googlebot | Search, AI Overviews, AI Mode | You disappear from Google Search | |
Google-Extended | Other Google AI uses, like training | No effect on Search or AI Overviews |
These lists change, so peek at each company's docs (linked at the bottom) before a big edit.
Two Copy-Ready Setups
Option A: Welcome AI search, skip training. Popular with businesses that want citations but would rather not feed model training.
# AI search: come on in
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /
Disallow: /account/
# Model training: no thanks
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /
# Everyone else
User-agent: *
Allow: /
Disallow: /account/
Sitemap: https://www.example.com/sitemap.xml
Option B: Open house. Maximum reach, private areas still private.
User-agent: *
Allow: /
Disallow: /account/
Disallow: /checkout/
Sitemap: https://www.example.com/sitemap.xml
Spot the Problem
Before: oops
User-agent: *
Disallow: /
Left over from a staging site. Every crawler, including Googlebot, is turned away.
After: fixed
User-agent: *
Allow: /
Disallow: /admin/
Sitemap: https://example.com/sitemap.xml
Public pages open, private folder closed, sitemap listed.
Other Sneaky Ways Sites Hide From AI Search
- "Block all AI" lists from the internet. These often include search crawlers like OAI-SearchBot and PerplexityBot, not just training bots.
- Bot protection at your host or CDN. These can block crawlers before robots.txt is even read. Google's AI features guidance specifically says to check your CDN and hosting.
- Blocking CSS and JavaScript folders. Googlebot renders pages and needs those files to see them properly.
- Using robots.txt to hide pages. It controls crawling, not indexing. A blocked URL can still show up if other sites link to it. Use a
noindexmeta tag on a crawlable page instead. - No sitemap line. Adding
Sitemap:with your full sitemap URL helps every crawler find your pages faster.
Five-Minute Check
- Open
yourdomain.com/robots.txt. It should load as plain text. - Read each
User-agentgroup. Make sure the search crawlers you want aren't disallowed. - Open the robots.txt report in Google Search Console to see what Google last fetched.
- Ask your host or CDN whether any bot rules block AI crawlers.
- Be patient after changes. OpenAI says its search systems take about 24 hours to adjust.
Frequently Asked Questions
Should I block AI crawlers?
Depends on your goals. Want citations and visits from assistants? Let the search crawlers in. Blocking training crawlers is a separate decision and doesn't hide you from AI search.
Does Crawl-delay work?
For some. Anthropic says it supports the non-standard Crawl-delay extension. Google ignores it. If crawling is straining your server, rate limiting at your host is more reliable.
Will blocking Google-Extended remove me from AI Overviews?
No. Google says AI Overviews and AI Mode follow Googlebot's rules like the rest of Search. To limit what Search shows from a page, Google points to nosnippet, data-nosnippet, max-snippet or noindex.
Sources
- Overview of OpenAI crawlers, OpenAI
- Anthropic's crawlers, Anthropic
- Perplexity crawlers, Perplexity
- AI features and your website, Google Search Central
- Introduction to robots.txt, Google Search Central