How it works What we check Pricing
Guides
AEO GEO AI Search Visibility SEO Audit AI Citations llms.txt
Free tools
AI Visibility Check llms.txt Generator Robots Checker FAQ Schema
Learn
Blog Glossary FAQ AEO checklist About Sign in
Blog / robots.txt for AI crawlers

Are You Blocking AI Crawlers? robots.txt for GPTBot & More

By Peiyao Qiu · Founder, Pyratz Corp ·

Many sites accidentally block the AI search crawlers that create citations while trying to block AI training crawlers - or block everything with an overzealous WAF rule. The fix: allow OAI-SearchBot, PerplexityBot, and Claude-SearchBot (search/visibility) and decide separately about GPTBot, ClaudeBot, and Google-Extended (training). Each token is independent.

The critical distinction: search bots vs training bots

Blocking the wrong bot is the most common AEO mistake. Two categories:

Category Bots Blocking effect Search / visibility OAI-SearchBot, PerplexityBot, Claude-SearchBot, ChatGPT-User, Claude-User Removes you from AI answers & citations Training GPTBot, ClaudeBot, Google-Extended Excludes you from model training (not from live citations)

Per OpenAI's docs, these settings are independent. You can allow ChatGPT Search while opting out of training - or vice versa.

The official AI crawler tokens (2026)

Bot robots.txt token Operator Purpose GPTBot GPTBot OpenAI Model training OAI-SearchBot OAI-SearchBot OpenAI ChatGPT Search visibility ChatGPT-User ChatGPT-User OpenAI User-initiated fetches PerplexityBot PerplexityBot Perplexity Search/indexing ClaudeBot ClaudeBot Anthropic Model training Claude-SearchBot Claude-SearchBot Anthropic Search retrieval Claude-User Claude-User Anthropic User-initiated fetches Google-Extended Google-Extended Google Gemini training (not Search/AI Overviews)

You can look up any of these in the glossary if a token is unfamiliar.

How to do it (step by step)

Step 1 - Read your current robots.txt

Open https://yourdomain.com/robots.txt. Look for any User-agent: * with a broad Disallow: /, or explicit blocks of the tokens above. The robots.txt AI checker does this parse for you and flags stray blocks.

Step 2 - Decide your policy

Most businesses that want AEO visibility should allow all search agents. Training opt-out is a separate, optional choice (e.g. for IP-sensitive content).


User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: GPTBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Google-Extended
Allow: /

Sitemap: https://yourdomain.com/sitemap.xml

Step 4 - If you want to block training but keep visibility

User-agent: OAI-SearchBot
Allow: /

User-agent: GPTBot
Disallow: /

This keeps you citable in ChatGPT Search while excluding you from training.

Step 5 - Check your WAF / CDN

Cloudflare "bot fight mode," AWS WAF, or security plugins often block AI agents by user-agent or IP before robots.txt is even consulted. Allowlist the AI bots at that layer too. OpenAI publishes IP ranges at openai.com/searchbot.json and openai.com/gptbot.json for allowlisting.

Step 6 - Verify

Common mistakes

Once access is sorted, the next lever is being findable in answers - see how AI citations build. And to confirm the whole chain end to end, run a free audit of up to 50 pages: SEO AEO Specialist by MrChief reads your robots.txt, cross-checks your CDN/WAF, and tells you which AI engines can actually reach you.

FAQ

Does blocking GPTBot remove me from ChatGPT?

No. GPTBot is training-only. ChatGPT Search uses OAI-SearchBot. Blocking GPTBot keeps you out of training but keeps you eligible for citations if OAI-SearchBot is allowed. These two tokens are fully independent, so one decision never dictates the other.

Do AI crawlers actually respect robots.txt?

OpenAI, Anthropic, and Perplexity state they honor robots.txt for their crawlers. The exception is user-initiated fetches (ChatGPT-User, Claude-User), which may not apply robots.txt because a human triggered the request rather than an automated crawl.

Will allowing crawlers hurt my server or SEO?

Negligibly for most sites - these are standard crawl loads. There's no SEO penalty; if anything, being crawlable expands your AI visibility. If load is a concern, allowlist the bots at your CDN rather than blocking them outright.

What's the difference between Google-Extended and Googlebot?

Google-Extended controls Gemini training only. It does not affect Google Search or AI Overviews - those use Googlebot. Blocking Google-Extended won't remove you from AI Overviews, so keep the two tokens separate in your policy.

Should I block ClaudeBot but allow Claude-SearchBot?

That's a valid "no training, yes citations" stance: Disallow ClaudeBot, Allow Claude-SearchBot. Anthropic honors both tokens independently, so you can opt out of training while remaining retrievable in Claude's search-driven answers.

Free audit · €0

See where you stand

SEO AEO Specialist by MrChief runs a free AI-visibility audit and hands you the exact fixes. One-off report €9, unlimited €19/mo.

Run your free audit →