Robots.txt and AI crawlers
By Mario Brosco. Published on .
The robots.txt file tells the programs that read the web which pages of a site they may open. That includes the crawlers of artificial intelligence companies: a site that blocks them all stays out of assistants' answers, often without knowing it.
What it is
It is a text file at the root of the site, at /robots.txt. It holds rules by name: which crawler is addressed (User-agent) and what it must not open (Disallow). Since 2022 it has been an internet standard, RFC 9309. It is a request, not a lock: serious crawlers respect it, others do not.
AI crawlers are not all the same
Each company has more than one, with different jobs. Blocking one does not block the others.
| Company | To train models | For search inside the assistant | When a person asks to open a page |
|---|---|---|---|
| OpenAI | GPTBot | OAI-SearchBot | ChatGPT-User |
| Anthropic | ClaudeBot | Claude-SearchBot | Claude-User |
| Perplexity | PerplexityBot | Perplexity-User | |
Google-Extended | Googlebot |
The exact rules are on the pages of OpenAI, Anthropic, Perplexity and Google.
What to decide
There are two separate choices:
- Training: whether the site's texts may be used to teach models. Saying no has no effect on search.
- Search: whether the assistant may read the pages to answer and cite them. Saying no here means not appearing in answers as a source.
OpenAI states it plainly: to appear in ChatGPT search, OAI-SearchBot must be allowed, and blocking GPTBot only concerns training.
The most common mistake
The block is not always in the file. A firewall or a protection service in front of the site can turn these crawlers away even when robots.txt allows them. Google lists it among the basic checks: reading must be allowed by the file and by whoever hosts the site.
How to check
Open /robots.txt and look for the names in the table. Then request a page while presenting as those names, to see whether it really arrives. The free check does both.
How much it is searched
In Italy "robots.txt" is searched about 1,300 times a month on Google (November 2026 figure).