LLMTomato Sign in Analyse your site

Robots.txt and AI crawlers

By . 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.

CompanyTo train modelsFor search inside the assistantWhen a person asks to open a page
OpenAIGPTBotOAI-SearchBotChatGPT-User
AnthropicClaudeBotClaude-SearchBotClaude-User
PerplexityPerplexityBotPerplexity-User
GoogleGoogle-ExtendedGooglebot

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).

Analyse your site