Server and HTTP · Server behaviour
Googlebot blocked by CDN or firewall
A security rule answers Googlebot with a 403 access denied page, while visitors using a browser see this page as normal.
How this page is built
A Netlify Edge Function on this page acts like an over-strict bot rule. Any request whose user agent contains Googlebot gets a short access denied page with a 403 status code. Every other request gets this page with a 200.
Both responses carry a Vary: User-Agent header. To see the block, request the page with curl and the -A Googlebot option.
Why it matters
Web application firewalls, CDNs and bot protection services block automated traffic. When their rules catch Googlebot, Google cannot crawl the page, and if the block lasts, the page drops out of the index.
The block is easy to miss because the site works for every visitor. It often appears only for some pages, or only when Googlebot crawls quickly enough to trip a rate limit.
How to check it
Request the page with a Googlebot user agent and compare the status code with a browser request. Crawl tools can crawl as Googlebot. The crawl stats report in Search Console shows 403 and 429 responses, and URL Inspection shows whether Google could fetch the page.
How to fix it
Allow verified Googlebot through the firewall or bot protection. Verify it by reverse DNS or against Google’s published IP ranges rather than by user agent alone, so fake bots stay blocked.
Review the rules after each change to the firewall or CDN settings.