AEO & GEO·8 min read·November 2026

AI Crawlers and robots.txt: Which Bots to Allow, Which to Block

Blocking 'AI bots' sounds like one decision. It's at least three: training, search and user-requested fetches. Block the wrong one and you vanish from AI answers. Here's what each OpenAI and Anthropic bot actually does.

AI companies run several different crawlers, and each does a different job: collecting training data, building a search index, or fetching a page because a person just asked. Treating them as one thing leads to the most common mistake, which is blocking everything with "AI" in the name and then wondering why the business never shows up in ChatGPT or Claude answers.

This sits alongside our AEO and GEO work: before any content effort matters, the right crawlers have to be able to reach the site.

Key takeaways

  • Training, search and user-triggered bots are separate, and you can allow one and block another.
  • Blocking OpenAI's OAI-SearchBot removes your site from ChatGPT's search answers. Blocking GPTBot only affects training.
  • Anthropic works the same way: ClaudeBot (training), Claude-SearchBot (search indexing) and Claude-User (user requests).
  • ChatGPT-User may ignore robots.txt, because OpenAI says user-initiated actions aren't governed by it.
  • The most common real-world problem isn't robots.txt at all. It's a firewall or bot-protection rule returning 403 errors to legitimate crawlers.

OpenAI's bots

OpenAI documents its crawlers on its developer site. As of this writing there are four:

Bot What it does What blocking it does
OAI-SearchBot Finds and surfaces sites in ChatGPT's search features Your site stops appearing in ChatGPT search answers
GPTBot Collects content that may be used to train OpenAI's models Your content is excluded from training; search is unaffected
ChatGPT-User Fetches a page when a user or a custom GPT action asks it to See below: robots.txt may not apply
OAI-AdsBot Checks landing pages that are submitted as ads in ChatGPT Your ad landing pages can't be validated

OpenAI says the settings are independent: you can allow OAI-SearchBot to appear in search while disallowing GPTBot. It also says robots.txt changes can take around 24 hours to take effect for search.

Two details are easy to miss. First, in a December 2025 documentation update OpenAI changed its wording so that robots.txt rules are described as applying to OAI-SearchBot and GPTBot only. For ChatGPT-User it now says that because actions are initiated by a user, robots.txt rules may not apply. Second, OAI-AdsBot was added to the documentation in April 2026. If you plan to advertise in ChatGPT, OpenAI's advertiser guidance says you must allow it.

Source: OpenAI crawler documentation.

Anthropic's bots

Anthropic lists three, and says each respects robots.txt:

  • ClaudeBot collects public web content that may be used to train its models. Restricting it signals your future content should be left out of training sets.
  • Claude-User fetches a page when a Claude user's question needs it. Blocking it can reduce your visibility in user-directed search.
  • Claude-SearchBot crawls content to improve the quality of search results. Anthropic warns that blocking it may reduce your visibility and accuracy in search answers.

Anthropic also supports the non-standard Crawl-delay directive if a bot is hitting your server too hard, and says that if your robots.txt names ClaudeBot specifically, that rule wins over a general setting. In its documentation it notes that from 30 October 2026 it also recognises a draft machine-readable AI-preference signal being developed at the IETF, and that how such signals are read may change as the standard evolves.

Source: Anthropic: Block or limit Anthropic's bots.

Which should you allow?

There's no single right answer, but here's how we think about it for service businesses and agencies, who want to be found:

Allow the search and user-request bots. OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot and the Google and Bing crawlers decide whether you can be surfaced and cited. Blocking them is blocking a channel.

Training bots are a business decision. GPTBot, ClaudeBot, Google-Extended and similar crawlers only affect model training. A publisher whose product is its content may reasonably block them. A local business whose goal is to be recommended by name may reasonably allow them, since being in the training data is one way a brand becomes familiar to a model. Neither choice is wrong. Make it on purpose.

Our own robots.txt allows all of them and says so in the file comments, so the decision is visible to whoever edits it later.

A starting robots.txt

This explicitly allows the search and user bots and leaves training open. Change the training lines if you decide differently:

User-agent: *
Allow: /
Disallow: /api/
Disallow: /admin/

User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: PerplexityBot
Allow: /

# Training crawlers - change to Disallow: / to opt out
User-agent: GPTBot
Allow: /

User-agent: ClaudeBot
Allow: /

Sitemap: https://www.example.com/sitemap.xml

Don't block your CSS and JavaScript folders. Crawlers that render pages need them, and blocking them makes the page look broken to the bot.

The problem robots.txt doesn't show you

OpenAI's own help page for advertisers notes that firewalls and bot-protection systems can mistakenly block legitimate crawlers and often return 403 Forbidden errors, because the traffic can look automated. Your robots.txt can say "allow" and the bot still never gets a page.

Check this in three places:

  1. Your CDN or firewall. Cloudflare, Sucuri, Wordfence and similar tools have bot-fighting modes. Look for rules that challenge or block unknown user agents, and check whether they let the published IP ranges through. OpenAI and Anthropic publish theirs.
  2. Your server logs. Search for OAI-SearchBot, GPTBot, ClaudeBot and Claude-SearchBot. If they appear with 200 responses, you're fine. If you see 403s, that's your problem.
  3. A plain test. Fetch a page with a crawler user-agent string using curl and see what comes back.

What it won't do

Allowing a crawler gets you in the room. It doesn't make an AI tool cite you. For that, the pages still have to be useful and the business still has to have signals elsewhere, like reviews and mentions. See how to rank in AI search and, for the honest view of one popular file, does llms.txt work?.

Frequently asked questions

If I block GPTBot, will I disappear from ChatGPT?

No. GPTBot is for training. Appearing in ChatGPT's search answers depends on OAI-SearchBot, which is separate.

Does ChatGPT-User obey robots.txt?

OpenAI's current documentation says that because these requests are initiated by a user, robots.txt rules may not apply. Don't rely on robots.txt to keep it out.

Can I allow Google but block AI training?

Yes. Google-Extended is a separate token that controls use of your content for Google's generative AI training, and it doesn't affect Google Search ranking. Blocking it doesn't remove you from search.

How do I know which AI bots are visiting?

Check your server or CDN logs for the user-agent names above. Some analytics tools don't record bot traffic at all, so GA4 won't show it.

Should a small business bother with any of this?

Spend ten minutes: check that your robots.txt doesn't block the search bots and that your firewall isn't returning 403s to them. Then move on to things that bring in leads.


Not sure whether AI tools can reach your site? We check crawler access, robots.txt and firewall rules as part of a free strategy call.

Book a free strategy call · Our AEO service · Our GEO service · AI visibility audit

robots.txtGPTBotOAI-SearchBotClaudeBotAI SearchTechnical SEO