robots.txt and llms.txt both live at the root of your site, but they do opposite jobs. robots.txt controls who gets in: it tells each crawler what it may visit. llms.txt is an invitation: it gives AI engines a curated index of the content that matters. One governs access, the other guides reading. Confusing the two costs you visibility.
- robots.txt controls access; llms.txt indexes the content
- robots.txt is essential, and it should allow the AI crawlers that matter
- llms.txt is optional, emerging and cheap, and likely to gain ground
- Blocking AI crawlers takes you out of the answers without giving you the clicks back
Two files, two jobs
Both are plain text files and both live at the root of the domain. That is where the similarities end. robots.txt has existed since the 1990s and is an access convention: it lists crawlers and tells them where they may and may not go. llms.txt was put forward as a proposal in 2024 and is a guidance convention: rather than barring the way, it points the models to the site's main content, in a format they read easily.
The usual mistake is to treat them as alternatives. They are not. One decides whether the engine gets in; the other, once it is in, helps it understand what matters. They work together.
robots.txt: the door
robots.txt is the first thing a crawler checks. For AI visibility (GEO, or Generative Engine Optimization), what matters is allowing the right crawlers. Each engine has its own, and it is worth telling two kinds apart: those that collect content to train the models, and those that search the live web to answer a question there and then.
If you want to appear in the answers, the list to allow includes, among others, OpenAI's GPTBot and OAI-SearchBot, Anthropic's ClaudeBot and Claude-SearchBot, PerplexityBot, and Google-Extended. Blocking any of them removes the site from the sources that engine can read.
The most expensive mistake is blocking by default. Many sites inherit, through a plugin or a template, a robots.txt that bars AI crawlers without anyone having decided to. The result is being left out of the answers without even knowing why. Blocking can be legitimate (a publisher with paywalled content has good reason to bar training), but it should be a decision, not an accident.
How to configure robots.txt for AI crawlers
The configuration destaque.ai recommends to a B2B SaaS company that wants to appear in the answers separates the two kinds of crawler. Those that answer a question in real time are allowed; the training crawlers are a separate decision, and for a company that wants to be discovered the normal choice is to allow them too:
# Answering questions in real time
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /
# Model training: a deliberate decision
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
Allow: /Two notes. According to Perplexity's documentation, Perplexity-User does not follow robots.txt, because it acts on a user's request. And Google-Extended is not a crawler: it is a signal that tells Google whether content Googlebot has already collected may be used in Gemini, without affecting Search or AI Overviews. If your site sits behind Cloudflare, also check its AI crawler control panel, which can block crawlers with nothing in robots.txt. The commands to confirm that each crawler really gets in are in our guide, Six commands to find out whether AI can read your site.
llms.txt: the index
llms.txt is a Markdown file that describes the site in a structured way that models can read: who you are, what you do, and links to the pages that matter. The llms-full.txt variant goes further and delivers the site's main text in a single file, sparing the crawler the work of jumping from page to page.
To be fair, on its own it works no miracles. It is an emerging standard, and not every engine reads it today. But creating one takes an afternoon, there is no downside, and it is likely to matter more as the engines mature. It is the kind of low-risk bet worth placing early.
The two side by side
| Dimension | robots.txt | llms.txt |
|---|---|---|
| Purpose | Control crawler access | Index the content for reading |
| Stance | Allow or block | Invite and guide |
| Maturity | Established standard | Emerging proposal (2024) |
| Essential for GEO | Yes: it should allow AI crawlers | No, but recommended |
| Format | User-agent rules with allow or disallow | Markdown with links |
Basic technical hygiene
Neither file works in isolation. The technical foundation the engines expect has three parts: a robots.txt that allows the AI crawlers that matter, an llms.txt that guides them, and structured data (Schema.org) on the main pages so the brand can be identified without ambiguity. All three are cheap and done once. This site uses all three; you can see our robots file at destaque.ai/robots.txt and the index at destaque.ai/llms.txt.
Frequently asked questions
Do I need both?
A correct robots.txt is essential if you want to be found. llms.txt is optional and cheap, and a good bet, given where it is heading.
Does blocking crawlers protect my content?
It stops engines reading your content, at the cost of disappearing from their answers. For a business that depends on being found, that rarely pays off. If you do it, make it a deliberate decision, crawler by crawler.
See also what llms.txt is and how to create yours, the glossary and the frequently asked questions.
destaque.ai measures how brands appear in AI answers, with its own technology and research. For a GEO diagnosis of your company, get in touch: contacto@destaque.ai or WhatsApp.

