Academy / GEO · AI

GEO · AI

How to allow AI crawlers in robots.txt

By Fernando BalcázarReviewed on 8 min read

The essentials

  • Each AI company uses different bots to search and to train. Blocking one does not block the other.
  • If you block OAI-SearchBot, ChatGPT cannot show or cite your site when it searches.
  • You can opt out of training without disappearing from answers.
  • AI Overviews and AI Mode use Googlebot: block it and you disappear from Google altogether.

The bots that matter

This table separates the bots that feed search-backed answers from the ones that collect data to train models. It is the distinction people mix up the most.

BotCompanyWhat forIf you block it
OAI-SearchBotOpenAIChatGPT searchChatGPT does not show or cite you when searching
GPTBotOpenAIModel trainingYour content is not used for training; search is unchanged
Claude-SearchBotAnthropicClaude searchClaude does not use you as a source when searching
ClaudeBotAnthropicModel trainingYour content is not used for training
PerplexityBotPerplexityPerplexity’s search indexPerplexity stops listing you among its sources
GooglebotGoogleSearch, AI Overviews and AI ModeYou disappear from Google entirely
Google-ExtendedGoogleUse in Gemini; not a separate botNo effect on Google Search or AI Overviews

Two more are worth knowing: Claude-User, which reads the pages a Claude user asks it to look at, and Applebot-Extended, which Apple uses for training and which you can block without leaving its search. The SEO Army auditor checks the four that decide whether you show up in search-backed answers: Googlebot, OAI-SearchBot, PerplexityBot and Claude-SearchBot.

How to check your robots.txt

  1. Open yoursite.com/robots.txt in the browser.
  2. Look for User-agent groups naming each bot, and for the User-agent: * group, which applies to every bot without a group of its own.
  3. A Disallow: / in a bot’s group keeps it out of the whole site.
  4. If a bot has its own group, it ignores the * group: it only follows the rules in its own.

Check your CDN too

This is what almost nobody checks. Cloudflare and other CDNs have “Block AI bots” style options that answer 403 to AI bots at the edge, whatever your robots.txt says.

  • On Cloudflare, check Security → Bots and AI Crawl Control, and allow the search bots you want.
  • Make sure the feature that manages robots.txt is not overwriting your file.
  • A CDN block does not show up in robots.txt, so a robots.txt check cannot see it either: confirm it in the CDN’s security event log, which shows which bots got a 403.

The recommended setup

If you want to show up in answers without handing over your content for training, start here. Adjust the private paths to your site.

robots.txt · ready to copy
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /

User-agent: GPTBot
User-agent: ClaudeBot
Disallow: /

User-agent: *
Disallow: /admin/

If you do not mind training, there is no need to name anyone: without groups of their own, every bot follows the User-agent: * rules.

Check it

See which AI bots can read your page

Common mistakes

  • **Blocking everything with User-agent: *** and forgetting it includes AI search bots without a group of their own.
  • Thinking that blocking GPTBot takes you out of ChatGPT. Search uses OAI-SearchBot.
  • Blocking at the firewall or CDN even though robots.txt allows it. Check your provider’s bot rules too: robots.txt cannot see them.
  • A robots.txt that returns an error. If the server gives a 5xx, bots treat the site as blocked.

Toolrobots.txt, sitemap and hreflang tester →