A customer asks Claude for a product like yours, and Claude either names your shop or it does not. The difference is usually technical, and for Claude it starts in the robots file, where three agents each need their own line. One collects content that may train future models. One indexes pages to improve search quality. One fetches a page because a person asked for it. Anthropic says all three honour robots.txt, including the user-initiated one, which is different from some other engines. This guide walks through the technical checklist for Claude, in the order a small team would actually do it.

Platform screens change. If a menu name here does not match what you see, check the vendor docs linked in Sources for the current path.

Most of this work is not writing. It is checking. You check a file, you check it on every subdomain, you check a page as raw text, and you check a log. The writing only happens when a check finds something wrong.

What this guide covers

This guide covers the full job in order. First, you decide what you want Anthropic to do with your content for training, and you write that decision down. Second, you open your robots file and name each Anthropic agent on its own line. Third, you set the same rules on every subdomain, because Anthropic says to do so. Fourth, you verify visits against the published IP list, and you use Crawl-delay if the crawl load is the problem. Fifth, you check the product facts on your pages, in words and in code, and in the raw text a bot reads. Sixth, you check the sitemap and the llms file, and you ask Claude the customer questions, wait a day, and ask again.

Anthropic publishes no formula for what Claude recommends, and this guide does not invent one. It covers only the technical ground your business controls.

Anthropic's crawler page lists three bots. It lists no crawler for Claude Code, a developer tool rather than the assistant that answers shoppers. This checklist covers the assistant, not the developer tool.

Who does each step

Marketer work is deciding the training question, writing the product facts in plain words, and asking Claude the customer questions and recording what it says. Developer work is editing robots.txt on every subdomain, verifying visits against the published IP list, putting the product facts into structured data, and fetching a page as raw text to confirm the facts are there before any JavaScript runs. If you are both people, decide the training question first, then change the file. A team that never decides will keep changing the file.

Step 1: decide the training question, and write it down

Before you touch a file, agree on one sentence: do you want your content used to train future Anthropic models, or not. Restricting ClaudeBot signals that your future materials should be excluded from training datasets. Allowing it does not. There is no right answer for every business, and the answer is a business decision, not a technical default. Write it down, because the robots file below has a separate line for it, and a team that never decided will keep changing the file.

Do not confuse this decision with search. Restricting the training bot does not block search. Allowing it does not buy search visibility. If you change the training line to fix a search problem, you have changed the wrong line.

Step 2: name each Anthropic agent in robots.txt, on its own line

Open the robots.txt file at the root of your site. It is a plain text file, and you can open it in a browser at your domain followed by /robots.txt. If nothing loads, create the file at the root. Then add a group for Claude-SearchBot, the bot that navigates the web to improve search result quality, and allow it. Anthropic says disabling it prevents its system from indexing your content for search, which may reduce your site's visibility and accuracy in user search results.

Then add a group for Claude-User, the agent that fetches a page when a person asks Claude a question that needs it, and allow it. Anthropic says disabling it prevents its system from retrieving your content in response to a user query, which may reduce your site's visibility for user-directed web search. Then add a group for ClaudeBot, the training bot, and set it to match the decision from step one. Disallow tells Anthropic that future materials should stay out of its training datasets. Allow means they may be used.

Do not hide any of them inside a wildcard group and hope the wildcard carries it. Name each token. If the file already has a group for any token that says the opposite, change that group. Never add a second group for the same token while the old one is still there.

Step 3: set the same rules on every subdomain

Repeat the file on every subdomain your business runs: the shop, the guide library, and any regional or staging subdomain that serves live content. Anthropic says to set the robots rules for every subdomain you wish to opt out from, and the same logic holds for the allow lines. A subdomain with no file at all is a subdomain with no stated preference, and a guide library that stays open while the shop is closed will give Claude half the story. Check each subdomain in a browser and confirm the groups load.

Step 4: verify by IP, and use Crawl-delay if the load is the problem

Check your server logs for requests that present themselves as ClaudeBot, Claude-SearchBot, or Claude-User, and confirm the source IP sits on Anthropic's published list at the bots.json address in Sources. A token in a log does not prove the request came from Anthropic, so check the IP. A run of genuine visits returning 200 on your key pages is the evidence that matters.

If the crawl load is the problem, Anthropic supports the non-standard Crawl-delay extension to robots.txt. Use it to slow the crawl, not to block it. Do not use IP blocking as the opt-out. Anthropic says blocking IP addresses may not work correctly or persistently guarantee an opt-out, because doing so impedes its ability to read your robots file. Keep the blocking in robots.txt, and use the IP list for verification, not for blocking.

Step 5: make the product facts true, in words, in code, and in raw text

Write the product facts once, in plain words: the name, the price, whether it is in stock, what shipping costs and how long it takes, and what happens if the customer returns it. Then put the same facts in the structured data on the page, so the price, the availability, and the shipping details match the visible text. Then fetch the raw text of a product page, with curl or view source, and confirm the price and the stock state are in it before any JavaScript runs. If they are not, the page needs the facts served as plain HTML, not loaded in the browser.

If the page copy says one price and the structured data says another, or the page says in stock and the checkout says gone, fix the routine that made them disagree, not just the one page. A price change should run through one record that updates the page, the structured data, and the feed in the same pass.

Step 6: check the sitemap and the llms file, ask the questions, and wait a day

Confirm the sitemap lists your product pages, your category pages, and your guides at their real addresses, and that robots.txt points at the sitemap. Confirm the llms file lists the pages that matter most, with a short note each. The llms file is a short index of links, and the proposal at llmstxt.org defines llms.txt only. It does not define llms-full.txt.

Then ask Claude the questions a customer would ask about your products, and note whether your business appears and which pages it cites. Anthropic publishes no fixed time for a robots.txt change to take effect, so a retest the same afternoon is not a verdict. Wait a day, ask again, and fix the gap the comparison shows. If Claude cites a competitor, compare the two sites: is the competitor open to Claude-SearchBot and Claude-User, on every subdomain, and are its product facts in the raw text. Fix the gap that the comparison shows.

Machine-readable version you can copy

This section gives you two copy-ready blocks, built only from fields and formats verified in the vendor docs linked in Sources. Replace the example addresses and values with your own.

First, a robots file that names each Anthropic agent on its own line. In the block below, the ClaudeBot group says no to training use. If you decided to allow training use, switch that group to Allow. The Crawl-delay line is only an example, not a recommendation. Anthropic supports the extension, and the number shown is a placeholder. Drop it if crawl load is not a problem.

code
User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: ClaudeBot
Disallow: /
Crawl-delay: 10

Sitemap: https://www.example.com/sitemap.xml

Second, a Product block in JSON-LD, the machine-readable version of one product page. Every field in it comes from the Product structured data guide in Sources. Swap the placeholders for your real price, your real stock state, and your real shipping details, and check every value against the visible text on the page. priceValidUntil is shown as a placeholder shape: put in the real date the price runs until, in YYYY-MM-DD form, or drop the field.

code
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "[Product name]",
  "description": "[One plain sentence about the product]",
  "offers": {
    "@type": "Offer",
    "priceCurrency": "USD",
    "price": "[Price]",
    "priceValidUntil": "YYYY-MM-DD",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}

Worked example: a bakery that was open on the shop and closed on the guides

Take a small bakery that sells bread, pastries, and baking kits online, with a guide on baking sourdough at home. The owner assumed Claude could find the shop, because the site looked fine in a browser. When she opened robots.txt, she found a blanket Disallow on the shop subdomain, and no file at all on the guide subdomain. The training question had never been decided, so the file had been changed three times by three different people.

She decided to keep training out and to welcome search, so the file named Claude-SearchBot and Claude-User with Allow and ClaudeBot with Disallow, on both subdomains. She verified the visits against Anthropic's published IP list, and she had the price served as plain HTML. She asked Claude the customer questions, waited a day, and asked again. The bakery appeared, and the pages it cited were the product pages and the sourdough guide.

Frequently Asked Questions

Does blocking ClaudeBot stop Claude from citing my shop?

No. Restricting ClaudeBot signals that your future materials should be excluded from training datasets. It does not block search. Allowing Claude-SearchBot and Claude-User is the search decision, and those are separate lines in the file.

Should I add a rule for Claude-User, or leave it alone like some other engines?

Add it, and allow it. Anthropic says its bots honour robots.txt, including the user-initiated Claude-User, and that disabling it may reduce your visibility for user-directed web search. That is different from some other engines, where a user-triggered fetcher generally ignores the file.

How do I know a visit in my logs really came from Anthropic?

Check the source IP against the published list at the bots.json address in Sources. A token in a log does not prove the request came from Anthropic. Do not use the IP list to block, because Anthropic says that may not work correctly or persistently guarantee an opt-out.

How long does a robots.txt change take to reach Claude?

Anthropic publishes no fixed time for a robots.txt change to take effect. A retest the same afternoon is not a verdict. Wait a day, ask again, and again after the next crawl.

Does my price need to be in the raw page text, or is the browser view enough?

It needs to be in the raw text. If the price loads only after JavaScript runs, a bot that reads the first wave of HTML may never see it. Fetch the page with curl or view source, and confirm the price and the stock state are there before any JavaScript runs.