Indexability · Blocked by robots.txt

Disallowed JavaScript file

A JavaScript file the page needs is blocked by robots.txt, so Google cannot render the page as users see it.

How this page is built

This page loads a script from /assets/disallowed/, which is disallowed in robots.txt. The script updates the next paragraph.

The blocked script has not run.

Why it matters

Many pages rely on JavaScript to add content, links or interactive features. If a script is blocked by robots.txt, Google renders the page without it and only sees what the server sent in the raw HTML.

Content or links that the script would have added are then missing from Google’s view of the page, which can mean lost rankings and pages that are never discovered.

How to check it

Run a live test in the URL inspection tool in Google Search Console, then compare the rendered HTML with the HTML in your browser’s developer tools. The page resources list shows blocked scripts, and a robots.txt testing tool will show the exact rule that blocks each one.

How to fix it

Allow crawling of every script that pages need in order to render properly. Remove broad rules that block script folders, or add specific Allow lines for them.

Use the URL inspection tool in Google Search Console to compare the rendered HTML with what visitors see, and check the list of blocked resources until it is empty.

Back to all tests