Do AI crawlers actually follow robots.txt rules?
The short answer
The major AI companies say their automatic crawlers, such as GPTBot, OAI-SearchBot, PerplexityBot and ClaudeBot, follow robots.txt. Agents that fetch a page because a user asked, such as ChatGPT-User, may not, and robots.txt is only a request, so anything that must stay private needs a login or server-level block.
Robots.txt is a convention, not a lock
Robots.txt has been the standard way to tell crawlers what to fetch since the early web, and it was formalized as an internet standard in 2022. It works because reputable crawlers choose to follow it. Nothing in the file physically stops a request. A crawler that ignores it can still download any public page.
That is why robots.txt is the right tool for telling well-known crawlers your preferences, and the wrong tool for protecting anything confidential.
What the major AI companies say
At the time of writing, OpenAI, Anthropic, Perplexity and Google each document that their automatic crawlers follow robots.txt:
- OpenAI for GPTBot and OAI-SearchBot
- Anthropic for its crawlers, including ClaudeBot
- Perplexity for PerplexityBot
- Google for Googlebot and the Google-Extended control
The details can change, so check each company's current crawler documentation. These companies also publish IP ranges for their crawlers, so you can confirm a visitor is genuine.
User-triggered agents are the exception
Several companies treat visits started by a person differently. OpenAI says robots.txt rules may not apply to ChatGPT-User, because its visits happen when a user asks ChatGPT to open a page. Perplexity says much the same about Perplexity-User. The reasoning is that these are closer to a person using a browser than to a crawler sweeping the web. What the ChatGPT-User agent is covers this in more detail.
So if your robots.txt blocks OpenAI and you still see ChatGPT-User, that is consistent with what OpenAI has published.
Not every bot is well behaved
Plenty of smaller scrapers ignore robots.txt entirely, and some bots use a fake user agent to look like a known crawler. If a bot claiming to be GPTBot or ClaudeBot keeps hitting pages you have disallowed, check its IP address against the company's published ranges before assuming the company is at fault. Often it is someone else using the name.
For content that must stay private, use authentication. For aggressive bots, use firewall or CDN rules, while being careful not to catch the search crawlers you want, as explained in whether your firewall or CDN can block AI crawlers. For checking your current rules, see how to tell if robots.txt is blocking AI tools.