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.

ResponseHow Google treats it
200The 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.
5xxFor 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.

CompanySearch and answersVisits on a user's requestTraining
GoogleGooglebot-Google-Extended (a control token, not a separate crawler)
OpenAIOAI-SearchBotChatGPT-UserGPTBot
AnthropicClaude-SearchBotClaude-UserClaudeBot
PerplexityPerplexityBotPerplexity-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).

  1. 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.
  2. 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: /
CrawlerAddressResultWhy
GPTBot/BlockedDisallow: / in its own group
ClaudeBot/blog/postBlockedDisallow: / in its own group
OAI-SearchBot/blog/postAllowedNo group of its own, so it follows *
Claude-SearchBot/AllowedThe ClaudeBot group is a different name
Googlebot/AllowedSeparate from Google-Extended

Example B. A common mistake: a named group drops the * rules

User-agent: *
Disallow: /admin/

User-agent: OAI-SearchBot
Allow: /
CrawlerAddressResultWhy
OAI-SearchBot/admin/settingsAllowedIt follows only its own group, so the /admin/ rule in * does not apply
Googlebot/admin/settingsBlockedDisallow: /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/
CrawlerAddressResultWhy
OAI-SearchBot/admin/settingsBlocked/admin/ is longer than /, so it wins
OAI-SearchBot/blog/postAllowedOnly Allow: / matches

Example C. The longer rule wins

User-agent: *
Disallow: /docs/
Allow: /docs/public/
CrawlerAddressResultWhy
PerplexityBot/docs/public/setupAllowed/docs/public/ is the longer rule
PerplexityBot/docs/internalBlockedOnly Disallow: /docs/ matches

Example D. $, query strings and letter case

User-agent: *
Disallow: /*.pdf$
CrawlerAddressResultWhy
Googlebot/files/report.pdfBlockedThe address ends in .pdf
Googlebot/files/report.pdf?download=1AllowedWith a query string it no longer ends in .pdf
Googlebot/files/report.PDFAllowedPaths are case-sensitive

Example E. An empty Disallow is the opposite of Disallow: /

User-agent: *
Disallow:
CrawlerAddressResultWhy
Claude-SearchBot/AllowedA rule without a path blocks nothing
User-agent: *
Disallow: /
CrawlerAddressResultWhy
Claude-SearchBot/BlockedEvery path starts with /

Example F. A name that is not an official token blocks nothing

User-agent: ChatGPT
Disallow: /
CrawlerAddressResultWhy
OAI-SearchBot/AllowedChatGPT is not a crawler name, so the group applies to no one
GPTBot/AllowedSame reason. To block it, use the official name: User-agent: GPTBot

4. robots.txt, noindex and a CDN or firewall do different jobs

ToolWhat it doesWatch out
robots.txtTells 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).
noindexKeeps 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-nosnippetLimit 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 blockingRefuses 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

6. How to verify a fix

  1. Check that the status is 200 with the command in section 1.
  2. 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.
  3. 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/).
  4. 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).
  5. 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.
  6. 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.

DocumentPage updatedUsed for
How Google interprets the robots.txt specification2026-10-23Status codes, group selection, rule precedence, 24-hour cache
RFC 9309 Robots Exclusion Protocol2022-09Complete disallow on errors, case-insensitive names
Google's common crawlers2026-10-30Google-Extended and its lack of effect on Search, AIPREF plan
AI features and your website2025-12-10Requirements for AI Overviews and AI Mode, preview controls
Robots.txt introduction2025-12-10robots.txt does not keep a page out of Google
Block Search indexing with noindex2025-12-10A robots.txt block hides noindex
robots.txt report (Search Console)What the report shows, recrawl requests
Overview of OpenAI CrawlersOAI-SearchBot, GPTBot, ChatGPT-User, about 24 hours to update
Anthropic: Does Anthropic crawl data from the web?ClaudeBot, Claude-User, Claude-SearchBot
Perplexity CrawlersPerplexityBot, 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