robots.txt

Last updated 29/11/2026

Also known as: Robots Exclusion Protocol, Robots Exclusion Standard, Robots File

robots.txt is a plain text file at the root of a website that tells crawlers which parts of the site they may visit. Search engines and other well-behaved bots read it before they crawl, which makes it the first place a site states its rules for automated visitors.

Martijn Koster proposed the convention in 1994, and the Internet Engineering Task Force (IETF), the body behind many internet standards, formalised it as RFC 9309 in 2022. The file lists rules per crawler: which paths are allowed, which are off limits and where the sitemap is. Because AI crawlers such as GPTBot and ClaudeBot use their own names, a site can treat them differently from search crawlers.

Two limits matter. The file is a request and enforces nothing: reputable crawlers follow it, others may not. It is also public, and it does not hide a page from search, because a blocked page can still appear in results when other sites link to it. One wrong line can shut search engines out of a whole site, so changes deserve a second pair of eyes. Hosting and security settings can block AI crawlers too, and the owner may never notice.

Related terms

More in:

Want to put this into practice for your own brand?