Skip to content

Cloudflare

Does Cloudflare block Googlebot? How to check and fix it

Cloudflare lists Googlebot as a verified bot. Your own WAF, IP, country, rate-limit, or challenge rules can still block it.

Check the live response first (free, and no sign-up). The free check at IndexDoctor fetches your page from IndexDoctor's server. It does not fetch from Google's IP addresses. It uses this browser user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36. It then live-fetches that same URL as only these three crawlers:

  • Googlebot: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
  • GPTBot: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.2; +https://openai.com/gptbot
  • ClaudeBot: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ClaudeBot/1.0; +https://claude.com/bot

Google's common crawlers page lists that Googlebot string as rare. The check does not send the smartphone or desktop Googlebot strings on that page. It fetches robots.txt once, with the Googlebot user-agent above, and applies that file to every crawler token in the report: Googlebot, Bingbot, Google-Extended, GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Perplexity-User, Applebot-Extended, CCBot, Bytespider, Amazonbot, and Meta-ExternalAgent. The live column is filled only for Googlebot, GPTBot, and ClaudeBot. Every other row says Not probed. A 401, a 403, or a status of 500 or higher on those three fetches is marked blocked. On the browser fetch, a status of 400 or higher is reported as an HTTP error. No account needed.

Check my page free

The site is on Cloudflare. A normal browser still loads the page. Google is not indexing it, or Search Console shows an error. The question is whether Cloudflare is refusing Googlebot, and how to tell a real Google request from a user-agent that only says Googlebot.

This page is about Googlebot and the rules that can stop it. Managed robots.txt and Cloudflare's AI crawler policies are covered in Cloudflare blocking AI crawlers. Bot Fight Mode and AI search crawlers are covered in Is Cloudflare Bot Fight Mode blocking GPTBot or ChatGPT search?. The same kind of firewall question on Vercel is covered in Is Vercel's firewall blocking GPTBot or ClaudeBot?.

The short answer

Not by default. Cloudflare's verified bots page lists Googlebot as an example of a Search Engine Crawler. A Verified bot identifies itself with a Web Bot Auth signature, a published IP list and a stable user-agent, or reverse DNS, and it obeys robots.txt. Cloudflare says Verified bots have historically been excluded from default bot configurations.

Your own rules can still stop the request. Cloudflare's Improve SEO page says to check that WAF custom rules are allowing Verified Bots, that rate limiting rules are allowing Verified Bots, and that bot protection settings are not blocking them. IP Access rules can allow, block, or challenge by IP address, ASN, or country. A user-agent that only says Googlebot is not, by itself, a Verified bot. Google says the HTTP user-agent string can be spoofed.

Signs Search Console is seeing a failed fetch

In the Page indexing report, two reasons match a refused or broken fetch:

  • Blocked due to access forbidden (403). Google says HTTP 403 here means the server refused access. Googlebot does not send credentials, so the page will not be indexed. See Blocked due to access forbidden (403).
  • Server error (5xx). Google says the server returned a 500-level error when the page was requested. See Server error (5xx).

The same report tells you to open the URL Inspection tool and click Test live URL when you can see the page and Google cannot. Google says that live test fetches the URL in real time, and that it checks whether Google-InspectionTool can access the page. It is not a promise the URL will be indexed. Page fetch can fail. Google also says server errors can be transient, so a live test can succeed when a crawl failed, or the other way around. Google's common crawlers page says Google-InspectionTool is the crawler for URL inspection, and that a robots.txt rule for Googlebot also matches that token.

The Crawl stats report is for root-level properties. Host status says whether Google hit availability problems. Crawl responses include Server error (5XX) and Other client error (4XX). Google says a site with fewer than a thousand pages may not need this report. The Page indexing report's server-error section also says to check host status here, and that a misconfigured firewall or DoS protection system can block Googlebot because Googlebot makes more requests than a human user.

A drop in indexed pages is a separate section of the Page indexing report. Open the new error rows before you decide the cause. A sudden traffic drop has more than one explanation. Start with Google traffic dropped overnight.

How to check whether Cloudflare blocked it

  1. Open Security > Analytics and select the Events tab. That is Security Events. It lists requests Cloudflare security products acted on or flagged. It does not list every request. In Top events by source, use User Agents, or show the User agent column on Sampled logs. Cloudflare says events can be sampled, so an empty filter is not proof that nothing was blocked. Choose a shorter time range if the list looks thin. Requests challenged by Bot Fight Mode are labeled Bot Fight Mode in the Service field. Requests challenged by Super Bot Fight Mode are labeled Super Bot Fight Mode in the Service field.
  2. To see requests Cloudflare did not act on, use Security Analytics. Security Events will not show an allowed Googlebot that no rule flagged.
  3. If a blocked request's user-agent says Googlebot, verify the IP before you treat it as Google. Google's verification guide says to run a reverse DNS lookup, check that the name is googlebot.com, google.com, or googleusercontent.com, then run a forward lookup and confirm it is the same IP. The other method is to match the IP to Google's published ranges on that page. Common crawlers such as Googlebot use the ranges in the common-crawlers list.
  4. In Search Console, inspect the URL and click Test live URL. Read Page fetch and Crawl allowed?. A robots.txt block is a different problem from a 403. See robots.txt explained and how to check if Google can index my page.
  5. Paste the URL into the free check. Read the Googlebot row. The status is the HTTP status from our server. Blocked on that row means the status was 401 or 403, or 500 or higher, or the response matched the Cloudflare challenge rules below.

Cloudflare may treat the free check differently from real Googlebot. The check sends a Googlebot user-agent from IndexDoctor's server. Cloudflare's verified bots page says a Verified bot is identified by Web Bot Auth, a published IP list with a stable user-agent, or reverse DNS. Bot Management variables say Cloudflare verifies these bots primarily through reverse DNS, so the source IP matches the requesting service. Our fetch does none of that. A block on our fetch is a signal that this user-agent was refused. A pass on our fetch does not prove Google's own IPs are allowed. Security Events, plus Google's reverse DNS check, is how you confirm the real crawler.

What to change

Do these in order. A later block still wins if an earlier exception does not cover that product.

1. Skip verified bots ahead of custom block rules

Cloudflare's guide to stopping malicious bots says to create the exception before any blocking rule:

  1. Go to Security > Security rules.
  2. Select Create rule > Custom rules.
  3. Choose Edit expression and enter (cf.client.bot).
  4. Choose the action Skip, then All remaining custom rules.
  5. Set Place at to First, then deploy.

cf.client.bot means the request came from a known good bot or crawler. Cloudflare says it provides the same information as cf.bot_management.verified_bot. The WAF FAQ says cf.client.bot is available to all customers, and that cf.bot_management.verified_bot is the Enterprise field. The same FAQ says a custom rule with a Block or Challenge action, matched on URI, path, host, ASN, or country, can unintentionally block known bots.

cf.verified_bot_category is the string for the bot's type. The legacy category Search Engine Crawler has the string value Search Engine Crawler, and Googlebot is the example. Cloudflare says those legacy categories still work in WAF custom rules. The newer behavior names on the verified bots page are not separate WAF fields. Use cf.client.bot for the exception unless you mean one category.

Skip options also include All rate limiting rules, All Super Bot Fight Mode rules, and All managed rules. Select those when the block is not another custom rule. The same page says you cannot skip Bot Fight Mode, only Super Bot Fight Mode. Skipping a phase does not skip products outside the Ruleset Engine. Security Level is one of those products, under Skip products.

Cloudflare's country example challenges some countries and leaves known bots out of the match: (ip.src.country in {"US" "MX"} and not cf.client.bot), action Managed Challenge. That expression is their example for those two countries. It is not a list of countries Google crawls from. Google's verification page does not name crawl countries.

2. Do not block the crawler's IP, ASN, or country by accident

IP Access rules allow, block, or challenge by IP, ASN, or country. They are not in the Skip products list, and Security features interoperability says they run outside the Ruleset Engine. The Skip rule above does not clear an IP Access block. Change that rule itself. Cloudflare says block by country in IP Access rules is only available on Enterprise. Other accounts block a country with a custom rule on ip.src.country. An Allow on an IP or ASN in IP Access rules bypasses custom rules, rate limiting rules, and WAF Managed Rules. IP addresses Cloudflare has globally allowed override an IP Access country block. They do not override a country block written as a custom rule. Cloudflare does not say Googlebot is on that global allow list.

A country or ASN block applies to whatever IP falls in it. Verify a blocked IP with Google's reverse DNS steps before you add it to an Allow. Do not Allow a visitor because its user-agent says Googlebot.

3. Do not rate-limit verified bots

Rate limiting rules say that applying them to verified bots might affect SEO, and point to the Improve SEO page. That page says rate limiting rules should allow Verified Bots. The rate limiting availability table lists Verified Bot as an expression field in every column, including the first. On the Skip rule above, select All rate limiting rules as well as All remaining custom rules. Do not copy a request count from someone else's site. Cloudflare's rate limiting page does not publish a Googlebot threshold.

4. Do not challenge verified bots

In Super Bot Fight Mode, Verified bots is its own grouping, next to Definitely automated traffic and Likely automated traffic. Cloudflare's steps for turning that product off set Verified bots to Allow. Leave it on Allow if you want those bots through. A custom rule can skip Super Bot Fight Mode. Custom rules run before it, so a Block or Managed Challenge in a custom rule stops the request first. See Security features interoperability.

Bot Fight Mode identifies traffic that matches patterns of known bots and issues a challenge. It does not run on the Ruleset Engine. Skip, Bypass, and Allow in that engine do not affect it. If Security Events shows the Service Bot Fight Mode on a request whose IP you verified as Google, turn Bot Fight Mode off. In Security Settings, filter by Bot traffic, then turn Bot fight mode off.

Under Attack mode is off by default. When it is on, visitors get an interstitial page, and Cloudflare describes the Checking your browser before accessing... challenge. That page does not say Verified bots skip the interstitial. It is documented as a last resort. Turn it off when you are not using it that way. Google's note about DoS protection, linked above, is the Search Console side of the same kind of block.

Do not confuse this with AI crawler blocking

AI Crawler and Agent access policies are a different control. In Security > Settings, filter by Bot traffic, then open AI Crawler and Agent access policies. The behaviors are Search, Agent, and Training. Actions include Block, Block on pages with ads, Allow (do not block), and, for Training only, Disallow. Cloudflare says each policy applies to Verified bots with that behavior and to matching unverified bots, and that robots.txt directives are voluntary. For new domains, Search, Agents, and Training use Allow (do not block) by default. Blocking Training is not the same switch as letting Googlebot fetch the site. The steps for that product are in Cloudflare blocking AI crawlers and Bot Fight Mode and AI crawlers.

Google-Extended is not a crawler with its own HTTP request. Google's common crawlers page says crawling is done with existing Google user-agent strings, and that the Google-Extended robots.txt token controls use for Gemini training and for grounding in Gemini Apps and Vertex AI. Google says it does not change inclusion in Google Search and is not a ranking signal. See Google-Extended explained. The free check reads that token from robots.txt. It does not live-fetch as Google-Extended.

Quick checklist

  • [ ] Security Events or Security Analytics shows the blocked request, and the Service field names the product
  • [ ] The blocked IP passes Google's reverse DNS check, or it does not and the client was not Google
  • [ ] URL Inspection Test live URL can fetch the page
  • [ ] A Skip rule for (cf.client.bot) sits first, ahead of custom block rules
  • [ ] Rate limiting rules and Super Bot Fight Mode are in that Skip, or Verified bots is set to Allow
  • [ ] Bot Fight Mode is off if it challenged a request you verified as Google
  • [ ] No IP, ASN, or country block covers that verified crawler
  • [ ] Under Attack mode is off unless you turned it on as a last resort
  • [ ] Google-Extended and the AI crawler policies were not the change you meant for Google Search

How the free check reports a block

The free check is the fetch described at the top. It is free, and it needs no sign-up. For Googlebot, GPTBot, and ClaudeBot, the report row shows the HTTP status. It adds blocked when the status is 401 or 403, or 500 or higher, or when the Cloudflare check below matches. Other crawler rows say Not probed.

A Cloudflare challenge is marked blocked in two cases. The response looks like Cloudflare (a Cloudflare server header, a cf-ray header, or the word Cloudflare in the body), the status is 403, 503, or 429, and the body is a challenge page or a cf-mitigated header is present. Or the cf-mitigated header itself says challenge or block, at any status. The row shows the status and that note. A page that looks like a challenge and returns HTTP 200, with no cf-mitigated value of challenge or block, is noted on the row and is not marked blocked.

When the Googlebot fetch is marked blocked, the summary says A fetch as Googlebot was blocked. When the browser response itself matches a Cloudflare block, or the blocked Googlebot fetch has one of those challenge notes, the summary can also say The server returned a bot challenge or block. The check does not say which Cloudflare product did it. It does not run reverse DNS, and it does not call the URL Inspection API.

It does not request indexing, and it does not change your Cloudflare settings. Search Console reason tracking is opening soon. It is not live yet.

A prompt you can paste

Example

This site is on Cloudflare, and Google is not indexing a URL that a normal browser can open. Do not disallow Googlebot in robots.txt to fix a 403, and do not call an indexing API.

In Cloudflare, create a custom rule at Security > Security rules. Expression: (cf.client.bot). Action: Skip. Include All remaining custom rules, All rate limiting rules, and All Super Bot Fight Mode rules. Place the rule first.

If Super Bot Fight Mode is on, set Verified bots to Allow. If Security > Analytics > Events shows Service "Bot Fight Mode" for a request whose IP passes Google's reverse DNS check, turn Bot Fight Mode off. Skip does not affect Bot Fight Mode.

Do not block or challenge that verified-bot traffic with an IP, ASN, or country rule. Confirm the IP with reverse DNS (googlebot.com, google.com, or googleusercontent.com, then a forward lookup) before treating a Googlebot user-agent as Google. Then in Search Console click Test live URL.

FAQ

Does Cloudflare block Googlebot by default?

Not as a Verified bot. Cloudflare lists Googlebot under Search Engine Crawler and says Verified bots have historically been excluded from default bot configurations. A custom rule, an IP Access rule, a rate limiting rule, or a challenge you turned on can still refuse the request.

Search Console says "Blocked due to access forbidden (403)". Is that Cloudflare?

Google uses that reason when the server returns 403, and says the page will not be indexed. Cloudflare is one place a 403 can come from. Security Events names the product that acted. A 403 from our Googlebot user-agent is not proof, because that fetch is not from Google's IPs.

Does blocking Google-Extended block Googlebot?

No. Google says Google-Extended has no separate HTTP user-agent, and that the token does not change inclusion in Google Search. Googlebot is the crawler for Search. The free check reads both tokens in robots.txt and live-fetches only Googlebot.

Related

Sources