Set robots.txt for AI crawlers and decide about llms.txt

Day 5, 30 minutes · beginner

Goal of this lessonCheck which AI crawlers your robots.txt lets in, fix the rules to match your own choice, and confirm that your key page answers its question in the first lines.

Why it matters

This lesson teaches a site owner how to make a website readable for AI assistants such as ChatGPT, Claude, Perplexity, Gemini and Microsoft Copilot: by checking the crawler rules in robots.txt, by putting a clear answer at the top of key pages, and by deciding about an optional llms.txt file. A crawler is a program that visits pages for a search engine or an AI company. If your site turns a crawler away, that assistant cannot read your page, however good the page is.

Many sites block AI crawlers without knowing it. A plugin or a hosting setting added the rule years ago. Other sites let everything in, while the owner would rather not have their texts used to train AI models. Both are choices, and today you make yours on purpose.

At the end of this lesson you have a robots.txt that matches your own choice, a checked first paragraph on your answer-first page, and an honest view of what llms.txt does and does not do. It is Part 5 of your Findability kit.

What is robots.txt and what can it do?

A small text file at yoursite/robots.txt that tells crawlers which parts of your site they may visit. Google's introduction to robots.txt is clear about its limits: the file cannot enforce anything, it is up to each crawler to obey it, and it is not a way to keep a page secret. It is a request that well-behaved crawlers follow.

Which AI crawlers are there?

Each company publishes the names of its crawlers. These are the names on their own pages on the day this lesson was checked:

Company Name in robots.txt What it is for
OpenAI OAI-SearchBot Showing sites in ChatGPT search answers
OpenAI GPTBot Collecting content that may be used to train models
OpenAI ChatGPT-User Visiting a page when a user asks for it
Anthropic Claude-SearchBot Improving search results for Claude users
Anthropic ClaudeBot Collecting content that may be used to train models
Anthropic Claude-User Visiting a page when a user asks Claude a question
Perplexity PerplexityBot Showing and linking sites in Perplexity results
Perplexity Perplexity-User Visiting a page when a user asks for it
Google Googlebot Google Search, including its AI answers
Google Google-Extended AI training and grounding in some other Google systems

Sources: OpenAI's crawler page, Anthropic's crawler article, Perplexity's crawler page, Google's crawler list and Google's page on AI features and your website.

Three things from those pages matter for your choice:

  • Search and training are separate. OpenAI says you can allow OAI-SearchBot to appear in ChatGPT search answers while you disallow GPTBot. Anthropic splits the same way, with Claude-SearchBot for search and ClaudeBot for training. Perplexity says PerplexityBot is not used to collect content for AI models.
  • Blocking a search crawler costs visibility. OpenAI says sites that opt out of OAI-SearchBot are not shown in ChatGPT search answers. Anthropic says blocking Claude-SearchBot or Claude-User may reduce your visibility.
  • User-requested visits are different. OpenAI says robots.txt rules may not apply to visits a user asked for (ChatGPT-User). Perplexity says Perplexity-User generally ignores robots.txt rules.

For Microsoft Copilot, Bing's Webmaster Guidelines say Bing and Copilot search rely on the same crawling, indexing and ranking, and tell you not to block Bingbot in your robots.txt. Names change, so check the linked pages before you copy a rule.

Do I need an llms.txt file?

No, it is an optional extra. An llms.txt file is a short text file at yoursite/llms.txt that describes your site and links to its main pages in a form that is easy for AI systems to read. It is a proposal on llmstxt.org, not a standard that the engines have agreed to. Google's guide to generative AI features says Google Search ignores these files: making one neither harms nor helps you there. The crawler pages of OpenAI, Anthropic and Perplexity say nothing about reading them. So no engine promises to read it. If you want to see one, this site has one at jasperhaynes.com/llms.txt. Do the robots.txt and the first paragraph first. They are the parts the vendors do describe.

The steps

  1. Open your robots.txt. Type your site address followed by /robots.txt in your browser and copy everything. No file at all? Then Google assumes there are no crawl restrictions.
  2. Make your choice. Two questions. May search engines and AI assistants read my public pages so they can show and quote them? Most business sites say yes. May AI companies train models on my pages? That one is yours to decide, and both answers are fine.
  3. Send the request. It asks for a table of the crawlers with the exact line in your file that decides each one, and for a new file that matches your choice. Pick your tool below and follow the steps.
  4. Check the table. Compare each row with your file. Assistants misread robots.txt rules more often than you would expect.
  5. Check your first paragraph. Take the page from lesson 3 and ask whether its first 150 words answer the question on their own. The second request in the tool steps does this.
  6. Publish the new file. Do it yourself or ask the person who manages your site. Crawlers can also be blocked outside robots.txt, by your hosting or by a CDN (a service that sits in front of your site). Google's AI features page tells you to check that crawling is allowed there as well.
  7. Save Part 5. Keep the old file, the new file and your choice with the date. Write down your decision about llms.txt as well.

Jorien's example

Jorien's robots.txt has six lines she has never seen. Two of them read:

User-agent: GPTBot
Disallow: /

Tijn remembers a security plugin that added them. The table shows GPTBot blocked and every other crawler without a rule. So ChatGPT search could already read her site through OAI-SearchBot, and only training was blocked. The assistant's first table said OAI-SearchBot was blocked as well. Jorien checks her file: there is no such line. She points it out and gets a corrected table.

Her choice: assistants may read and quote her pages, training she does not want. The new file keeps the GPTBot block, adds the same two lines for ClaudeBot and Google-Extended, and leaves the search crawlers alone. She skips llms.txt for now.

Common mistakes with robots.txt and AI crawlers

  • Blocking everything "to be safe". You also disappear from the answers your customers read.
  • Thinking robots.txt hides a page. It does not. Private things need a password.
  • Copying crawler names from a blog post. Names change. Use the vendors' own pages.
  • Starting with llms.txt. It is the one part nobody promises to read.

Today's actions

Ticks are not saved without an account

Do it in your tool

Claude

  1. Open Claude and start a new chat.
  2. Paste the request below into the chat box, fill in your choice and the [paste], and send it.
    Below is the robots.txt file of my website. What I want: search engines and AI assistants may read my public pages. About training AI models on my pages my choice is: [allow it / do not allow it].
    1. Make a table with one row for each of these crawlers: Googlebot, Bingbot, OAI-SearchBot, GPTBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User, Google-Extended. Columns: allowed or blocked on my home page, and the exact line in my file that decides it (or "no rule for this crawler").
    2. Say which rules do not match what I want.
    3. Write the new robots.txt in one code block. Keep every rule of mine that does not have to change, and keep my Sitemap line.
    Rules: do not invent crawler names or rules. If you are not sure how a rule is read, say so instead of guessing. Do not block any page that is open now unless I asked for it.
    
    MY ROBOTS.TXT:
    [paste]
  3. Check each row of the table against the lines in your own file, and check the crawler names against the vendor pages linked in the lesson. An assistant can misread a rule.
  4. Now check the top of your answer-first page: send the request below with the first 150 words of the page.
    Here are the first 150 words of one page of my website. Do they answer this question on their own, for someone who reads nothing else: [question]? Answer yes or no. Then list what is missing or unclear: who offers it, where, what it costs, how long it takes. Do not rewrite the text.
    
    FIRST 150 WORDS:
    [paste]
  5. Put the new robots.txt on your site, or ask the person who manages your site to do it, and open yoursite/robots.txt in your browser to see that it changed.
  6. Save the old file, the new file and your choice about AI training in your Findability kit under Part 5: Readable for AI assistants.

Note: The free plan is enough for this task. It has limited usage every 5 hours and every week, which is plenty for one request and a few follow-up questions.

Checked on 1 December 2026 · Source: Claude pricing (opens in a new tab)

Create a free account to save your progress. Sign in or sign up