What happens when robots.txt returns a 5xx error?
By TechCompare · Updated · How we check
A 5xx on robots.txt means complete disallow under RFC 9309. Google stops crawling for the first 12 hours, then uses its last good copy of the file for up to 30 days.
When robots.txt answers with a 5xx error, a crawler can't tell what the rules are. RFC 9309 says to assume the worst: the whole site is off limits. Google stops crawling for a while and keeps retrying the file. A broken robots.txt can cost you more than a missing one.
How it works
RFC 9309 calls this case unreachable, and says the crawler must assume complete disallow. If the file stays undefined for a long time, for example 30 days, a crawler may treat it as unavailable or keep using a cached copy. Google's documentation gives the steps. For the first 12 hours it stops crawling the site but keeps trying to fetch the file. After that it uses the last good version for 30 days. With no cached copy it assumes no restrictions. Google says it may hold on to a cached copy longer than usual during timeouts or 5xx errors. The tester shows a 5xx as the whole site blocked for every crawler, with the status. It treats 429 the same way. Google lists 4xx codes except 429 as meaning no restrictions and doesn't say what it does with 429, so the tester takes the cautious side and says so. Typical causes are a rate limit or bot challenge in front of the file, an app route that fails on /robots.txt, and a deploy in progress.
Verdict
Treat robots.txt as a file that must always answer. Serve it as a plain static file, keep it out of rate limits and bot challenges, and recheck after each deploy. If the tester shows a 5xx or 429, fix that first, since no other rule matters while the file is down.
More Robots.txt scenarios
Frequently asked questions
Is a 5xx on robots.txt worse than a 404?
How long until Google crawls again after I fix it?
Why does the tester block everything on a 429?
Related tools
Open Graph Visualizer
Preview how your website links will look when shared on Google, Twitter, Facebook, and Discord.
Use toolSSL Checker
Check a site's certificate, TLS versions, HTTP/2 and HTTP/3 support, post-quantum key exchange, HSTS and redirects, or compare two sites.
Use toolDNS Lookup
Look up a domain's DNS records on Cloudflare or compare several resolvers at once, and read its SPF, DMARC and DKIM records in plain words.
Use tool