If robots.txt returns 503, Google says it initially stops crawling the site for up to 12 hours while retrying the file. It may then use the last successfully fetched version for up to 30 days while continuing to request an update. If no cached version exists, Google assumes there are no crawl restrictions during that 30-day period. That is different from one product page returning 503.
For diagnosis, do not add a Disallow rule prematurely. Find out which layer returned the 503, which host variant is affected, and whether the response recurs. These time windows describe Google's documented behavior; they do not predict the next fetch of a specific site or the behavior of every crawler.
What a 503 on robots.txt means
A 503 says that a server is temporarily unable to handle the request. A service might return it during overload or maintenance. The Retry-After header can tell a client when to try again, but the header is optional. Even when it is present, it does not guarantee the exact next request time for a particular crawler. See RFC 9110 on 503 Service Unavailable.
Google documents a separate, staged behavior for robots.txt because this request is about crawl rules for a host, not the contents of an ordinary HTML page. The Google robots.txt specification describes the behavior in broad terms:
- During the first 12 hours, Google stops crawling the site while continuing to try to fetch robots.txt.
- For the next 30 days, Google can use the last successfully fetched version while continuing to look for a newer one. Google says it retries relatively frequently when robots.txt returns 503.
- If there is no cached version, Google assumes there are no crawl restrictions during that period.
- After 30 days, behavior depends on the site's general availability. If the site is generally available to Google, Google treats the file as missing and continues checking. If the site has general availability problems, Google stops crawling while periodically requesting robots.txt.
Google usually caches robots.txt for up to 24 hours, but it can keep the cached version longer when it has trouble fetching the file. These time windows describe documented crawler behavior. They are not a clock for predicting when a particular URL will be requested again. A browser test also cannot tell you which version Google previously fetched successfully.
This is not the same as an ordinary page error
A 503 on a product page concerns that URL. Google treats a 5xx status on page content as a server error and may temporarily slow its crawling. With robots.txt, the request is for the host's crawl-control file. Google cannot simply read crawl rules from a response that failed.
Do not confuse this with a 404 or 403 response from robots.txt. Google treats most 4xx responses for the file as if the file did not exist, so it assumes there are no crawl restrictions. HTTP 429 is the exception. A 403 is therefore not a reliable way to block crawling. If you need to control crawling, publish valid rules where Google can fetch them.
This distinction often leads to a poor incident response: a team sees a 503 and adds Disallow rules to “keep Google away during maintenance.” That does not fix the fetch failure. If Google cannot retrieve the current file, it cannot read the new rules. Restore the request path first, then verify the file that is actually served.
Identify the exact endpoint first
A robots.txt file belongs to a specific origin. https, http, www.example.com, and example.com are different combinations. A different port is a different origin too. Do not put “robots.txt is down” in a ticket without the full URL that failed.
Check at least the variants that your project exposes publicly, for example:
https://example.com/robots.txthttps://www.example.com/robots.txthttp://example.com/robots.txt
If HTTP redirects to HTTPS, record the status and destination. This guide focuses on the 503 case, but a failure can happen before or during a redirect. Testing only one host variant is not enough if users or crawlers may request other public hosts.
Make controlled requests with timestamps and keep the status, response headers and body. One 503 can be transient. Repeated responses during the same period, or matching entries in CDN and origin logs, point to a sustained pattern. Avoid browser extensions that add request headers or authentication if you want to reproduce the public request cleanly.
A simple starting point in a terminal is:
bashcurl -i -L --max-redirs 5 --max-time 20 https://example.com/robots.txt
The value 5 is curl's own stop limit, not a simulation of Googlebot. Compare the observed chain separately with Google's documented handling of robots.txt redirects.
-L follows redirects; -i shows the response headers in the chain and the body at the end. Google documents a limited number of redirect hops for robots.txt. Check the initial status, each Location, the final status and final body rather than treating the first 3xx response as a failure by itself. This command only shows what that request receives from your network. It does not prove what Google saw from another network or at another time. Repeat the request in a controlled way and compare it with infrastructure logs.
Trace the failure through the infrastructure
An application can return a 503, but so can a layer in front of it. Check the CDN, WAF, reverse proxy, load balancer, DNS or hosting infrastructure. The status code does not identify the component. Look for a request ID or timestamp and compare several layers:
- Public edge: What response comes back from the URL Google is expected to reach? Record the status, redirects,
Retry-After,Cache-Control,Age, and any cache or request IDs. Headers such asX-Cacheare vendor-specific; their meaning depends on the CDN. - WAF and security rules: Check whether a bot policy, rate limit or protection rule affects only
/robots.txt. A legitimate Googlebot should not be blocked broadly, but a User-Agent string by itself does not prove that a request came from Google. - Load balancer and proxy: Review health checks, unavailable backends, timeout limits and response overrides. A proxy can return an error even when the application did not return that same status.
- Origin and application: If infrastructure permits, request the file directly from the origin. Compare the time and response body with the edge. A successful origin request does not prove that the public path works.
- Configuration and deployment: Check whether a policy change, rollout, rewrite or cache rule changed around the first observed error. Avoid changing several things at once, or it becomes harder to isolate the cause.
A neutral example: the origin returns 200 for /robots.txt, but the public CDN endpoint returns 503. That points the next investigation toward the edge or proxy layer. If both return 503, expand the investigation to backend health and resource pressure. This is an illustration of a diagnostic path, not a result from a customer project.
Verify recovery beyond the status code
When the infrastructure responds again, check the public URL. A 3xx status at the first hop can be part of a valid redirect. Check the full chain and read the body at its destination. A successful 2xx response there is useful evidence, but it is not a complete acceptance test. Is it the intended robots.txt file, or an empty, generic or cached error page? Is it served as UTF-8 text? Are the rules correct for this host, and have important areas been excluded by mistake?
Compare the public response with the expected version and the origin. A 200 for one host does not automatically repair www, HTTP or another relevant domain. If a front layer still serves an error or an old file, recovery is not complete end to end.
Put a clear acceptance criterion in the incident ticket that fits your architecture. For a service without redirects, it could be: “The public HTTPS endpoint returns the expected text and 200 on three controlled requests; CDN and origin logs show no 503 for the same period.” If redirects are part of the setup, the criterion should also name the expected chain and valid destination. These checks verify the technical path; they do not establish that Google has recrawled or indexed pages.
What Search Console and server logs can prove
Google recommends the Search Console Crawl Stats report when investigating crawling and availability issues. The report can help you see host availability and errors in crawl history. Your server and CDN logs can add details about when robots.txt requests arrived and which layer responded.
Logs can show a request with Googlebot-like behavior or an IP that passes Google's verification process. A User-Agent string in the log is not an identity check by itself. Verify the source with Google's procedure if the origin of a request matters to your diagnosis.
Even a verified request proves only that a fetch occurred at a particular time. Crawl Stats and logs do not show that every affected URL was visited again after recovery. They do not prove indexing either. Keep the questions separate: Was robots.txt reachable? Were individual URLs crawled? Are they indexed? Each requires the right evidence.
Common assumptions to avoid
“A 503 means Google is ignoring the rules.” That does not follow. Google documents staged handling and may continue using a last good file.
“If Google cannot fetch robots.txt, crawling is blocked.” A 5xx stops crawling initially, but with a longer outage the behavior depends on cache and general site availability. A failed fetch is not a stable control mechanism.
“A 200 proves the problem is fixed.” Not if the file is empty, wrong, cached or served for the wrong host.
“Retry-After sets Google’s next request time.” The header can suggest a wait. It does not promise an exact Googlebot fetch time.
“robots.txt controls indexing.” The file controls crawling, not inclusion in the index directly. That is the distinction between crawling and indexing. A URL may be known through other paths even when it cannot be crawled. robots.txt alone is not the right tool for removing a URL from search.
If a 503 recurs, handle it like an infrastructure incident and work backward from the public endpoint to the origin. Put rule content on the checklist after the request path is healthy. The advanced technical SEO guide puts this kind of finding into the wider technical picture. For the immediate concepts, read about robots.txt, crawl budget, and Google Search Console. If a page remains absent after crawling access returns, the guide to Crawled - currently not indexed covers other causes to investigate.
A short incident checklist
- Record the full URL, host, scheme and time of the 503.
- Request the public endpoint and origin separately.
- Compare CDN, WAF, proxy, load balancer and application logs with matching timestamps or request IDs.
- Do not infer real Googlebot identity from User-Agent text alone.
- After the fix, check the status and the served text.
- Compare the intended rules across every relevant host variant.
- Treat Search Console crawl data and logs as fetch evidence, not proof of indexing.
A repeatable diagnosis can be recorded in a Site Audit. For prioritizing follow-up work, the SEO audit guide shows how to connect a finding to scope and an acceptance criterion.