{
    "title": "robots.txt blocks the site’s script files",
    "description": "robots.txt stops Googlebot fetching JavaScript files, so Google cannot render the page the way visitors see it.",
    "url": "https://ursy.com/issues/scripts-blocked-for-google/",
    "canonical": "https://ursy.com/issues/scripts-blocked-for-google/",
    "markdown": "https://ursy.com/issues/scripts-blocked-for-google/index.md",
    "json": "https://ursy.com/issues/scripts-blocked-for-google/index.json",
    "published": "2026-11-29T21:57:25+00:00",
    "updated": "2026-11-30T12:53:05+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/scripts-blocked-for-google/",
    "start_here": {
        "page": "https://ursy.com/issues/scripts-blocked-for-google/",
        "markdown": "https://ursy.com/issues/scripts-blocked-for-google/index.md",
        "json": "https://ursy.com/issues/scripts-blocked-for-google/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "scripts-blocked-for-google",
        "problem": "robots.txt blocks the site's script files",
        "summary": "robots.txt stops Googlebot fetching JavaScript files, so Google cannot render the page the way visitors see it.",
        "status": "Live",
        "priority": "high",
        "category": "javascript",
        "category_title": "JavaScript and rendering",
        "why_it_matters": [
            "Google renders pages like a browser to see their full content. Google Search Central says it does not render JavaScript from blocked files. If the scripts that build the page are blocked, Google may see a broken or empty page.",
            "Old robots.txt files often block folders such as /wp-includes/ or /assets/ to save crawling. That made sense once, but now it hides the code the page needs."
        ],
        "how_to_fix": [
            "Remove the Disallow rules that cover your JavaScript and CSS files, or add Allow rules for them, for Googlebot and for *. Keep blocking only what really should not be crawled.",
            "Test the change with the Robots.txt Checker, then check again with the JavaScript SEO Checker."
        ],
        "steps": [],
        "check_it_is_fixed": "Test a script address with the Robots.txt Checker, then run the JavaScript SEO Checker again: no script files should be blocked for Googlebot.",
        "found_by": [
            {
                "tool": "javascript-seo-checker",
                "name": "JavaScript SEO Checker",
                "status": "Live",
                "page": "https://ursy.com/javascript-seo-checker/",
                "card": "https://ursy.com/javascript-seo-checker.json"
            },
            {
                "tool": "robots-txt-checker",
                "name": "Robots.txt Checker",
                "status": "Live",
                "page": "https://ursy.com/robots-txt-checker/",
                "card": "https://ursy.com/robots-txt-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/scripts-blocked-for-google",
        "source": {
            "url": "https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript",
            "title": "Google Search Central: Fix Search-related JavaScript problems"
        },
        "cite": "robots.txt blocks the site's script files. URSY.com. https://ursy.com/issues/scripts-blocked-for-google/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#wordpress"
        },
        {
            "level": 3,
            "text": "Shopify",
            "id": "shopify",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#shopify"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#a-hand-made-site"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#questions"
        },
        {
            "level": 3,
            "text": "Why did people block these folders?",
            "id": "why-did-people-block-these-folders",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#why-did-people-block-these-folders"
        },
        {
            "level": 3,
            "text": "Will unblocking them put code in search results?",
            "id": "will-unblocking-them-put-code-in-search-results",
            "url": "https://ursy.com/issues/scripts-blocked-for-google/#will-unblocking-them-put-code-in-search-results"
        }
    ],
    "links": [
        {
            "text": "robots.txt",
            "url": "https://ursy.com/wiki/robots-txt/",
            "internal": true
        },
        {
            "text": "Googlebot",
            "url": "https://ursy.com/wiki/googlebot/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "crawling",
            "url": "https://ursy.com/wiki/crawling/",
            "internal": true
        },
        {
            "text": "CSS",
            "url": "https://ursy.com/wiki/css/",
            "internal": true
        },
        {
            "text": "JavaScript SEO",
            "url": "https://ursy.com/wiki/javascript-seo/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "SEO",
            "url": "https://ursy.com/wiki/seo-search-engine-optimisation/",
            "internal": true
        },
        {
            "text": "Google Search Central: Fix Search-related JavaScript problems",
            "url": "https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript",
            "internal": false
        }
    ],
    "words": 559,
    "text": "robots.txt stops Googlebot fetching JavaScript files, so Google cannot render the page the way visitors see it. Why it matters Google renders pages like a browser to see their full content. Google Search Central says it does not render JavaScript from blocked files. If the scripts that build the page are blocked, Google may see a broken or empty page. Old robots.txt files often block folders such as /wp-includes/ or /assets/ to save crawling. That made sense once, but now it hides the code the page needs. How to fix it Remove the Disallow rules that cover your JavaScript and CSS files, or add Allow rules for them, for Googlebot and for *. Keep blocking only what really should not be crawled. Test the change with the Robots.txt Checker, then check again with the JavaScript SEO Checker. What the problem looks like User-agent: * Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /assets/js/ Old rules that hide the scripts Google needs to render the page. What it looks like fixed User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Scripts and styles are open; only the admin area stays blocked. Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: Help me let Google render my pages. My site is [your website address], built with [your platform, e.g. WordPress]. A checker says robots.txt blocks Googlebot from some JavaScript files, so Google cannot render pages the way visitors see them. First, read my robots.txt (or ask me to paste it) and the script and style addresses in the source of [the page address]. Work out which group Googlebot follows and which rules block which files. Explain plainly what is blocked. Then give me the full corrected robots.txt: remove or narrow the rules that cover scripts and styles, or add Allow rules for them. Rules: back up the file first, keep every other rule and the sitemap line, keep private areas blocked, and add nothing that blocks real visitors or search engines. Give the full file and where it goes. Tell me that Search Console's URL Inspection can show resources it could not load. Finally, tell me to re-check with the URSY.com JavaScript SEO Checker at ursy.com/javascript-seo-checker/. Fix it on your platform WordPress Edit robots.txt in your SEO plugin's robots.txt editor, or the real robots.txt file in the root folder. Remove rules for /wp-includes/, /wp-content/plugins/ and /wp-content/themes/. Shopify Shopify's default robots.txt does not block theme scripts. Check any custom rules in the robots.txt.liquid template. A hand-made site Remove Disallow rules for script and style folders, or add Allow rules for .js and .css files, for Googlebot and for *. Check it is fixed Test a script address with the Robots.txt Checker, then run the JavaScript SEO Checker again: no script files should be blocked for Googlebot. Official source Google Search Central: Fix Search-related JavaScript problems Questions Why did people block these folders? Years ago it was common to save crawling that way. Google now renders pages like a browser, so it needs the same files a browser does. Will unblocking them put code in search results? No. Google fetches scripts and styles to render the page; it does not show those files as results.",
    "source": "https://ursy.com/issues/scripts-blocked-for-google/"
}