Insights / Answer engine optimisation
Robots.txt for AI crawlers: which bots to allow and which to block
Stefan Maritz · · 6 min read
Robots.txt decides which AI crawlers see your site at all, long before anyone gets to judge whether your content is any good.
TL;DR
- Robots.txt now carries separate rules for a dozen AI crawlers, each doing a different job: training, search, or fetching a page for one user.
- Blocking a training crawler, such as GPTBot or Google-Extended, does not remove you from that company's AI search answers, which run on a different bot entirely.
- OpenAI, Anthropic, and Perplexity each publish their own crawler names, and getting one wrong in robots.txt either blocks the wrong bot or lets training through by mistake.
- Google confirms that Google-Extended is not a ranking signal and does not affect a site's inclusion in Search, so blocking it carries no SEO cost.
- For a B2B site trying to get cited in ChatGPT and Perplexity, the safe default is allowing the search and retrieval crawlers and deciding separately on training.
A visitor's AI assistant reads your site before the visitor does. If a crawler is blocked at the door, it never gets the chance to decide your page is worth citing, no matter how good the page is. Robots.txt is where that decision gets made, one user agent at a time, and most sites still write it as though only Googlebot exists.
What does robots.txt control for AI crawlers?
Robots.txt is a plain text file at the root of a domain, and a crawler is expected to read it before fetching anything. Each rule names a user agent and says what it may or may not request. The standard is voluntary: a well-run company's crawler checks the file every time, but a rogue scraper can ignore it completely, so robots.txt is a fence, not a lock.
What changed in the last two years is the number of fences a site now needs. Instead of one line for Googlebot, there are now separate user agents for training, for search indexing, and for fetching a single page on a user's behalf, often from the same company. Treat them as one bot called "AI" and you will get the setting wrong for at least one of them.
Which AI crawlers should you know about?
Four companies account for most of the traffic a B2B site will see. Each splits its crawling into at least two jobs, and the split is the whole point: you can keep your content out of model training while still showing up in that company's answers.
OpenAI runs OAI-SearchBot for ChatGPT's search feature and GPTBot for model training, and the two settings are independent. Anthropic runs ClaudeBot for training, Claude-SearchBot for indexing, and Claude-User for fetching a page when someone asks Claude a direct question. Perplexity runs PerplexityBot to build its search index and Perplexity-User to fetch a page live when answering someone's question, and neither one trains a model. Google folds its AI controls into the crawler it already has: standard Googlebot indexes for Search and AI Overviews, while Google-Extended is a separate robots.txt line that only governs Gemini training and grounding.
Which crawlers should you allow, and which should you block?
The decision is really two separate questions: do you want this company training a future model on your content, and do you want to appear when someone asks it's assistant a question. For a B2B site chasing visibility in AI answers, the second question usually wins.
| Crawler | Company | Job | What blocking it does |
|---|---|---|---|
| OAI-SearchBot | OpenAI | ChatGPT search results | Removes you from ChatGPT search answers |
| GPTBot | OpenAI | Model training | Keeps your content out of future model training |
| ClaudeBot | Anthropic | Model training | Keeps your content out of future model training |
| Claude-SearchBot | Anthropic | Search indexing | Reduces visibility in Claude's search results |
| Claude-User | Anthropic | Fetching a page a user asked about | Claude cannot read your page when a user asks |
| PerplexityBot | Perplexity | Search indexing | Removes you from Perplexity's answers |
| Google-Extended | Gemini training and grounding | No effect on Google Search or AI Overviews |
Allow the search and user-fetch rows if getting cited is the goal, which it is for almost every B2B marketing team reading this. Block training-only rows if you would rather your pricing page, case studies, or proprietary research stay out of a future model, with no cost to how any assistant answers about you today.
Does blocking an AI crawler hurt your Google ranking?
No, and this is the most common worry to clear up first. Google is explicit that using Google-Extended doesn't affect a site's inclusion in Search, and it is not used as a ranking signal. The same separation holds for the other labs: blocking GPTBot has no bearing on Googlebot, and blocking ClaudeBot has no bearing on PerplexityBot. Each company's crawlers are evaluated on their own, so a defensive setting for one never spills over into another.
Google's own guidance on AI features in Search confirms there are no extra technical requirements for appearing in AI Overviews beyond the standard ones: crawlable, indexable, and well-structured. Robots.txt rules aimed at training crawlers sit outside that path entirely.
How do you write this into robots.txt?
A working file for a B2B site that wants AI visibility but not necessarily AI training looks like a short, repeated pattern, one block per crawler:
User-agent: OAI-SearchBot
Allow: /
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: Claude-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Google-Extended
Disallow: /
Google's standard crawler needs no separate entry here. It is already covered by whatever rules apply to Googlebot elsewhere in the file, and Google-Extended is additive, not a replacement.
What should you do this week?
- Pull your server logs or your CDN's bot report and check which AI crawlers have visited in the last 30 days.
- Decide your position on training, separately for each lab, rather than adopting one blanket rule for "AI".
- Write one user agent block per crawler in robots.txt, naming the exact string each company publishes.
- Leave the search and fetch crawlers open if getting cited in ChatGPT, Claude, and Perplexity answers is the goal.
- Recheck the file every quarter, since new crawler names appear as labs split out new products.
- Pair it with an llms.txt file, which does a different job: llms.txt is a curated index of your best pages, read by agents that have already been let in, not a gate like robots.txt.
Robots.txt is the first filter and the cheapest one to get right, and it rewards a specific decision over a vague one. If you want to check what a crawler sees once it is past that filter, run your key pages through an AI bot view. The wider work of showing up well once a crawler is inside, clean markup, a clear position, pages written to be quoted, is what our AI search and AEO engagements and AI-native website builds are built around, priced on our pricing page. It is also the first checkbox in our own AI-native website teardown and the reason we track AI visibility for clients rather than guessing at it.
Frequently asked questions
What does robots.txt control for AI crawlers?
It tells each named crawler, such as GPTBot or ClaudeBot, which parts of your site it may fetch. Well-behaved AI crawlers check the file before every visit and skip anything marked disallowed.
Should I block GPTBot?
Only if you want your content kept out of OpenAI's model training. Blocking GPTBot does not remove you from ChatGPT search answers, since that runs on the separate OAI-SearchBot crawler.
Does blocking Google-Extended hurt my Google rankings?
No. Google states plainly that Google-Extended is not a ranking signal and does not affect a site's inclusion in Search. It only controls Gemini training and grounding.
What is the difference between robots.txt and llms.txt?
Robots.txt is a set of rules a crawler must check before fetching a page, and it can block access outright. Llms.txt blocks nothing; it is an index of your best pages that agents read once they are already allowed in.
How do I know if AI crawlers are already visiting my site?
Search your server logs for user agent strings containing GPTBot, ClaudeBot, PerplexityBot, or Google-Extended. Most hosting dashboards and CDNs, including Vercel and Cloudflare, also report bot traffic by name, and checking it once a quarter catches a new crawler before its first visit goes unnoticed.
Want this working for your team?
Thirty minutes with Stefan. No deck, and a straight answer.
Book a 30-minute call