Skip to content
Nazmul Nikhil
Menu

Robots.txt Is Not Accessible (Ahrefs): Why It Can Stop Google Crawling

Ahrefs couldn't fetch your robots.txt. A server error here can make Google pause crawling your whole site. Here's what each response means and how to fix it.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Robots.txt Is Not Accessible (Ahrefs): Why It Can Stop Google Crawling
Photo: Timon Reinhard on Unsplash

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

  1. Open https://yoursite.com/robots.txt and check the status code with curl -I.

  2. Make sure it's plain text and returns 200 for both browsers and bots.

  3. If your platform generates it dynamically, a static file is the most reliable option.

  4. Check the robots.txt report in Search Console for fetch errors.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditRobots.txt not accessibleRobots.txt 500 errorRobots.txt unreachable
Nazmul Nikhil

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.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com