Check robots.txt for AI search crawlers
Published: 2026-11-04 · Last updated: 2026-11-04 · Written by RecoGauge
Before ChatGPT search, Claude, Perplexity or Google AI Overviews can use your page as a source, each service's search crawler has to be able to reach it. This guide shows how to check that access in robots.txt, fix common mistakes and confirm the fix.
What this guide is based on. Crawler roles and rule matching come from each company's official documentation, re-read on 2026-11-04 and linked next to each statement (see the sources table at the end). Every allowed/blocked result in the examples was checked with the robots.txt code of the RecoGauge engine. Parts marked General advice are common practice rather than something the official documents state.
1. Start with how robots.txt responds
robots.txt lives at the top of the site. Open https://www.example.com/robots.txt in a browser, or check only the status code in a terminal:
curl -s -o /dev/null -w "%{http_code}\n" https://www.example.com/robots.txt
The response status comes before the rules: the same file is read differently depending on how the server answers.
| Response | How Google treats it |
|---|---|
| 200 | The rules in the file apply. |
| 4xx (except 429) | As if there were no robots.txt: no crawl restrictions. 401 and 403 cannot be used to limit the crawl rate. |
| 5xx | For the first 12 hours Google stops crawling and keeps retrying robots.txt. If it cannot get a new version, it uses the last good version for the next 30 days, or assumes no restrictions if it has none. If the errors are still not fixed after 30 days, Google behaves as if there were no robots.txt when the site is generally available, and stops crawling when the site has availability problems. |
Source: How Google interprets the robots.txt specification (updated 2026-10-23). The Robots Exclusion Protocol, RFC 9309, says that when robots.txt is unreachable because of server or network errors, a crawler MUST assume complete disallow. RecoGauge follows that standard: when robots.txt answers with 5xx or 429, or cannot be reached, it treats every search crawler as blocked. The other companies do not document how their crawlers handle this, so making robots.txt answer 200 is the reliable fix.
2. Search, user-request and training crawlers
Crawlers from the same company have different purposes, and blocking them has different results. In robots.txt, User-agent must use the official names (tokens) below.
| Company | Search and answers | Visits on a user's request | Training |
|---|---|---|---|
Googlebot | - | Google-Extended (a control token, not a separate crawler) | |
| OpenAI | OAI-SearchBot | ChatGPT-User | GPTBot |
| Anthropic | Claude-SearchBot | Claude-User | ClaudeBot |
| Perplexity | PerplexityBot | Perplexity-User | - (Perplexity says PerplexityBot is not used for training) |
Googlebot: Google Search, AI Overviews and AI Mode
To be a supporting link in AI Overviews or AI Mode, a page must be indexed and eligible to be shown in Google Search with a snippet; there are no additional technical requirements (AI features and your website). There is no separate AI Overviews crawler, so allowing Googlebot is the starting point. Google-Extended is a token that controls Gemini training and some grounding uses; Google says it does not affect a site's inclusion in Google Search and is not a ranking signal (Google's common crawlers, updated 2026-10-30). The same page says Google intends to support a shared AI-training preference signal (AIPREF) in early 2027.
OAI-SearchBot and GPTBot are independent settings
OpenAI says each setting is independent: you can allow OAI-SearchBot to appear in search results while disallowing GPTBot to keep content out of training. Sites that opt out of OAI-SearchBot are not shown in ChatGPT search answers, though they can still appear as navigational links, and a robots.txt change can take about 24 hours to reach search results. ChatGPT-User visits happen at a user's request, so robots.txt rules may not apply (Overview of OpenAI Crawlers).
Claude-SearchBot, Claude-User and ClaudeBot
According to Anthropic, blocking Claude-SearchBot may reduce a site's visibility and accuracy in user search results, and blocking Claude-User stops Claude from retrieving the page for a user's question. Blocking ClaudeBot signals that future material should be excluded from training data (Anthropic Help Center).
PerplexityBot and Perplexity-User
PerplexityBot surfaces and links websites in Perplexity search results and is not used to crawl content for AI foundation models. Perplexity recommends allowing it in robots.txt and allowing requests from its published IP ranges, and says changes can take up to 24 hours. Perplexity-User fetches pages at a user's request, so it generally ignores robots.txt rules (Perplexity Crawlers).
3. Which group applies, and which rule wins
robots.txt is a set of groups, each starting with a User-agent line. A crawler decides in two steps (Google's interpretation, RFC 9309).
- Pick the group. The crawler follows only the group whose user agent matches its own name most specifically and ignores the others. Names are matched case-insensitively. Several groups for the same name are combined, but a crawler's own group and the
*group are never combined:*applies only when there is no group for the crawler's name. - Pick the rule. Within that group, the matching rule with the longest (most specific) path wins. If rules of the same length conflict, Google uses the least restrictive one,
Allow.*matches any run of characters, a trailing$marks the end of the address, and paths are case-sensitive.
Every result below was checked with the robots.txt code of the RecoGauge engine.
Example A. Block training crawlers, allow search crawlers
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: *
Allow: /
| Crawler | Address | Result | Why |
|---|---|---|---|
GPTBot | / | Blocked | Disallow: / in its own group |
ClaudeBot | /blog/post | Blocked | Disallow: / in its own group |
OAI-SearchBot | /blog/post | Allowed | No group of its own, so it follows * |
Claude-SearchBot | / | Allowed | The ClaudeBot group is a different name |
Googlebot | / | Allowed | Separate from Google-Extended |
Example B. A common mistake: a named group drops the * rules
User-agent: *
Disallow: /admin/
User-agent: OAI-SearchBot
Allow: /
| Crawler | Address | Result | Why |
|---|---|---|---|
OAI-SearchBot | /admin/settings | Allowed | It follows only its own group, so the /admin/ rule in * does not apply |
Googlebot | /admin/settings | Blocked | Disallow: /admin/ in the * group |
To keep OAI-SearchBot out of /admin/ too, repeat the rule inside its own group:
User-agent: *
Disallow: /admin/
User-agent: OAI-SearchBot
Allow: /
Disallow: /admin/
| Crawler | Address | Result | Why |
|---|---|---|---|
OAI-SearchBot | /admin/settings | Blocked | /admin/ is longer than /, so it wins |
OAI-SearchBot | /blog/post | Allowed | Only Allow: / matches |
Example C. The longer rule wins
User-agent: *
Disallow: /docs/
Allow: /docs/public/
| Crawler | Address | Result | Why |
|---|---|---|---|
PerplexityBot | /docs/public/setup | Allowed | /docs/public/ is the longer rule |
PerplexityBot | /docs/internal | Blocked | Only Disallow: /docs/ matches |
Example D. $, query strings and letter case
User-agent: *
Disallow: /*.pdf$
| Crawler | Address | Result | Why |
|---|---|---|---|
Googlebot | /files/report.pdf | Blocked | The address ends in .pdf |
Googlebot | /files/report.pdf?download=1 | Allowed | With a query string it no longer ends in .pdf |
Googlebot | /files/report.PDF | Allowed | Paths are case-sensitive |
Example E. An empty Disallow is the opposite of Disallow: /
User-agent: *
Disallow:
| Crawler | Address | Result | Why |
|---|---|---|---|
Claude-SearchBot | / | Allowed | A rule without a path blocks nothing |
User-agent: *
Disallow: /
| Crawler | Address | Result | Why |
|---|---|---|---|
Claude-SearchBot | / | Blocked | Every path starts with / |
Example F. A name that is not an official token blocks nothing
User-agent: ChatGPT
Disallow: /
| Crawler | Address | Result | Why |
|---|---|---|---|
OAI-SearchBot | / | Allowed | ChatGPT is not a crawler name, so the group applies to no one |
GPTBot | / | Allowed | Same reason. To block it, use the official name: User-agent: GPTBot |
4. robots.txt, noindex and a CDN or firewall do different jobs
| Tool | What it does | Watch out |
|---|---|---|
| robots.txt | Tells crawlers which addresses they may fetch. | Google says robots.txt is used mainly to avoid overloading a site with requests and is not a mechanism for keeping a page out of Google (robots.txt introduction). |
noindex | Keeps a page out of search results. | If robots.txt blocks the page, the crawler never sees noindex, and the page can still appear in results when other pages link to it (Block Search indexing with noindex). |
nosnippet, max-snippet, data-nosnippet | Limit what search shows from a page. | Google points to these controls, or noindex, to limit what is shown in Search, including AI features (AI features). |
| CDN or firewall bot blocking | Refuses the request itself. | Even when robots.txt allows a crawler, a firewall block means it cannot fetch the page. OpenAI and Perplexity recommend allowing requests from their published IP ranges, and Perplexity documents firewall settings. |
RecoGauge checks robots.txt and the noindex and snippet settings, but not whether a firewall or CDN blocks the real crawlers. Check that in your server or CDN settings and your access logs.
5. Common mistakes
- Thinking that blocking GPTBot removes the site from ChatGPT search. OpenAI says the two settings are independent (section 2).
- Thinking that blocking Google-Extended removes the site from AI Overviews. Google says it does not affect inclusion in Search (section 2).
- Adding a named group and expecting the
*rules to apply to it. Example B. - Using a product name instead of the crawler token.
User-agent: ChatGPTapplies to no crawler. Example F. - Fixing the rules while robots.txt answers with 5xx. Section 1.
- Blocking a page in robots.txt and expecting
noindexto remove it. Section 4. - General adviceA staging
Disallow: /shipped to the live site. After every deploy, open the live robots.txt and read it.
6. How to verify a fix
- Check that the status is 200 with the command in section 1.
- Read what is actually served with
curl -s https://www.example.com/robots.txt. General adviceIf your change is not there, a CDN cache may still serve the old file. - Decide per crawler. For each address you care about, apply the two steps in section 3 (pick the group, then the longest rule). When you check a page address with RecoGauge, it lists each crawler as allowed or blocked together with the rule that decided it (for example
disallow: /admin/). - For Google, use the robots.txt report in Search Console. It shows which robots.txt files Google found, when they were last crawled and any warnings or errors, and lets you request a recrawl in an emergency (robots.txt report).
- Allow time. Google generally caches robots.txt for up to 24 hours (Google's interpretation). OpenAI says search results can take about 24 hours to reflect a change, and Perplexity up to 24 hours.
- General adviceLook at your access logs. The crawler's user agent and the response code in your logs show whether a firewall is blocking it. OpenAI and Perplexity publish their crawlers' IP ranges, which helps tell real crawlers from requests that only copy the user agent.
Sources
All read in the original on 2026-11-04. The update date is the one shown on each page; it is blank when the page shows none.
| Document | Page updated | Used for |
|---|---|---|
| How Google interprets the robots.txt specification | 2026-10-23 | Status codes, group selection, rule precedence, 24-hour cache |
| RFC 9309 Robots Exclusion Protocol | 2022-09 | Complete disallow on errors, case-insensitive names |
| Google's common crawlers | 2026-10-30 | Google-Extended and its lack of effect on Search, AIPREF plan |
| AI features and your website | 2025-12-10 | Requirements for AI Overviews and AI Mode, preview controls |
| Robots.txt introduction | 2025-12-10 | robots.txt does not keep a page out of Google |
| Block Search indexing with noindex | 2025-12-10 | A robots.txt block hides noindex |
| robots.txt report (Search Console) | What the report shows, recrawl requests | |
| Overview of OpenAI Crawlers | OAI-SearchBot, GPTBot, ChatGPT-User, about 24 hours to update | |
| Anthropic: Does Anthropic crawl data from the web? | ClaudeBot, Claude-User, Claude-SearchBot | |
| Perplexity Crawlers | PerplexityBot, Perplexity-User, IP and firewall guidance, up to 24 hours |
Read next: Page information that search and AI systems read · Case: RecoGauge checks its own About page · Check your page for free
