Managing ClaudeBot and anthropic-ai Access in robots.txt
Anthropic uses ClaudeBot (and legacy anthropic-ai) to collect public web text for training Claude models. If you want to prevent bulk training scrapes or reduce automated crawl bandwidth without touching Google or Bing SEO, explicitly disallow both user-agents in your root robots.txt.
Block Anthropic Training Crawlers
User-agent: ClaudeBot Disallow: / User-agent: anthropic-ai Disallow: /
Alternative: Curated Indexing via /llms.txt
If you prefer Claude and coding agents to read only your canonical documentation instead of crawling thousands of archive or tag pages, pair selective robots.txt exclusions with a concise /llms.txt file under 4,000 tokens.