In short
Ahrefs flags "Robots.txt is not accessible" when it can't fetch your robots.txt. What Google does depends on the response. A 4xx (like 404) is treated as "no rules," so crawling continues. A 5xx or network error is treated as a full block at first: Google stops crawling the site for about 12 hours, then uses a cached copy for up to 30 days. Make robots.txt return 200 reliably.
It's easy to think robots.txt only matters when it blocks something. If it can't be fetched at all, the consequences depend on why.
What each response means for Google
| Response | Google's behavior |
|---|---|
| 200 | Reads and follows the rules |
| 404 or other 4xx (except 429) | Acts as if there's no robots.txt; crawls everything |
| 5xx, 429 or network error | Stops crawling the site for about 12 hours; then uses the last good copy for up to 30 days |
| Still failing after 30 days | Crawls as if no robots.txt if the site is otherwise up |
Common causes
A firewall or CDN blocking bots from the file (403 to crawlers)
Server errors on a robots.txt generated by the CMS or app
A single-page app returning its HTML shell or an error
Maintenance mode returning 503 for every path
How to fix it
Open
https://yoursite.com/robots.txtand check the status code withcurl -I.Make sure it's plain text and returns 200 for both browsers and bots.
If your platform generates it dynamically, a static file is the most reliable option.
Check the robots.txt report in Search Console for fetch errors.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
Google Search Central, How Google interprets the robots.txt specification
Google Search Console Help, robots.txt report

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



