Googlebot Renders Broken Page Because `robots.txt` Disallowed `/assets/`

Blocking CSS/JS assets prevents Googlebot’s headless Chromium from rendering layout and mobile friendliness.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Googlebot Renders Broken Page Because `robots.txt` Disallowed `/assets/` Platform: SEO
Common Root Causes:
  • Blocking CSS/JS assets prevents Googlebot’s headless Chromium from rendering layout and mobile friendliness.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Never disallow `/assets/`, CSS, or JS files in `robots.txt`; block only private/admin endpoints.
Safe Diagnostic Command:
curl -s https://<domain>/robots.txt
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Blocking CSS/JS assets prevents Googlebot’s headless Chromium from rendering layout and mobile friendliness. Recommended diagnostic: `curl -s https://<domain>/robots.txt`. Remediation: Never disallow `/assets/`, CSS, or JS files in `robots.txt`; block only private/admin endpoints.

Worked Examples

  • Run `curl -s https://<domain>/robots.txt` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-seo-robots-txt-blocked-css-js · Independently verified: 2026-11-25

Related Resources