robots.txt is a text file websites publish at the top level of each host (e.g., example.com/robots.txt) that specifies which pages or sections search engine crawlers and other bots are allowed or disallowed from accessing. It's a voluntary standard: well-behaved crawlers respect it, but it has no technical enforcement mechanism of its own.

RFC 9309 says crawlers must follow the rules in a robots.txt file they have downloaded, but it also states that these rules are not a form of access authorization.

A robots.txt file can set different rules for different crawlers by name, so a site might allow one search engine's crawler broad access while blocking others.