In short
Between search engines and your site there is often a CDN (Content Delivery Network), a WAF (Web Application Firewall) and security modules from the host or the CMS. Each of them can respond to Googlebot and Bingbot with a 403, a 429 or a challenge page, without anything showing up on your side. This check consists of reviewing these layers and verifying that genuine search crawlers receive a 200, including on CSS, JavaScript and image files. AI crawlers are covered in check CDN, Cloudflare and WAF (opens in a new tab).
Why it matters
A firewall knows nothing about robots.txt: it applies its own rules before the request reaches the server. Search crawler blocking comes from a few recurring causes:
- JavaScript challenges or CAPTCHAs: a search crawler does not solve them. It receives a challenge page instead of the content.
- Rate limiting: Googlebot can send several requests per second on a large site. A rule designed for humans bans it.
- Geo-blocking: Googlebot mainly crawls from addresses located in the United States. Refusing that country means refusing Google.
- Network reputation: crawlers come from data centers, the very profile that anti-scraping protections reject by default.
- Incomplete address lists: Google publishes several lists. An exception limited to Googlebot forgets AdsBot, Google-InspectionTool or the Search Console ownership verifier, which come from other ranges.
Google documents the consequences: a page that returns 403 drops out of the index, and repeated 5xx or 429 errors lower the crawl rate and then cause URLs to drop out. Network errors and timeouts are treated as 5xx. Partial blocking of resources is more insidious: the page is crawled but rendered without CSS or without content loaded by JavaScript.
What it improves
- Crawling and indexing Search crawlers receive the real content, with no challenge or refusal.
- Rendering The CSS and JavaScript files and the API calls needed for display are accessible. See allow required CSS/JS resources (opens in a new tab).
- Indirect AI visibility AI Overviews rely on Google's index and Copilot on Bing's; a site blocked for Googlebot or Bingbot disappears from them too.
- Tools Ownership verification, URL Inspection and the Rich Results Test work.
- Security Exceptions rely on verified identity, not on a user agent that anyone can spoof.
How to check
1. The test that comes from Google's addresses. In Search Console, URL Inspection, with the “Test live URL” button, sends a real request from Google's infrastructure. Open “View tested page”: the HTTP code, the screenshot and the resources tab show what Google receives. A challenge page in the screenshot or resources marked “Other error” point to a firewall. Do the same with the live test in Bing URL Inspection.
2. Google's reports. In the Crawl stats report, a spike in “Other client error (4XX)”, “Server error (5XX)” or “Page could not be reached” often gives away a firewall. In Page indexing, look for “Blocked due to access forbidden (403)”.
3. The origin logs. Compare the codes received by genuine crawlers:
grep -E "Googlebot|bingbot" /var/log/nginx/access.log | awk '{print $9}' | sort | uniq -c | sort -rn
Healthy result: an overwhelming majority of 200 and 304. A sudden drop in the number of Googlebot requests in the logs, while Search Console keeps reporting crawls, indicates blocking upstream, at the CDN.
4. The user-agent test. It detects rules that target the crawler's name, not those that filter by address:
curl -s -o /dev/null -D - -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" https://example.com/ \
| grep -i -E "^HTTP|^server:|^cf-mitigated:|^x-amzn-waf-action:|^x-sucuri"
Good to know: a well-configured firewall blocks your fake Googlebot, since it does not come from Google's addresses. A 403 on this test is therefore not necessarily a problem; URL Inspection and the logs settle the question.
How to implement
Before you start
List the layers, from the outside in, and answer three questions for each: does it block by country, by rate or with a challenge? Where are its logs? Can it recognize a verified crawler?
| Layer | Examples | Where to look |
|---|---|---|
| CDN and anti-bot protection | Cloudflare, CloudFront and AWS WAF, Fastly, Akamai, Sucuri | security events, sampled requests |
| Server module | ModSecurity, Imunify360, Fail2ban, CrowdSec, limit_req |
module logs, ban lists |
| Application | Wordfence, anti-spam plugin, rate-limiting middleware | plugin log |
Two rules for all exceptions:
- Verified identity, never the user agent alone: verified bot status provided by the CDN, forward-confirmed reverse DNS, or official ranges. See verify crawler identity against official IP ranges if possible (opens in a new tab).
- All of Google's lists when you work by address:
| List | Crawlers concerned |
|---|---|
https://developers.google.com/static/crawling/ipranges/common-crawlers.json |
Googlebot, Googlebot-Image, Storebot-Google, Google-InspectionTool, GoogleOther |
https://developers.google.com/static/crawling/ipranges/special-crawlers.json |
special-case crawlers such as AdsBot |
https://developers.google.com/static/crawling/ipranges/user-triggered-fetchers.json and user-triggered-fetchers-google.json |
user-triggered fetches, such as the Search Console ownership verifier |
https://www.bing.com/toolbox/bingbot.json |
Bingbot |
Keep challenges on the areas that need them (login, sign-up, forms, internal search) and never on public content pages.
Cloudflare
Versions Cloudflare dashboard, all plans (Super Bot Fight Mode from the Pro plan), November 2026.
Googlebot and Bingbot are verified bots in the Search Engine Crawler category. Review these settings:
- Bot Fight Mode (Free plan), in
Security > Settings,Bot trafficfilter. No rule can bypass it. If URL Inspection shows a challenge page, turn it off. - Super Bot Fight Mode (paid plans), same page:
Verified botsset toAllow. IfStatic resource protectionis on, check that resources still get through in the Search Console live test. - “I'm Under Attack” mode: it presents a challenge to every visitor. Cloudflare documents no exemption for search crawlers: reserve it for an ongoing attack and turn it off afterward.
- Custom rules in
Security > Security rules: any rule that blocks or challenges by country, by ASN (autonomous system number, which identifies a network) or by score must exclude verified bots. Example of geo-blocking that spares search engines:
(ip.src.country in {"CN" "RU"} and not cf.client.bot)
- Rate limiting: the same
not cf.client.botcondition in the expression of each rule. - Diagnosis: in security events, filter on the user agent “Googlebot”, then “bingbot”. Each event shows the service and the rule responsible.
To guarantee that crawlers get through before any other rule, create a Skip rule at the top of the list:
(cf.client.bot and cf.verified_bot_category eq "Search Engine Crawler")
Select the remaining custom rules, rate limiting rules, managed rules and Super Bot Fight Mode rules. Bot Fight Mode remains outside the reach of this rule.
AWS
Versions AWS WAF (Bot Control, common level) and CloudFront, consoles as of November 2026.
- AWS WAF and Bot Control: the
CategorySearchEnginerule only blocks unverified search crawlers. Genuine Googlebot and Bingbot receive theawswaf:managed:aws:bot-control:bot:verifiedlabel. Check this in the sampled requests of the AWS WAF console. - Rate-based rules: they do not distinguish crawlers. Place them after Bot Control and exclude the
bot:verifiedlabel with aNotStatementcondition. - Upstream proxy: Bot Control verifies crawlers from the request's origin IP address. If another CDN sits in front of CloudFront or the Application Load Balancer, genuine crawlers become unverified.
- CloudFront geographic restrictions: in the CloudFront console, on the distribution's
Securitytab, a list that excludes the United States excludes Googlebot. Prefer an AWS WAF geographic rule that exempts verified bots.
Nginx
Versions Nginx 1.18 and later, with the geo, map, limit_req and realip modules.
Exempt verified crawlers from limit_req based on the official ranges:
{
curl -s https://developers.google.com/static/crawling/ipranges/common-crawlers.json
curl -s https://developers.google.com/static/crawling/ipranges/special-crawlers.json
curl -s https://developers.google.com/static/crawling/ipranges/user-triggered-fetchers.json
curl -s https://developers.google.com/static/crawling/ipranges/user-triggered-fetchers-google.json
curl -s https://www.bing.com/toolbox/bingbot.json
} | jq -r '.prefixes[] | (.ipv4Prefix // .ipv6Prefix) + " 1;"' | sort -u \
| sudo tee /etc/nginx/snippets/moteurs-ips.conf
# http context
geo $moteur_ip {
default 0;
include /etc/nginx/snippets/moteurs-ips.conf;
}
map $moteur_ip $cle_limite {
0 $binary_remote_addr;
1 "";
}
limit_req_zone $cle_limite zone=parip:10m rate=10r/s;
An empty key is not counted. Behind a CDN, configure real_ip first so that Nginx sees the crawler's address and not the proxy's. Schedule a weekly regeneration of the file, then run sudo nginx -t && sudo systemctl reload nginx.
Apache
Versions Apache 2.4; ModSecurity 2.9 with the OWASP Core Rule Set 4.
With ModSecurity and the OWASP Core Rule Set, look for the IDs of rules triggered by crawlers:
sudo grep -E "Googlebot|bingbot" /var/log/apache2/modsec_audit.log | grep -o 'id "[0-9]*"' | sort | uniq -c | sort -rn
Fix the offending rule for the URL concerned rather than disabling ModSecurity. If you use mod_evasive, note that its DOSWhitelist directive only accepts wildcard addresses (66.249.*.*), with no notion of CIDR ranges or verification: raise its thresholds (DOSPageCount, DOSSiteCount) instead so that a fast crawler is not banned. Reload with sudo apachectl configtest && sudo systemctl reload apache2.
Plesk
Versions Plesk Obsidian 18.0.
Three modules to check, from Tools & Settings:
- Fail2ban (
IP Address Banning): review the banned addresses and the jail that banned them. A jail on 404 errors or fast requests can ban Googlebot. Add the search engine ranges to the trusted IP addresses. - ModSecurity (
Web Application Firewall): the log shows the rule ID; disable it for the domain if it blocks legitimate crawlers. - Imunify360, if installed: see the cPanel section.
cPanel
Versions cPanel & WHM 110 and later (Jupiter interface), with Imunify360 7 or 8.
cPanel servers often run Imunify360. It has dedicated handling for search crawlers, but an address placed on the gray list receives a JavaScript challenge. If Search Console reports errors you cannot reproduce, ask your host to look for Google's and Bing's addresses in Imunify360's gray and black lists. In cPanel, Security > ModSecurity lets you disable ModSecurity per domain for the duration of a diagnosis.
Shared hosting
You control neither the firewall nor the server modules. Gather the evidence (URL, date and time, code received by Google in URL Inspection or in crawl stats) and send it to support. If the host cannot fix anything, putting a CDN in front of the site solves nothing: the blocking happens at the origin.
WordPress
Versions WordPress 6.0 to 7.1; Wordfence 8 and 9.
- Wordfence: in the firewall options, under Rate Limiting, the setting for Google's crawlers should exempt verified Google crawlers. Other crawlers, including Bingbot, follow the general thresholds: do not block crawlers that exceed the limit, throttle them. Live Traffic shows blocked requests.
- Firewall or anti-spam plugins (All-In-One Security, Sucuri, CAPTCHA plugins): make sure none of them imposes a CAPTCHA on content pages or bans addresses after a few 404s.
- Managed WordPress host: its anti-bot protection can come on top of the plugins. Ask whether it exempts verified crawlers.
Shopify
Versions Shopify, all plans, November 2026.
Shopify manages the CDN and the anti-bot protection; search crawlers are accepted. Your leverage is limited to the robots.txt.liquid template and to installed apps: remove any app that adds an age verification wall or a CAPTCHA before the content is displayed. The same applies to Wix, Squarespace and Webflow.
Common mistakes
- Testing with a fake Googlebot and drawing conclusions: the firewall legitimately blocks the imitation. Use Search Console URL Inspection.
- Allowing by user agent alone: every scraper claims to be Googlebot.
- Only exempting the Googlebot list: AdsBot, the ownership verifier and special-case crawlers come from other ranges.
- Blocking the United States to reduce spam: you refuse most of Google's crawling.
- Leaving “I'm Under Attack” mode on after the incident: every crawler receives a challenge for weeks.
- Protecting static files without exceptions: the page is crawled, but rendered without CSS or JavaScript.
- Ignoring temporary bans: Fail2ban or Imunify360 ban an address for a few hours, which produces intermittent errors that are impossible to reproduce.
Frequently asked questions
Does Cloudflare Bot Fight Mode block Googlebot?
Cloudflare's Bot Fight Mode targets traffic that looks like known bots, whereas Googlebot is a verified bot. However, it accepts neither settings nor rule-based exceptions. If the live test in Search Console URL Inspection shows a challenge page or resources in error, turn it off. On paid plans, Super Bot Fight Mode lets you explicitly allow verified bots.
How do I know whether my firewall is blocking Google?
Run the live test in Search Console URL Inspection: the request comes from Google's addresses, so it goes through your firewall just like the real crawler. A challenge page in the screenshot, a 403 code or resources in error point to blocking. Cross-check with the Crawl stats report and your CDN's security events, filtered on the Googlebot user agent.
Can I block certain countries without harming SEO?
Yes, as long as verified search crawlers are exempt from the geo-blocking rule. Googlebot mainly crawls from addresses located in the United States: that country must never be refused without an exception. On Cloudflare, add the not cf.client.bot condition to the expression; on AWS WAF, exclude the verified bot label. CloudFront geographic restrictions do not allow exceptions.
Can rate limiting harm indexing?
Yes, if it returns 429 or bans search crawlers. Google treats the 429 code as a server error: it slows down crawling and eventually removes from the index URLs that keep returning this code. Exempt verified crawlers from rate-limiting rules, based on the status provided by the CDN or on their official address ranges, and keep strict thresholds for the rest of the traffic.
Resources
- Google: Verifying Googlebot and other Google crawlersdevelopers.google.com
- Google: Overview of Google crawlers and fetchersdevelopers.google.com
- Google: How HTTP status codes affect crawling and network and DNS errorsdevelopers.google.com
- Bing: Verify Bingbotbing.com
- Cloudflare: Bot Fight Mode and verified botsdevelopers.cloudflare.com
- AWS WAF: Bot Control rule groupdocs.aws.amazon.com
Updated on
Topic checklist (PDF)