STARFLEET

Astrometrics Station // REGISTRY NCC-82104

Deep Space Autonomous Bot Observatory
SENSOR GRID ACTIVE
SUBSPACE 47.2 GHz // QUADRANT SWEEP
STARDATE: 78186.8
⚠ RED ALERT // 3 INTRUDER INCURSION(S) CONTAINED IN CHRONITON TARPIT DEFCON-1 →
SYS-47
DECK 08
ASTRO-GRID

How to block AI crawlers

There are three kinds of AI bot, and blocking each one costs you something different.

1. Training crawlers

They collect pages that may be used to train AI models. Blocking them costs you nothing in search results.

GPTBot, ClaudeBot, Meta-ExternalAgent, FacebookBot, Bytespider, CCBot, cohere-ai, AI2Bot, Diffbot, ImagesiftBot, Timpibot, omgilibot

2. AI search crawlers

They index pages so assistants can cite them. Blocking them can remove you from assistant answers and the visits those citations send.

OAI-SearchBot, Claude-SearchBot, PerplexityBot, Amazonbot, YouBot, DuckAssistBot, AzureAI-SearchBot

3. User-triggered fetchers

They fetch one page because a person asked an assistant about it. Some operators say robots.txt may not apply.

ChatGPT-User, Claude-User, Perplexity-User, Meta-ExternalFetcher, Google-CloudVertexBot, MistralAI-User

Google-Extended and Applebot-Extended are not crawlers: they are robots.txt tokens that opt pages out of AI training while normal search crawling continues. A server rule cannot block them.

Ready-made rules

Keep AI training out, stay in search and AI answers

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: FacebookBot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: cohere-ai
Disallow: /

User-agent: AI2Bot
Disallow: /

User-agent: Diffbot
Disallow: /

User-agent: ImagesiftBot
Disallow: /

User-agent: Timpibot
Disallow: /

User-agent: omgilibot
Disallow: /

Keep all AI out

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Claude-SearchBot
Disallow: /

User-agent: Claude-User
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Perplexity-User
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: Meta-ExternalFetcher
Disallow: /

User-agent: FacebookBot
Disallow: /

User-agent: Amazonbot
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: Google-CloudVertexBot
Disallow: /

User-agent: cohere-ai
Disallow: /

User-agent: AI2Bot
Disallow: /

User-agent: Diffbot
Disallow: /

User-agent: ImagesiftBot
Disallow: /

User-agent: YouBot
Disallow: /

User-agent: DuckAssistBot
Disallow: /

User-agent: MistralAI-User
Disallow: /

User-agent: Timpibot
Disallow: /

User-agent: omgilibot
Disallow: /

User-agent: AzureAI-SearchBot
Disallow: /

Keep AI out of part of the site

User-agent: GPTBot
Allow: /
Disallow: /members/

User-agent: ClaudeBot
Allow: /
Disallow: /members/

User-agent: CCBot
Allow: /
Disallow: /members/

Or build your own with the robots.txt generator.

Bots that ignore robots.txt

  • Refuse them at the server (nginx below; Apache, Caddy and Cloudflare rules are on the Defense Matrix).
  • Pair server rules with rate limiting: User-Agents are trivial to fake.
  • Check your logs: well-behaved bots fetch robots.txt and stop within about a day.
  • Watch for impostors: real crawlers come from their operator's network; see the Trap Room.
  • Blocking is not retroactive: it applies from the next visit and does not remove pages already collected.
# http {} block
map $http_user_agent $blocked_agent {
    default 0;
    "~*(GPTBot|OAI\-SearchBot|ChatGPT\-User|ClaudeBot|Claude\-SearchBot|Claude\-User|PerplexityBot|Perplexity\-User|Meta\-ExternalAgent|Meta\-ExternalFetcher|FacebookBot|Amazonbot|Bytespider|CCBot|Google\-CloudVertexBot|cohere\-ai|AI2Bot|Diffbot|ImagesiftBot|YouBot|DuckAssistBot|MistralAI\-User|Timpibot|omgilibot|AzureAI\-SearchBot)" 1;
}

# server {} block
if ($blocked_agent) { return 403; }