Google pauses site crawling when robots.txt returns a 429

Quoted from How Google interprets the robots.txt specification: Handling of errors and HT…
Quote: How Google interprets the robots.txt specification, "Handling of errors and HTTP…"

Summary

Google's corrected robots.txt spec says a 429 on the robots.txt file stops crawling of the whole site, for 12 hours at first and until the file loads when Google has no cached copy.

Exempt /robots.txt from any rate limiter or WAF rule that can return 429.

Google corrected the error-handling section of its robots.txt specification page, moving 429 (too many requests) into the same row as 5xx server errors. The changelog entry, dated December 2, lists five fixes and says crawler behavior “hasn’t changed”, so the page now matches what the crawlers already do and RFC 9309, the robots.txt standard.

The correction that changes most is the branch where Google has no cached copy of your robots.txt. The table now says that when a 5xx or 429 comes back and there is no cached version available, Google stops crawling the site. The changelog lists that change as one that “corrects how uncached 5xx errors are handled”, and Barry Schwartz, who runs Search Engine Roundtable and spotted the update, reads it as Google being less likely to crawl without restriction when it has never successfully retrieved a robots.txt file. The new text supports that reading: the failure mode is no crawling, not free crawling.

With a cached copy on hand, the row is a timeline, and only the first stage halts crawling outright.

How long the errors lastWhat Google does
First 12 hoursStops crawling the site, keeps trying to fetch robots.txt
Up to 30 daysUses the last good version, still trying for a new one
Past about 30 daysBehaves as if there is no robots.txt when the site is otherwise available, stops crawling when it is not

The 24-hour cache that normally covers robots.txt is what makes the middle row work. Google says it may hold a cached file longer when refreshing it isn’t possible, and names 5xx and 429 as the example.

Every other 4xx does the opposite. Google treats all 4xx except 429 as if a valid robots.txt did not exist, assumes there are no crawl restrictions, and the page now states plainly that those codes have no effect on crawl rate. A 404 on robots.txt opens the site up, a 429 shuts it down, and the only difference is the code your edge returns.

Rate limiting is where that split becomes a problem. The table describes responses to the robots.txt fetch itself, and 429 is also one of the codes Google’s guidance on reducing crawl rate tells you to return when Googlebot needs to back off for a day or two, optionally with a Retry-After header that Google documented in October. Neither page spells out the overlap, but a limiter or bot challenge that counts /robots.txt along with every other URL converts a deliberate throttle into a crawl pause for the whole site, because the one request that has to succeed is the one being blocked.

DNS and network failures are now their own case, and the strictest one. When robots.txt can’t be fetched because of a timeout, a reset connection or an interrupted connection, Google generally stops crawling until the issue is resolved, and its crawlers “generally don’t fall back to a cached copy of the robots.txt file”. A 503 buys up to a month of cached rules. A resolver outage, or a firewall quietly dropping Googlebot’s connections, buys nothing.

What to do

  • Exclude /robots.txt from rate limiting, bot challenges and WAF rules that can return 429. It is the one URL where throttling costs more than it saves.
  • To slow Googlebot on purpose, return 429 or 503 on content URLs, add a Retry-After header, and stop within a day or two. Google warns that URLs serving those codes for multiple days may be dropped from the index.
  • Treat a new host or subdomain as the risky case. With no successful robots.txt fetch behind it, a 5xx or 429 there stops crawling rather than defaulting open, so confirm the file returns 200 before launch and before any maintenance window.
  • Alert on resolution and connection errors for /robots.txt, not just on its status code. That failure has no cached fallback, and nothing resumes until it is fixed.