AXRAY
Sign inCreate account

Coding agent

Should you block Claude-Code?

Claude-Code is operated by Anthropic. Reads documentation while a developer is building against you. Blocking it is how your API gets used wrong.

All 54 AI crawlers

What Claude-Code is

Anthropic runs it as a coding agent, which means it reads documentation while a developer is building something against your API, usually with the developer watching. What it cannot fetch, the developer gets as a guess from the model instead.

What blocking it costs you: A developer integrating with you cannot have the agent read your documentation, so it writes the integration from memory and gets your API wrong. A developer building against your API reads whatever they can get instead of your documentation, and integrates against a guess.

The user agent, and the token a rule matches on

These are two different strings and confusing them is why a rule that looks right does nothing. A robots.txt rule matches on the product token, case-insensitively, and ignores the rest of the user-agent header entirely.

robots.txt tokenClaude-Code
OperatorAnthropic
CategoryCoding agent
Full user agentNot published by Anthropic. Match on the token above.

Where an operator has not published the exact string, this page says so rather than inventing a plausible one. A user agent you can grep your logs for is worth nothing if it is a guess.

Allowing Claude-Code

Paste this into robots.txt at the root of your domain.

User-agent: Claude-Code
Allow: /

Sitemap: https://axray.online/sitemap.xml

An empty Disallow: and Allow: / mean the same thing to a crawler. What does not mean the same thing is having no rule at all: absence is permission by default, but it is permission nobody wrote down, and it survives only until somebody adds a blanket User-agent: * block without thinking about this crawler.

Blocking Claude-Code

User-agent: Claude-Code
Disallow: /

Before you paste that: a developer integrating with you cannot have the agent read your documentation, so it writes the integration from memory and gets your API wrong. That is the cost, and it is paid silently — no error appears in your logs, no report tells you, and the traffic you lose was traffic you never saw arrive.

Deciding one crawler at a time is how a robots.txt ends up refusing things nobody meant to refuse. The free robots.txt generator asks the question once per category instead — train on me, cite me, fetch on demand, shop on my behalf — and writes the whole file for all 54 crawlers, naming what each refusal costs before you copy it.

How the web actually treats Claude-Code

Measured on 2026-09-06, by reading the robots.txt of 292 public websites and resolving each one against this crawler specifically.

VerdictSitesShare
Blocked72%
Explicitly allowed23179%
No rule either way5418%

No site is named, here or anywhere else on this domain. The count is the useful part; a league table of businesses that never asked to be measured is not.

The row worth reading twice is the last one. 54 of 292 sites have written no rule about Claude-Code at all, which means their position on it is an accident rather than a decision — whatever their User-agent: * block happens to say.

What Claude-Code is not

Anthropic runs 3 other crawlers with different jobs, and this is where the expensive mistake happens. Somebody means “do not train on my content”, writes one rule against the operator’s name as they remember it, and blocks the crawler that would have sent them a customer instead.

CrawlerWhat it does instead
Claude-SearchBot it builds the index an assistant searches when somebody asks it a question. If your page is in that index you can be cited, quoted and linked in the answer. If it is not, you are not ranked lower — you are absent from the answer entirely, and no report anywhere will tell you so.
Claude-User it fetches one page at the moment a person asks an assistant to open it. There is no index and no schedule: somebody has pasted your link or asked for your site by name, and is waiting for the answer while the request happens.
ClaudeBot it collects text to train a model on. It sends nobody to your site, now or later, and it is the only category on this list where that is true.

Rules are matched per token. Blocking one of these says nothing about the others, which is the point: you can refuse training and keep every crawler that puts your link in front of a person.

Checking what your site does right now

Reading your own robots.txt is not the same as knowing what a crawler concludes from it. Precedence between a User-agent: * group and a named one, the longest-match rule between overlapping paths, and a token you spelled slightly wrong all produce a file that looks correct and behaves otherwise.

npx axray-cli your-site.com

The scan resolves your file against all 54 crawlers on this list individually and reports which ones are allowed, blocked, or covered by nothing. It is free, needs no account, and installs nothing.

Questions people ask about Claude-Code

What is Claude-Code?

Claude-Code is a coding agent operated by Anthropic: it reads documentation while a developer is building something against your API, usually with the developer watching. What it cannot fetch, the developer gets as a guess from the model instead.

Should I block Claude-Code in robots.txt?

Only if you are willing to pay what it costs. A developer integrating with you cannot have the agent read your documentation, so it writes the integration from memory and gets your API wrong. A developer building against your API reads whatever they can get instead of your documentation, and integrates against a guess.

What is the Claude-Code user agent string?

Anthropic does not publish a full user-agent string for this crawler. The robots.txt product token is Claude-Code, and that is what a rule matches on; matching is case-insensitive.

How do I check whether my site is blocking Claude-Code right now?

Scan your site with AXRAY. It resolves your robots.txt against 54 named AI crawlers individually rather than reporting one verdict for all of them, so it will tell you whether this specific crawler is allowed, blocked, or covered by no rule at all. It is free and needs no account.

Other coding agents

The full reference: all 54 AI crawlers, and who blocks each one.

See which of these 54 crawlers your own site is blocking, and what each one costs you. One scan, no account.