← All articles
·7 min read

Robots.txt Unreachable? Check Cloudflare

Search Console says robots.txt is unreachable, but it loads fine in your browser? Cloudflare may be blocking Googlebot. Here's how we found it and how to fix it.

The Problem

You open Google Search Console, run URL Inspection → Test live URL, and get:

URL is not available to Google. Page fetch: Failed: Robots.txt unreachable.

Then you open yourdomain.com/robots.txt in your browser and it loads perfectly. So what's going on?

The answer is usually that Google's crawler gets a different response than you do. If your site is behind Cloudflare (or another firewall or CDN), a security rule may be blocking, challenging or rate-limiting Googlebot while letting normal visitors through.

Why This Is Serious

Google fetches robots.txt before it crawls anything else. Per Google's robots.txt documentation, if robots.txt returns a server error (5xx) or a 429 "too many requests", Google treats the whole site as off-limits for a while. If the errors continue, Google relies on an older cached copy for up to 30 days before deciding what to do next.

In practice, a robots.txt that Google can't reach can stop your whole site from being crawled. New pages don't get discovered and nothing gets indexed, even though everything looks fine to you.

How We Ran Into It

This happened on one of our own sites: a new site, zero pages indexed, and robots.txt "unreachable" in the live test, twice in a row. robots.txt loaded fine from our office and from servers in other countries. Even requests sending Googlebot's user agent worked.

To narrow it down, we used Google's own tools, because they fetch from Google's network:

  • Rich Results Test (uses Googlebot from Google's IPs): failed on the affected site.
  • The same test on another site on the same server and the same Cloudflare account: passed.
  • PageSpeed Insights (Google's IPs, but a normal Chrome user agent): loaded fine.

So the server was fine, Google's network could reach it, and only real Googlebot on that one hostname was failing. That pattern points to a Cloudflare rule that applies to that hostname and acts on Googlebot. Once Google could fetch robots.txt again, Search Console read the sitemap and discovered over 200 pages.

How to Diagnose It on Your Site

Step 1: Confirm it's only Google

  • Open robots.txt in your browser. If it loads, your server is fine.
  • Run the Rich Results Test on your homepage. If it fails with a fetch error, Googlebot is being blocked.
  • If you have several sites on the same Cloudflare account, test one that works. Comparing the two shows you whether the problem is account-wide or specific to one site.

Step 2: Look at Cloudflare Security Events

In the Cloudflare dashboard, open your domain → Security → Events. Filter by user agent containing Googlebot, or by the affected hostname. Each event tells you the action taken (block, challenge, rate limit) and which feature or rule did it.

Step 3: Check the usual suspects

  • Custom WAF rules: country blocks, user-agent blocks or "challenge everything" rules that don't exclude search engines.
  • Rate limiting rules: a crawler fetching many pages can hit a limit and get 429 errors.
  • Bot settings (Bot Fight Mode, Super Bot Fight Mode, AI-bot blocking). Cloudflare says verified bots like Googlebot are excluded by default, but check the events anyway, since custom rules can still catch them.
  • Under Attack mode or high security levels left on after an incident.

Step 4: Allow verified search bots

Add a skip or allow rule above your blocking rules that matches Cloudflare's "Known Bots" field. Don't allow traffic just because the user agent says "Googlebot". Anyone can fake that. Cloudflare's known-bots check confirms the request really comes from Google.

Step 5: Re-test

Run URL Inspection → Test live URL again. When the page fetch succeeds, click Request indexing for your most important pages and resubmit your sitemap.

How to Verify a Request Is Really Googlebot

If you see "Googlebot" in your logs and aren't sure it's real, use Google's method from Verifying Googlebot: do a reverse DNS lookup on the IP (it should end in googlebot.com or google.com), then a forward lookup on that name to confirm it returns the same IP. Google also publishes its crawler IP ranges.

What an SEO Tool Can and Can't Catch Here

Be careful with tools that say "robots.txt OK". Most crawlers, ours included, fetch your site from their own servers, not from Google's. If your firewall only blocks real Googlebot, an outside tool will see a healthy robots.txt.

What SEO Platform's audit does catch: a robots.txt that returns a server error or can't be reached at all, robots.txt rules that block your whole site or important pages, pages returning 429 or 5xx, and slow server responses. For a Googlebot-only block, Google's own tools above are the source of truth.

Run a free audit to rule out the problems on your side first.

Umer Hammad Anser

Founder, SEO Platform

Founder of SEO Platform, built so SEO audits end in real fixes, not just reports. Writes about ranking new sites and getting SEO work done.

Ready to improve your SEO?

Scan your site free — 100+ checks, results in 60 seconds.

Start your free audit