Skip to content

robots.txt

robots.txt is a text file at a site's root that tells crawlers which paths they may fetch. It is the main control for AI crawlers, and it asks, not enforces.

Last reviewed

robots.txt is a plain text file at the root of a website, for example example.com/robots.txt, that tells crawlers which parts of the site they may request. Rules are written per crawler name, so one file can allow one bot and block another.

The protocol is a standard, published as RFC 9309. Reputable crawlers follow it; it does not technically prevent access, so it is a request and not a lock.

It matters for AI visibility because it is where you decide which AI crawlers may fetch your pages. A single line such as “Disallow: /” under a wildcard rule blocks every crawler that obeys it, including the ones that feed AI search. Teams often add such a rule during a site build and forget it.

Example: a site allows Googlebot but disallows everything for unnamed bots. AI crawlers that are not listed fall under the second rule and cannot fetch the site.