What is robots.txt?

In short

robots.txt is a plain-text file at the root of a website that tells crawlers which paths they may and may not fetch, using groups of rules per user agent.

A crawler follows the most specific group that names it, so a User-agent: GPTBot group overrides the * group for GPTBot. The format is standardized in RFC 9309.

robots.txt controls crawling, not indexing: a blocked page can still be listed by search engines if other sites link to it. To keep a page out of results, let it be crawled and use noindex.

Updated

Guides that cover this

Related terms

Check your own siteSee which AI crawlers your robots.txt lets in and what stops assistants quoting you.Run the free check