Do You Need llms.txt, and How Do You Set Up robots.txt for AI Bots?
Short answer
You don't need llms.txt. It is only a proposal, not a standard, and we have not verified that AI search engines read it when they build answers. The file that really matters is robots.txt: if you block a service's search bot in it, such as OAI-SearchBot for ChatGPT, your site disappears from that service's answers. Allow the search bots and set up the training bots separately, depending on whether you want your content used to train models.
What llms.txt is and what robots.txt does
The llms.txt file is a proposed text file in Markdown format. It is meant to give AI agents a short description of your site and links to its important pages, so they don't have to work through complicated page code. It has not become a standard, and we have no verified data on whether it affects how your site appears in answers.
The robots.txt file is different: it is an old, common file that tells bots which addresses on your site they may visit. Google describes it as a tool for managing crawler traffic, not for hiding pages. The file enforces nothing. Well-behaved bots follow it, while others may ignore it.
| llms.txt | robots.txt | |
|---|---|---|
| What it is | a proposed file summarizing your site | access rules for bots |
| Can you verify it helps with appearing in AI | no | yes, a blocked bot does not load the page |
| What it costs to create | a short file, little work | editing an existing file |
For the bigger picture of what AI SEO is and how it differs from classic SEO, read What is AI SEO (GEO).
How to set up robots.txt for AI bots
- Open the file at your domain followed by
/robots.txt. It must sit in the root directory, and every subdomain needs its own file. - Split the bots into two groups. Search bots decide whether you appear in answers: OAI-SearchBot (ChatGPT), PerplexityBot (Perplexity), Claude-SearchBot (Claude) and Googlebot (Google). Training bots collect content to train models: GPTBot (OpenAI) and ClaudeBot (Anthropic).
- Do not block the search bots. If you don't want your content used for training, block only the training bots.
- A block for a single bot looks like this:
User-agent: GPTBot
Disallow: /
- Save the file and wait after the change. OpenAI says a change for OAI-SearchBot takes about 24 hours to show up in ChatGPT.
- Check the layers in front of your site. Both OpenAI and Perplexity recommend allowing traffic from their published IP address ranges. Google advises checking that neither your CDN nor your hosting is blocking the bot.
- After a week, look at your server logs and search for the bot names. If they appear, they can see your site. The process of setting up the bots is covered in How to get your site into ChatGPT, Gemini and Perplexity answers.
Is it worth creating llms.txt anyway?
You can, but don't expect it to change anything. It is a short file, and you won't break anything by adding it. Google also states explicitly that AI Overviews and AI Mode need no special markup or optimization. Ordinary SEO applies: text the bot can read, internal links and indexed pages.
If you do create the file, the proposal calls for the site name as a first-level heading, an optional short summary and sections with lists of links. A section named Optional holds links that the agent can skip.
A missing file does not mean AI bots are ignoring you.
The most common mistakes
- Blocking OAI-SearchBot to keep your content out of training. Training is controlled by GPTBot, so blocking the search bot makes you disappear from ChatGPT answers.
- Hiding a page with robots.txt. A blocked address can still show up in results, just without a description. To remove a page from Google, use noindex.
- Treating robots.txt as protection. Google states that it does not protect information from bots.
- Expecting robots.txt to also stop bots launched at a person's request. ChatGPT-User and Perplexity-User may not follow the rules.
- Blocking bot IP addresses instead of using a rule in robots.txt. The bot then can't read robots.txt either, and the opt-out may not work.
- Spending a week on llms.txt and leaving a search bot blocked. A blocked bot shuts you out of answers for certain, while a missing llms.txt does not.
When you can do it yourself and when you can't
You can edit robots.txt and write a short llms.txt file yourself if you know where the file lives. It is a short job.
It gets harder when something you can't see from your site's admin is blocking the bot: a CDN, your hosting or a firewall. In that case it is easy to spend a week hunting for a mistake that a technical audit finds in one pass. At Octopsen, in an SEO audit we go through your site's technical state, content and competitors, and the result is a list of fixes ordered by impact. The first step is a free 15-minute call where we look at your site live. What an audit includes is described in What an SEO audit is and what it should include.
Frequently asked questions
Does Google read llms.txt?
We have not verified Google's official position on llms.txt, so we make no claims about it. Google states that no special markup is needed to appear in AI Overviews.
Where does the llms.txt file belong?
According to the proposal, usually in the root directory of your site. It can also sit in a subdirectory, and then it applies to the pages under that path.
Does blocking GPTBot also block appearing in ChatGPT?
No. GPTBot and OAI-SearchBot are independent in OpenAI's settings. You can appear in ChatGPT search and still opt out of training.
Is it enough to allow the bots in robots.txt and wait for the answers?
No. Even allowing the bots does not guarantee that a service will use you in its answers. Google states explicitly that meeting the requirements does not guarantee crawling, indexing or appearing in AI features.
How do I find out whether AI bots visit my site?
Search your server logs for bot names, for example OAI-SearchBot, PerplexityBot or Claude-SearchBot. Your hosting provider gives you access to the logs.