Skip to content
Glossary

robots.txt

Also known as: Robots Exclusion Protocol

Definition

robots.txt is a plain-text file at the root of a site that tells crawlers which URLs they may fetch, using User-agent, Allow and Disallow rules. It is standardised as RFC 9309.

Explanation

The Robots Exclusion Protocol was published by the IETF as RFC 9309 in 2022. Crawlers match their user-agent token to a group of rules; the most specific matching rule wins. Under the RFC, a 4xx response for the file lets crawlers fetch anything, while a 5xx response means they should treat the whole site as disallowed.

robots.txt controls crawling, not indexing, and compliance is voluntary. Google notes it is not a mechanism for keeping a page out of search; use noindex for that.

Why it matters for your site

One line in robots.txt can decide whether ChatGPT, Claude and Perplexity can cite you. It is the first thing to check when a site is missing from AI answers.

Related guides

Sources

  1. [1]RFC 9309: Robots Exclusion Protocolrfc-editor.org
  2. [2]Google Search Central: Introduction to robots.txtdevelopers.google.com

All terms

What is robots.txt? Definition | Citeto