Answers / AEO and AI search
How do I block or allow AI crawlers?
Use robots.txt: name each crawler in a User-agent line and give it Allow or Disallow. Decide per crawler, because some collect training data and others fetch pages for search answers.
Sources checked .
The crawlers and what each one is for
- GPTBot (OpenAI): collects pages that may be used to train models. OAI-SearchBot: finds pages to show in ChatGPT search. ChatGPT-User: opens a page when a person asks ChatGPT to (OpenAI).
- ClaudeBot (Anthropic): collects pages for training. Claude-SearchBot: improves search results. Claude-User: opens a page for a person using Claude (Anthropic).
- PerplexityBot: finds and links pages in Perplexity results. Perplexity-User: opens a page for a person (Perplexity).
- Google-Extended: a robots.txt name with no crawler of its own. It controls whether pages are used to train Gemini models and to ground Gemini answers. Google says it "does not impact a site's inclusion in Google Search" (Google crawler list).
A common setup
To stay out of training but stay in AI search, disallow GPTBot, ClaudeBot and Google-Extended, and allow OAI-SearchBot, Claude-SearchBot and PerplexityBot. To be as visible as possible, allow them all. Blocking a search crawler removes the site from that product's answers.
What robots.txt does not do
- It may not stop fetches a person asks for. OpenAI says of ChatGPT-User that "robots.txt rules may not apply", and Perplexity says Perplexity-User "generally ignores robots.txt rules".
- It does not remove a page from Google. Google says robots.txt "is not a mechanism for keeping a web page out of Google" and points to noindex (robots.txt introduction).
- It does not control Google's AI Overviews. Those follow the Search controls: nosnippet, data-nosnippet, max-snippet and noindex (AI features and your website).
- It is not the only gate. A firewall or a host setting can turn crawlers away whatever robots.txt says. Cloudflare has a setting for AI crawlers, for example (Cloudflare Docs).
How long a change takes
OpenAI says it can take about 24 hours for its systems to pick up a robots.txt change, and Perplexity says up to 24 hours.
Sources
- Overview of OpenAI crawlers OpenAI
- Does Anthropic crawl data from the web, and how can site owners block the crawler? Anthropic
- Perplexity crawlers Perplexity
- List of Google's common crawlers Google Search Central
- Introduction to robots.txt Google Search Central
- AI features and your website Google Search Central
- AI crawler and agent access policies Cloudflare Docs
These companies change their documentation without notice. If a link or a quote no longer matches, email a correction.
Related questions
How do ChatGPT and Perplexity choose their sources?
Neither company publishes how it ranks sources. What they do publish is the first condition: the page has to be reachable by their search crawler, OAI-SearchBot for ChatGPT and PerplexityBot for Perplexity.
Does llms.txt help a website appear in AI answers?
There is no evidence yet that it does. Google says its Search and AI features ignore the file, and OpenAI, Anthropic and Perplexity have not said their systems use it.
Can AI crawlers read a JavaScript website?
Google can, because it renders pages before indexing them. OpenAI, Anthropic and Perplexity have not said whether their crawlers run JavaScript, and an independent study in 2024 found that the main ones did not.
Rather have it fixed for you?
The Kingdom Builder fixes what the check finds: the wording, the tags, the schema and what AI crawlers can read. It starts with the free check.