LLMSdocs
English

What robots.txt does not do

robots.txt asks crawlers not to fetch URLs. It does not protect content, hide paths, keep URLs out of search results or, for Google, carry noindex and crawl-delay rules. What to use for each of those instead.

Type: Intermediate
On this page
  1. It is not access control
  2. It is public
  3. Blocking a crawl is not blocking indexing
  4. Rules Google does not read
  5. What to use instead
  6. See also
  7. References

These rules are not a form of access authorization.

RFC 9309, section 1

The Robots Exclusion Protocol describes a request that well-behaved crawlers agree to honor. Many problems with robots.txt come from asking it to do something else. The file below contains four common mistakes.

robots.txt
User-agent: *
Disallow: /staff-portal-login/
Disallow: /reports/2026-salaries/
Noindex: /old-catalog/
Crawl-delay: 10
A robots.txt that asks it to do too much (example.com)
  1. Lines 2 and 3 try to protect private areas. Anyone can read the file, so they publish the paths instead.
  2. Line 3 also relies on the rule to keep the reports out of search engines, which it does not do if other pages link to them.
  3. Line 4 uses a noindex rule that Google stopped reading in 2019 and that RFC 9309 does not define.
  4. Line 5 sets a crawl delay that some crawlers read and Google ignores.

It is not access control

A crawler that ignores robots.txt meets no resistance: the server still answers every request. Google's own introduction puts it plainly, saying that reputable crawlers follow the file but other crawlers might not. Some well-known fetchers are also exempt by design. OpenAI, Perplexity and Meta each say that a fetch made at a user's request may not follow robots.txt; see AI crawler tokens for robots.txt.

RFC 9309's security considerations name the alternative: content that must not be fetched needs a security measure at the application layer, which for HTTP means authentication as defined in RFC 9110.

It is public

The file sits at a fixed, well-known address and has to be readable by every crawler. The same section of RFC 9309 warns that listing paths in it exposes them publicly and makes them discoverable. A Disallow line for an unlinked admin URL is a signpost to it. Paths that should stay unknown should not appear in robots.txt at all; protect them with authentication and leave them out.

Blocking a crawl is not blocking indexing

Disallow stops a crawler from fetching a page. It does not stop a search engine from knowing that the URL exists. Google says that it may still find and index a disallowed URL if other pages link to it, and that the URL and information such as the anchor text of those links can then appear in results, without a description drawn from the page.

The fix is counter-intuitive: to keep a page out of Google's index, let Google crawl it and tell it not to index. Google's documentation says a noindex rule only works if the page is not blocked by robots.txt, because a crawler that cannot fetch the page never sees the rule. Page-level rules: the robots meta tag and X-Robots-Tag describes the meta tag and HTTP header that carry it.

Rules Google does not read

On 2 July 2019, the day after Google published an Internet-Draft of the protocol and released its own robots.txt parser as open source, the Google Search Central blog announced that Google would stop handling unsupported and unpublished robots.txt rules on 1 September 2019. The post named noindex, nofollow and crawl-delay. Google's robots.txt documentation now lists four supported fields, user-agent, allow, disallow and sitemap, and says other fields such as crawl-delay are not supported.

RFC 9309 itself defines only user-agent, allow and disallow, and lets crawlers interpret other records such as Sitemap. Any other line is an extension that a given crawler may or may not read.

Crawl-delay

Crawl-delay was never part of the protocol, and crawlers that read it do not agree on what it means:

CrawlerReads Crawl-delayDocumented behavior
GooglebotNoListed as unsupported in Google's robots.txt specification.
BingbotYesBing described the value in 2012 as a window of 1 to 30 seconds in which Bingbot fetches at most once, not a rate. Read from the bingbot group or the * group.
Anthropic's crawlersYesAnthropic's help page says it supports the nonstandard Crawl-delay extension and gives Crawl-delay: 1 for ClaudeBot as an example.

What to use instead

GoalMechanismWhere it is documented
Keep content away from everyone who is not signed inHTTP authentication or a loginRFC 9309 section 3
Keep a crawlable page out of search resultsnoindex in a robots meta tag or an X-Robots-Tag header, with crawling allowedGoogle: Block Search indexing with noindex
Remove a page for goodReturn 404 or 410Google Search Central blog, 2 July 2019
Hide a URL from Google results quickly, for a limited timeThe removals tool in Search ConsoleGoogle Search Central blog, 2 July 2019
Reduce crawl load from Bingbot or ClaudeBotCrawl-delay in that crawler's groupBing and Anthropic documentation
Stop a crawler that ignores robots.txtBlock it at the server or CDN by verified IP rangeThe operator's published IP lists

See also

  • robots.txt syntax: groups, rules and matchingReference for the robots.txt file format as standardized in RFC 9309: groups and user-agent lines, allow and disallow rules, the * and $ characters, comments, and the longest-match rule that decides which line applies to a URL.
  • Page-level rules: the robots meta tag and X-Robots-Tagrobots.txt decides whether a URL is fetched; the robots meta tag and the X-Robots-Tag header decide what a search engine may do with a page or file once it has been fetched, such as leaving it out of the index or showing no snippet.
  • AI crawler tokens for robots.txtThe robots.txt product tokens that OpenAI, Anthropic, Google, Apple, Perplexity, Common Crawl and Meta document for their crawlers and fetchers, what each operator says the token is for, and what it says about obeying robots.txt.
  • Usage preferences beyond allow and disallowAllow and disallow say whether a URL may be fetched. A newer set of signals says how fetched content may be used, for search, as input to AI answers or for training: operator tokens such as Google-Extended, Cloudflare's Content-Signal line, and the IETF AI Preferences drafts.

References

  1. RFC 9309: Robots Exclusion Protocol, sections 1, 2.2.4 and 3 rfc-editor.org (accessed 5 December 2026)
  2. Introduction to robots.txt. Google Search Central developers.google.com (accessed 5 December 2026)
  3. A note on unsupported rules in robots.txt. Google Search Central Blog, 2 July 2019 developers.google.com (accessed 5 December 2026)
  4. How Google interprets the robots.txt specification. Google Crawling Infrastructure documentation developers.google.com (accessed 5 December 2026)
  5. Block Search indexing with noindex. Google Search Central developers.google.com (accessed 5 December 2026)
  6. To crawl or not to crawl, that is BingBot's question. Bing Webmaster Blog, 3 May 2012 blogs.bing.com (accessed 5 December 2026)
  7. Does Anthropic crawl data from the web, and how can site owners block the crawler? Claude Help Center support.claude.com (accessed 5 December 2026)