Back to blog
AI Bots Checker6 min readNovember 4, 2026

GPTBot and ClaudeBot in robots.txt: Which to Block

What each AI bot does according to its company, how to allow search bots and block training bots, and why an allowed bot may still not get in.


Blocking "AI" in robots.txt is not one decision. Each company splits its bots by function, and mixing them up has a concrete cost: block a search bot thinking you are only stopping training, and you can drop out of that search product's answers.

What each AI bot does

This table reflects what each company documents on its official pages, reviewed in November 2026:

BotCompanyFunction
OAI-SearchBotOpenAISearch in ChatGPT
GPTBotOpenAIModel training
ChatGPT-UserOpenAIVisits started by a user
Claude-SearchBotAnthropicSearch result quality
ClaudeBotAnthropicModel training
Claude-UserAnthropicVisits started by a user
PerplexityBotPerplexitySearch results; does not train models
Perplexity-UserPerplexityVisits started by a user
Google-ExtendedGoogleControl over use in Gemini; no crawler of its own
ApplebotAppleSearch in Spotlight, Siri and Safari
Applebot-ExtendedAppleControl over training; does not crawl pages
CCBotCommon CrawlOpen repository of web data

How to allow search and block training

This is the setup most people are after. OpenAI states outright that each setting is independent, and gives this very case as its example: allow OAI-SearchBot to appear in its search while blocking GPTBot.

text
# Search bots: allowed
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /

# Model training: blocked
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /

A bot with its own group ignores the "User-agent: *" group. Add a group for GPTBot and the asterisk rules stop applying to GPTBot, so repeat in its group everything you need.

What blocking does not change

  • •Google-Extended does not affect your presence in Google Search. Google states that it has no effect on inclusion and is not a ranking signal.
  • •Applebot-Extended does not remove your pages from Apple results either. That would take blocking Applebot.
  • •Blocking Claude-SearchBot or Claude-User can reduce your visibility in Claude, according to Anthropic.
  • •Bots started by a user may not listen. OpenAI warns that robots.txt may not apply to ChatGPT-User, and Perplexity that Perplexity-User generally ignores it.

Why an allowed bot may still not get in

robots.txt is an instruction the bot chooses to follow, not a barrier. The real barrier usually sits in another layer: a firewall or CDN can reject the request before it reaches your site, even though robots.txt allows it. The symptom is a 403 for that user agent and a normal response for a browser.

The reverse holds too: a spoofed request getting a 403 does not prove the real bot gets one, because some firewalls only let through the bot verified by IP. Common Crawl warns that crawlers exist which pose as CCBot. The final confirmation is in your server logs.

Check it on your site

After changing robots.txt, review bot by bot which rule applies to each and whether the server responds normally. A group mistake raises no warning: the file stays valid and simply does something else.

Try the tool for free

Analyze your URLs with AI Bots Checker by iRankly. No sign-up, no credit card.

Use tool for free

Letting the bots in is the first step. Next comes getting cited:


Try the tool for free

Analyze your URLs with AI Bots Checker by iRankly. No sign-up, no credit card.

Use tool for free