Sitewalk / Guides / AI search and AI bots / AI crawlers and robots.txt

AI crawlers and robots.txt: what to allow and block

AI tools read your site with their own crawlers, and your robots.txt decides which ones may come in. The main thing to get right is that search crawlers and training crawlers are separate, so you can stay in AI search answers and still opt out of model training.

This guide shows how to read your robots.txt for AI bots, the one line that blocks everything by accident, how to test whether your firewall turns the crawler away, and what to change.

Sitewalk AI search panel listing which AI bots robots.txt allows
Excerpt from a Sitewalk audit of sitewalkseo.com, 16 Nov 2026.

Search bots, training bots and user bots

Each company runs more than one crawler, and each one has its own name in robots.txt. OpenAI says its settings are independent: you can allow OAI-SearchBot to appear in search results and disallow GPTBot to say your content should not be used to train its models.

CompanyCrawlerWhat it doesBlocking it means
OpenAIOAI-SearchBotSurfaces sites in ChatGPT searchYour site will not be shown in ChatGPT search answers, though it can still appear as a navigational link
OpenAIGPTBotCrawls content that may be used for trainingYou ask OpenAI not to train on your content
OpenAIChatGPT-UserVisits a page when a user asks ChatGPT or a Custom GPTOpenAI says robots.txt rules may not apply, because a user starts the visit
AnthropicClaudeBotCollects content that could contribute to trainingYour future content is excluded from training sets
AnthropicClaude-SearchBotImproves search result qualityYour content is not indexed for Claude search, which may reduce visibility
AnthropicClaude-UserFetches pages when a user asks ClaudeClaude cannot fetch your content for a user's question
PerplexityPerplexityBotSurfaces and links sites in Perplexity searchPerplexity recommends allowing it so your site appears in its search results
PerplexityPerplexity-UserFetches pages for a user's questionPerplexity says it generally ignores robots.txt here, because a user asked
GoogleGoogle-ExtendedA token that controls use for Gemini training and groundingGoogle says it does not affect inclusion in Google Search or act as a ranking signal

Two details from the OpenAI page are easy to miss. ChatGPT-User is not used to decide whether content may appear in Search. OpenAI says to use OAI-SearchBot in robots.txt for Search opt-outs. Second, a change to robots.txt can take about 24 hours to take effect for search.

Google-Extended has no user agent string of its own. Google crawls with its existing user agents, and the token only works as a control in robots.txt.

How to check yours

Open https://example.com/robots.txt and read it from top to bottom. Look for two things: groups that name an AI bot, and any group under User-agent: *.

User-agent: GPTBot
Disallow: /

Disallow: / under a bot name closes the whole site to that bot. A Disallow with a path closes only that path.

Now the line that causes most accidents.

User-agent: *
Disallow: /

This closes the site to every crawler that has no group of its own, which includes OAI-SearchBot, PerplexityBot and Claude-SearchBot. Sites often have it left over from a staging copy or a launch.

We tested these cases with Python's urllib.robotparser on 23 Nov 2026, using the address https://example.com/guide/. Other crawlers may read edge cases differently, so treat this as a guide.

robots.txtOAI-SearchBotGPTBotPerplexityBotClaudeBot
User-agent: * with Disallow: /blockedblockedblockedblocked
Same, plus a group for OAI-SearchBot and PerplexityBot with Allow: /allowedblockedallowedblocked
A group for GPTBot with Disallow: /private/ onlyallowedallowedallowedallowed

A bot that has its own group follows that group and ignores the * group. That is why the second row works.

We also read our own robots.txt on 23 Nov 2026. It has one group, User-agent: *, with three Disallow lines for internal paths. The same parser says OAI-SearchBot, GPTBot, ChatGPT-User, PerplexityBot, ClaudeBot, Claude-SearchBot and Google-Extended may all fetch /guides/.

Check the two places that are not in robots.txt

A robots.txt can look perfect and a crawler can still be turned away. Check headers and the page source.

curl -sI https://example.com/

Look for an x-robots-tag line. Google's documentation says any rule that works in a robots meta tag also works in an X-Robots-Tag header, and that the header can name a user agent before the rules, for example X-Robots-Tag: otherbot: noindex. A plugin, a CDN setting or a server rule can add it, and nobody sees it in the page source. Our home page returned no x-robots-tag header on 23 Nov 2026.

In the page source, search for name="robots". Our home page has no robots meta tag. If yours names an AI bot or carries an opt-out value such as noai, someone added it on purpose or a plugin did. We found no documentation we could cite that says AI tools honor noai, so treat it as a request that some systems may ignore.

Test whether your firewall turns the crawler away

This is the problem robots.txt cannot show you. Your robots.txt says OAI-SearchBot is welcome, and a firewall or bot protection rule at your host refuses it anyway. OpenAI recommends allowing OAI-SearchBot in robots.txt and allowing requests from its published IP ranges.

Test it by sending a request with the crawler's name.

curl -s -o /dev/null -w "%{http_code}, redirects %{num_redirects}\n" -A "OAI-SearchBot/1.4" https://example.com/

You want 200, redirects 0. A 403, a 429, a redirect to a challenge page or a much shorter page means a rule is acting on the user agent. OpenAI's page lists OAI-SearchBot/1.4 in its example user agent and says the version number may change, so check the page for the current one.

We ran this on our own site on 23 Nov 2026 with OAI-SearchBot/1.4, GPTBot/1.4 and a normal browser name. All three returned 200, redirects 0.

To see what a blocking rule looks like, we built a local Apache test with a robots.txt that welcomes everyone and a server rule that refuses any user agent containing "bot". A request with OAI-SearchBot/1.4 returned 403. A request with Mozilla/5.0 returned 200. Your own rule will look different, and the test is the same.

A user agent test cannot prove a firewall that checks IP addresses. If the test passes and you still suspect a block, look in your host or CDN dashboard for bot rules and compare them with the IP lists the companies publish. OpenAI and Perplexity both publish theirs, and Anthropic's page says blocking by IP address may not give you a reliable opt-out because it stops its bots from reading your robots.txt.

How to fix each problem

robots.txt lets AI search bots reach your site and stops AI training bots
Text version

An example robots.txt choice. Search bots OAI-SearchBot, PerplexityBot and Claude-SearchBot get Allow and can show your site in AI search. GPTBot, ClaudeBot and the Google-Extended token get Disallow, asking them not to train on it. ChatGPT-User and Perplexity-User may ignore these rules.

ProblemWhat it meansFix
Search bot blockedOAI-SearchBot, PerplexityBot or Claude-SearchBot is disallowed, directly or by User-agent: *Add a group for the bot with Allow: /, or remove the Disallow rule. If you blocked it on purpose, leave it
Training bot blockedGPTBot, ClaudeBot or Google-Extended is disallowedNothing to fix if you meant it. Remove the rule if you want your content used for training
Partly blockedA rule closes some pathsCheck that the closed paths hold nothing you want cited. Narrow the rule if they do
Blocked by headerAn X-Robots-Tag header names an AI search botFind where it is set in the server, CDN or plugin and remove it
Opt-out header or tagnoai or similar is set in a header or meta tagRemove it where it is set if it was not on purpose
Crawler answers differentlyThe bot gets an error, a redirect or less content than a visitorAllow the bot in the firewall or CDN, using the published IP ranges

Here is a robots.txt that keeps your site in AI search and opts out of training. It is the first case in our parser test.

User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

Whether to opt out of training is your call, and neither choice is wrong. Both companies document their search crawlers as separate bots from the training crawlers. Opting in means your content may be used to train models.

Anthropic's page adds that from 30 Oct 2026 it recognizes a machine-readable "no AI training" signal based on an IETF draft, and that rules naming ClaudeBot take priority over it. The page says the way it reads these settings may change.

Common mistakes

Check it worked

  1. Open /robots.txt and read the groups once more.
  2. Re-run the curl user agent test for each search bot you allowed and confirm 200, redirects 0.
  3. Check curl -sI for an x-robots-tag line and search the page source for name="robots".
  4. Wait about a day for OpenAI search to pick up a robots.txt change.
  5. If a redirect is involved, check that it is a single hop. Our guide on redirect chains and loops shows how.
  6. Re-run the Sitewalk audit.

What Sitewalk found on real sites

Counted on 23 Nov 2026, from the latest audit of each site.

Of 89 audited sites, using each site's latest audit since these checks went live on 4 Nov 2026:

The worry that sites shut AI search out by accident is not what these audits show: it was 1 site in 89. This is a small early-user group, a first look and not a survey.

Questions people ask

What is the difference between GPTBot and OAI-SearchBot?

GPTBot crawls content that may be used to train OpenAI's models. OAI-SearchBot surfaces sites in ChatGPT search. OpenAI says each setting is independent, so you can allow one and disallow the other.

Should I block AI crawlers?

It depends on what you want. If you want to appear in AI search answers, allow the search bots. If you do not want your content used for training, disallow the training bots. Many sites do both.

If I block GPTBot, will I disappear from ChatGPT?

OpenAI's page says OAI-SearchBot controls whether a site is shown in ChatGPT search answers, and that GPTBot is for training. Blocking GPTBot alone does not change search.

Does ChatGPT-User follow robots.txt?

OpenAI says that because a user starts those visits, robots.txt rules may not apply. Perplexity says the same about Perplexity-User. Use the search bot rules to manage search and automatic crawling.

Does blocking Google-Extended affect my Google rankings?

Google's documentation says Google-Extended does not impact inclusion in Google Search and is not a ranking signal.

How do I know if my firewall blocks AI crawlers?

Send a request with the crawler's user agent using curl -A and look for 200. If you get a 403, a 429 or a redirect, a rule at your host or CDN is acting on the user agent. A test by user agent cannot prove an IP-based rule.

Check your whole site in one sentence

Sitewalk reads your robots.txt, your headers and how your site answers the search crawler, along with 200+ other technical checks. In ChatGPT, say:

Audit example.com for technical SEO problems

Get started

If you also want to give AI tools a short guide to your best pages, see our guide on llms.txt.

Checked on 23 Nov 2026. Sources, all read on 23 Nov 2026: OpenAI crawlers, Anthropic crawler article, Perplexity crawlers, Google common crawlers, Google robots.txt introduction, Google robots meta tag and X-Robots-Tag. Counts are from 89 audited sites, each site's latest audit since the checks went live on 4 Nov 2026, counted on 23 Nov 2026: a small early-user group, a first look and not a survey.

More guides

All guides