What does the Robots Exclusion Protocol (RFC 9309) standardise, and what does it not do?

RFC 9309 standardises how crawlers read and obey a robots.txt file, and it states plainly that those rules are not access authorization. It also sets out how user-agent groups are chosen, how allow and disallow rules are matched, and what a crawler should do when the file cannot be fetched.

“These rules are not a form of access authorization.”

Martijn Koster, Gary Illyes, Henner Zeller and Lizzi Sassman (Illyes, Zeller and Sassman at Google LLC), authors of RFC 9309: Robots Exclusion Protocol, Section 1, read 2026-11-07

Verified against the sources on 2026-11-07. Labels: Proven means the primary source we opened states it. Practice means widely used practice or secondary reporting that the primary source does not confirm. Experimental means a proposal or draft.

What does RFC 9309 standardise?

  • Proven The RFC defines how crawlers should honour rules in a robots.txt file (Section 1). It says these rules are not a form of access authorization.
  • Proven The file must sit at the top level of the host as /robots.txt, be UTF-8 encoded and be served as text/plain (Section 2.3).
  • Proven Crawlers should follow at least five consecutive redirects when fetching the file, and may treat it as unavailable beyond that (Section 2.3.1.2).
  • Proven Crawlers should impose a parsing limit, and that limit must be at least 500 kibibytes (Section 2.5).

How do groups and user-agent matching work?

  • Proven A group is one or more user-agent lines followed by one or more rules; it ends at the next user-agent line or the end of the file (Section 2.1).
  • Proven Crawlers must use case-insensitive matching to find the group for their product token, and a product token may contain only letters, underscores and hyphens (Section 2.2.1).
  • Proven If more than one group matches a crawler, the rules of those groups are combined into one group. If none match, the * group applies; if there is also no * group, no rules apply (Section 2.2.1).
  • Proven Rules that appear outside any group should be ignored (Section 2.2.2).

How are allow and disallow rules matched?

  • Proven Matching should be case-sensitive and must start at the first octet of the path. The most specific match, meaning the one with the most octets, must be used (Section 2.2.2).
  • Proven If an allow rule and a disallow rule are equivalent, the allow rule should be used. If no rule matches, access is allowed. /robots.txt itself is implicitly allowed (Section 2.2.2).
  • Proven * matches zero or more characters, $ marks the end of the match pattern and # starts a line comment (Section 2.2.3).
  • Proven Crawlers may interpret other records, such as sitemaps, but parsing them must not interfere with the defined records (Section 2.2.4).

What happens when robots.txt is missing or broken?

  • Proven If the file is unavailable with a status in the 400 to 499 range, the RFC says the crawler may access any resource on the server (Section 2.3.1.3).
  • Proven If it is unreachable because of a server or network error (the 500 to 599 range), the crawler must assume complete disallow. After a long period, for example 30 days, it may treat the file as unavailable or keep using a cached copy (Section 2.3.1.4).
  • Proven Crawlers may cache the file but should not use a cached copy for more than 24 hours unless the file cannot be reached (Section 2.4).
  • Proven For parsing errors, a crawler must try to parse each line and use the rules it can parse (Section 2.3.1.5).

Is robots.txt access control?

  • Proven No. Section 1 says the rules are not a form of access authorization. The security section says the protocol is not a substitute for content security measures and that listed paths are publicly discoverable. It points to an application-layer mechanism such as HTTP Authentication for real access control (Section 3).
  • Proven Google’s documentation says it is up to the crawler to obey the file, and that robots.txt is not a mechanism for keeping a page out of Google. It names noindex and password protection as alternatives.
  • Proven Google also says it might still find and index a disallowed URL if it is linked from other places on the web, and that each crawler might interpret the rules differently.

To see how this applies to AI bots, read should you block AI crawlers, what Google-Extended controls and how sitemaps work (the sitemap line in robots.txt). Terms are in the glossary.

What we could not verify

This page covers the RFC text and Google’s introductory documentation only. Operators may support extra directives or interpret syntax differently, as Google notes, so check each operator’s own page. We did not test how any specific crawler behaves against these rules.

Last reviewed on 2026-11-07.

Frequently asked questions

Where must the robots.txt file be placed?

The RFC says the rules must be accessible in a file named /robots.txt, all lowercase, in the top-level path of the service, and that the file must be UTF-8 encoded and served as text/plain.

What happens if my robots.txt returns a server error?

The RFC says a crawler must assume complete disallow when the file is unreachable with a 500 to 599 status. After a long period, for example 30 days, it may treat the file as unavailable or keep using a cached copy.

How big can a robots.txt file be?

The RFC says crawlers should impose a parsing limit and that the limit must be at least 500 kibibytes. The section sets only that lower bound and specifies no maximum.

Can I use robots.txt to keep a page out of Google?

Google says robots.txt is not a mechanism for keeping a page out of Google and that a disallowed URL can still be indexed if it is linked elsewhere. It names noindex and password protection instead.

Sources

  1. RFC 9309: Robots Exclusion Protocol, read 2026-11-07
  2. Google Search Central: Introduction to robots.txt

Related guides