Blog/SEO Guides
SEO Guides· 8 min read·

robots.txt for GPTBot, ClaudeBot and PerplexityBot: Block or Allow?

Complete technical guide on configuring robots.txt for AI crawlers. 41% of B2B sites block AI bots without realizing it, losing up to 34% of their potential citations in ChatGPT and Perplexity.

robots.txt for GPTBot, ClaudeBot and PerplexityBot: Block or Allow?

There is a technical mistake that 41% of B2B websites make without knowing it: they block AI crawlers in their robots.txt. The result is invisible but devastating — each blocked bot reduces by 18% to 34% the potential citations that model could make about your brand. If you have a GEO strategy but your robots.txt blocks GPTBot, ClaudeBot or PerplexityBot, you are building on sand.

The AI Crawlers You Need to Know in 2026

Each AI provider has multiple crawlers with distinct functions. Understanding the difference between them is essential for deciding what to allow and what to block:

  • OpenAI — GPTBot: Training crawler. Extracts content for GPT-4 and future model training datasets. If you block it, your content doesn't enter ChatGPT's training corpus.
  • OpenAI — OAI-SearchBot / ChatGPT-User: Real-time search crawlers. These are what ChatGPT uses when it searches the web for current answers. Blocking them eliminates your eligibility to be cited in real time.
  • Anthropic — ClaudeBot: Claude training crawler. If you block it, your content doesn't enter Anthropic's models.
  • Anthropic — Claude-SearchBot / anthropic-ai: Real-time search crawlers for Claude with web tools.
  • Perplexity — PerplexityBot: Perplexity's main crawler. It uses it to index content and cite it in real-time responses. Blocking it removes you completely from Perplexity.
  • Google — Google-Extended: Specific crawler for Gemini and Bard. Independent of Googlebot. Blocking it prevents your content from feeding Google AI Overviews and Gemini.
  • Common Crawl — CCBot: Not directly from an AI provider, but its datasets are used by many open-source LLMs. Has no real-time search functionality.

The Optimal Stance: "Allow Search, Block Training"

In 2026, the consensus among companies with mature GEO strategies is the "block training, allow search" stance: block pure training crawlers (which use your content to train models without giving you immediate visibility) and allow real-time search crawlers (which do generate citations and direct visibility).

This stance gives you control over how your content is used for training while maximizing your eligibility to be cited in real-time responses from ChatGPT, Perplexity and Claude.

🚀 Digital PR & Link Building

Rank #1 on Google and Get Mentioned by AI

1,200+ media outlets in 8 countries. Backlinks that Google and ChatGPT recognize as trusted authority sources.

See plans and pricing →

Recommended robots.txt Configuration

# Allow real-time search crawlers (generate citations)
User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: anthropic-ai
Allow: /

User-agent: Google-Extended
Allow: /

# Block pure training crawlers (optional)
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: CCBot
Disallow: /

Important note: If you prefer to maximize impact on future model training (which also generates long-term visibility), you can allow all crawlers. The decision depends on whether you prioritize immediate impact (real-time search) or long-term impact (training).

link building strategy

How to Verify Your Current Configuration

  1. Visit yourdomain.com/robots.txt directly in your browser.
  2. Look for generic rules like User-agent: * followed by Disallow: / — these block ALL bots including AI ones.
  3. Verify that PerplexityBot, GPTBot or Google-Extended are not blocked unintentionally.
  4. Use Google Search Console's robots.txt testing tool to verify which URLs each bot can crawl.

The Cloudflare and CDN Problem

A frequent mistake is that Cloudflare configuration blocks AI bots at the WAF level before they even reach your robots.txt. Cloudflare has a "Bot Fight Mode" feature that blocks unverified bots — and some AI crawlers fall into that category. Check in your Cloudflare dashboard that known AI bots are not being blocked by firewall rules before reaching your content.

backlinks quality

Crawlers That Ignore robots.txt

Some crawlers have been documented ignoring robots.txt directives. In these cases, the only real defense is at the server or WAF level. However, for major providers (OpenAI, Anthropic, Google, Perplexity), compliance with robots.txt is generally respected.

Impact on Your GEO Strategy

A correct robots.txt configuration for AI bots is the most basic technical prerequisite of any GEO strategy. There is no point investing in high-quality link building and Digital PR if Perplexity or ChatGPT crawlers cannot access your content to cite it. Audit your robots.txt today before any other GEO action.

Complement this configuration with well-implemented Schema.org and answer-ready content to maximize what AI crawlers find when they do have access.

Esbuenisimo Links includes technical GEO auditing — including robots.txt configuration for AI crawlers — in its consulting services, ensuring no technical block prevents ChatGPT, Perplexity and Google AI Overviews from indexing and citing your content.

Frequently Asked Questions

Which AI crawlers should I allow in my robots.txt for GEO?+

The main AI crawlers to allow are: GPTBot (OpenAI/ChatGPT), Google-Extended (Gemini and AI Overviews), PerplexityBot (Perplexity), ClaudeBot (Anthropic/Claude), Applebot-Extended (Apple AI features), and Meta-ExternalAgent (Meta AI). A permissive default configuration — allowing all crawlers unless you have a specific reason to block — is the safest GEO baseline. Blocking any of these eliminates citation eligibility in that platform entirely.

What happens if I block GPTBot or ClaudeBot in my robots.txt?+

If you block GPTBot, your content becomes ineligible for citations in ChatGPT real-time browsing and may be excluded from future training data updates. Blocking ClaudeBot affects citations in Claude's real-time tools. The impact on existing training data is limited (past crawls already occurred), but new content you publish will never be indexed by blocked crawlers. Studies show 41% of B2B sites block at least one major AI crawler inadvertently, losing up to 34% of potential citations.

Should I block AI crawlers to protect my content from being used in training?+

This is a legitimate strategic choice, but it has direct GEO costs. Blocking training crawlers (GPTBot, ClaudeBot) means your content won't influence future model behavior — but it also won't be cited in AI responses. For most B2B brands, the GEO visibility benefit of allowing crawlers outweighs training data concerns. If you have proprietary research or sensitive content, block selectively by directory (block /internal/ but allow /blog/) rather than blocking the entire domain.

How do I verify that AI crawlers can actually access my content?+

Use Google Search Console's URL Inspection tool to verify Google-Extended access. For other crawlers, use the robots.txt testing tools available in Cloudflare, Semrush, or Screaming Frog — input the specific user-agent (e.g., 'GPTBot') and the URL to test. Also check server-level blocks: Cloudflare's Bot Fight Mode and some WAF rules block AI crawlers at the server level before robots.txt is even checked. Run a full technical GEO audit covering both robots.txt and server-side firewall rules.

Can Cloudflare or other security tools block AI crawlers even if my robots.txt allows them?+

Yes — this is one of the most common GEO technical issues. Cloudflare's Bot Fight Mode, Super Bot Fight Mode, and custom WAF rules can block AI crawler user-agents at the network level regardless of what your robots.txt says. Other CDNs and security tools have similar features. The solution is to whitelist known AI crawler IP ranges or user-agents in your firewall rules. Perplexity publishes its crawler IPs; Google-Extended follows Googlebot IP documentation; OpenAI publishes GPTBot's IP ranges in their documentation.

robots.txt AIGPTBot blockClaudeBot robots.txtPerplexityBot configurationAI crawlers setup

Ready to rank #1 and get mentioned by AI?

Digital PR & Link Building in 1,200+ media outlets across 8 countries. Google and ChatGPT recognize you as an authority source.

See plans and pricing