Coding agents

Claude-Code

Claude-Code is a bot operated by Anthropic that pulls documentation and examples while an AI writes code. Claude Code is an AI coding agent by Anthropic that can build, debug, and ship code directly from the terminal, handling tasks like codebase onboarding, multi-file edits,…. Whether it honours robots.txt is undocumented, and a request claiming to be Claude-Code can be checked against a published IP range file.

AnthropicIP rangesrobots.txt:No policy

Live check

Verify an IP that claimed to be Claude-Code

Paste the address from the log line. It is checked against what the operator publishes.

Reference

Claude-Code at a glance

Reference data for the Claude-Code crawler
User agentClaude-Code

Token only: match on the substring.

OperatorAnthropic
PurposeCoding agents
Respects robots.txtNo policy
Verification methodIP rangesPublished IP range file

Runs on a developer machine or CI runner, so the source IP is usually the developer, not Anthropic. The published prefix file will not match most of this traffic.

https://claude.com/crawling/bots.json

Crawl patternNot published
Robots.txt tokensClaude-Code
Operator documentationhttps://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler

Claude Code is an AI coding agent by Anthropic that can build, debug, and ship code directly from the terminal, handling tasks like codebase onboarding, multi-file edits,…

robots.txt

Allow or block Claude-Code

Paste one at the root of your domain. Rules are per token.

Block Claude-Code
User-agent: Claude-Code
Disallow: /
Allow Claude-Code
User-agent: Claude-Code
Allow: /
Allow, except the pages you never want quoted
User-agent: Claude-Code
Allow: /
Disallow: /account/
Disallow: /checkout/
Disallow: /search

Edit the Disallow paths to match your own URLs.

What blocking actually costs you

Blocking Claude-Code mainly affects developers reading your documentation through an AI tool. Most sites want that traffic.

Build a file for every crawler

FAQ

Claude-Code questions

What is Claude-Code?

Claude-Code is a bot operated by Anthropic that pulls documentation and examples while an AI writes code. Claude Code is an AI coding agent by Anthropic that can build, debug, and ship code directly from the terminal, handling tasks like codebase onboarding, multi-file edits,…. Whether it honours robots.txt is undocumented, and a request claiming to be Claude-Code can be checked against a published IP range file.

Does Claude-Code respect robots.txt?

Not documented. No operator statement says whether Claude-Code reads robots.txt, so add the rule but verify in your logs that the requests actually stop.

How do I verify a request really came from Claude-Code?

Runs on a developer machine or CI runner, so the source IP is usually the developer, not Anthropic. The published prefix file will not match most of this traffic. The reference is published at https://claude.com/crawling/bots.json.

How do I block Claude-Code?

Add the Claude-Code token to robots.txt with Disallow: /. If the crawler ignores robots.txt, match the user agent at your CDN or reverse proxy and return 403 there instead.

Will blocking Claude-Code hurt my search rankings?

Blocking Claude-Code mainly affects developers reading your documentation through an AI tool. Most sites want that traffic.

    Claude-Code (Anthropic): User Agent, IP Verification & robots.txt | IPScanner