// Technical Reference · 12 Min Read

The Complete robots.txt Guide for AI Crawlers

A comprehensive breakdown of all 12 major AI search and training bots: who owns them, what they do, and how to safely allow citation traffic while preventing unlicensed model scraping.

Published: 2026-08-26 • Author: CiteDo Research • Category: Search Protocols & AI Bots

In 2026, the web crawler landscape is no longer just Googlebot and Bingbot. Over a dozen distinct AI user-agents actively crawl the web. Some exist to provide real-time search citations (driving high-intent buyer traffic), while others scrape training datasets for foundational models.

Understanding the exact function of each user-agent is critical: a single misplaced Disallow: / can completely wipe out your presence in ChatGPT Search, Perplexity, and Apple Intelligence.

Visual AI Robots.txt Builder

Select from 12+ bots with one-click presets and copy the generated rules.

Open Generator (Free) →

AI Crawlers & Control Tokens (2026 Breakdown)

User-Agent Owner Primary Purpose Recommendation
OAI-SearchBot OpenAI ChatGPT Search indexing & citations ALLOW
ChatGPT-User OpenAI User-initiated fetches (ChatGPT, Custom GPTs, GPT Actions) ALLOW
GPTBot OpenAI OpenAI foundation-model training crawler (OpenAI may reuse one crawl for search when both bots are allowed) ALLOW (CiteDo default allows for coverage; strict no-training sites may Disallow while keeping OAI-SearchBot/ChatGPT-User allowed)
PerplexityBot Perplexity Live AI search citations ALLOW
Perplexity-User Perplexity User-initiated fetches; generally ignores robots.txt ALLOW (informational)
Claude-SearchBot Anthropic Claude search indexing ALLOW
Claude-User Anthropic User-initiated fetches in Claude ALLOW
Claude-Web Anthropic Deprecated token (replaced by Claude-SearchBot/Claude-User); rules naming it no longer match current Anthropic traffic. LEGACY
ClaudeBot Anthropic Anthropic Claude model training ALLOW (CiteDo default allows for coverage; strict no-training sites may Disallow while keeping Claude-SearchBot/Claude-User allowed)
Applebot-Extended Apple Control token: opt-out of Apple foundation-model training; does not crawl, search unaffected ALLOW
Google-Extended Google Gemini training + grounding control token (does not affect Google Search) OPTIONAL
Meta-ExternalAgent Meta Llama & Meta AI data scraping OPTIONAL
CCBot Common Crawl Open web dump (high bandwidth scraper) DISALLOW
Bytespider ByteDance Aggressive scraper for Doubao LLMs DISALLOW

Three Jobs, Not Two: Search vs Training vs User-Fetch

Most 2024-era guides split bots into "search" and "training." The vendor docs now describe three distinct jobs, and the distinction decides whether blocking a bot costs you citations:

Two entries in the table are not crawlers at all: Google-Extended and Applebot-Extended are control tokens. Google and Apple keep crawling with their normal bots, then check these tokens before using your content for AI. You will never see them in access logs as user-agents.

Per-Vendor Nuances That Change Your Rules

OpenAI. OAI-SearchBot, ChatGPT-User and GPTBot have independent settings; OpenAI may reuse one crawl for both search and training when both are allowed, and notes ~24 hours for robots.txt changes to propagate. OAI-AdsBot only visits pages submitted as ChatGPT ads. Published IPs: openai.com/searchbot.json, gptbot.json, chatgpt-user.json.

Anthropic. The current lineup is ClaudeBot (training), Claude-SearchBot (search index) and Claude-User (user fetch). Claude-Web and anthropic-ai are deprecated tokens — rules naming them do nothing to current traffic. All three bots honor robots.txt and Crawl-delay, and Anthropic states they will not bypass CAPTCHAs. A rule naming ClaudeBot takes priority over your wildcard group. IPs: claude.com/crawling/bots.json.

Perplexity. PerplexityBot is retrieval-only ("not used to crawl content for AI foundation models"); Perplexity-User serves live user questions and generally ignores robots.txt. Perplexity's docs recommend matching UA and published IP ranges in firewall rules: perplexity.ai/perplexitybot.json, perplexity-user.json.

Google. Google-Extended controls whether crawled content may train Gemini models and be used for grounding in Gemini Apps and Vertex AI — it never affects Google Search inclusion or ranking. Meanwhile Googlebot itself powers AI Overviews and AI Mode, so it must stay allowed; Google's AI-features docs add no extra technical requirements beyond normal Search eligibility.

Apple. Applebot crawls for Apple search experiences; Applebot-Extended is the opt-out token for Apple foundation-model training. Apple states pages disallowing Applebot-Extended can still appear in search results.

Meta. meta-externalagent trains/indexes; meta-webindexer improves Meta AI search and, per Meta, helps it "cite and link to your content"; meta-externalfetcher (user-requested) may bypass robots.txt. Don't confuse any of these with facebookexternalhit, which builds link previews.

Amazon. Amazonbot may train Amazon AI models; Amzn-SearchBot governs Alexa search eligibility; Amzn-User fetches for live queries. Amazon's crawlers may use a cached robots.txt up to 30 days old and do not support Crawl-delay — changes can lag.

Common Crawl & ByteDance. CCBot builds the open Common Crawl dump that many labs train on; disallowing it is the standard training opt-out. Bytespider has no first-party compliance documentation — treat it as a bulk scraper and disallow by default.

How robots.txt Matching Actually Works (RFC 9309)

The Robots Exclusion Protocol is now an IETF standard, and two rules explain most "my Allow line is ignored" bugs:

  1. Group selection: a crawler uses the most specific group whose User-agent line names its token; only if no group names it does it fall back to User-agent: *. Groups are not merged. This is why a dedicated User-agent: PerplexityBot / Allow: / group exempts that bot from every Disallow in your wildcard group — the mechanism behind the Shopify variant-discovery fix.
  2. Rule precedence: within the selected group, the longest matching path rule wins (Allow and Disallow compete by specificity, not order); * wildcards and $ end-anchors are supported. The Sitemap: line is global and belongs at the end.

Your robots.txt May Not Be the One Crawlers See

If your domain is on Cloudflare, check for Bot Preference Sync: when any AI policy (Search / Agent / Training) is set to Block, Block-on-ads, or Disallow, Cloudflare prepends managed directives and a Content Signals Policy to your robots.txt — merged with your origin file, live within seconds. Look for the # BEGIN Cloudflare Bot Preference Sync marker in the fetched file, not the one in your repo. Training set to Disallow also edge-blocks training crawlers (mixed-purpose crawlers are excluded from that edge block). And remember robots.txt is advisory: enforcement lives in your WAF/bot settings — see the Cloudflare WAF guide.

Verify Per Bot, Then Re-Verify After Every Change

Fetch /robots.txt and one content page with each bot's documented UA; expect 200 and full content. Because UA strings are spoofable, confirm real bot traffic against the published IP lists above before allowlisting anything. The 12-bot crawlability check automates the matrix, and the AI robots.txt generator builds the policy visually. Re-check on a schedule: OpenAI adjusts within ~24 hours, Amazon may cache for 30 days, and theme/plugin/CDN changes silently regress rules.

The Recommended 2026 robots.txt Template

This rule set maximizes citations in ChatGPT Search, Perplexity, and Apple Intelligence while blocking heavy background scrapers and protecting admin routes:

# ========================================================
# Production AI Search robots.txt Specification
# ========================================================

User-agent: *
Disallow: /admin/
Disallow: /checkout/
Disallow: /cart/
Disallow: /private/
Allow: /

# --- Allow AI Search & Citation Engines ---
User-agent: GPTBot
Allow: /

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: Applebot-Extended
Allow: /

# --- Disallow Heavy Training / Bulk Scrapers ---
User-agent: CCBot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: Amazonbot
Disallow: /

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

Next.js 14/15 App Router Implementation (app/robots.ts)

For teams building with Next.js App Router, generate valid crawler directives dynamically with Next.js typed MetadataRoute.Robots:

import { MetadataRoute } from 'next';

export default function robots(): MetadataRoute.Robots {
  const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://yoursite.com';

  return {
    rules: [
      {
        userAgent: '*',
        allow: '/',
        disallow: ['/api/', '/admin/'],
      },
      {
        userAgent: ['GPTBot', 'OAI-SearchBot', 'PerplexityBot', 'ClaudeBot', 'Applebot-Extended'],
        allow: '/',
      },
      {
        userAgent: ['CCBot', 'Bytespider'],
        disallow: '/',
      },
    ],
    sitemap: `${baseUrl}/sitemap.xml`,
  };
}

Test Your Current robots.txt Configuration Live

Verify if your live server is correctly serving these directives to all 12 bots without firewall interference.