Indexability · Blocked by robots.txt

Disallowed image

An image used on the page is blocked by robots.txt, so it cannot be crawled or appear in image search.

How this page is built

The image below is stored in /assets/disallowed/, which is disallowed in robots.txt.

A grey test card with the words disallowed image

Why it matters

Search engines need to fetch an image to understand it, show it in image search, or use it as a preview for the page. A robots.txt rule that blocks the image path stops all of that.

Blocking images is sometimes deliberate, for example to keep private photos out of image results, but it is often an accident caused by a broad rule such as disallowing an assets or uploads folder.

How to check it

Paste the image address into a robots.txt testing tool and see which rule blocks it. In Google Search Console, the URL inspection tool lists blocked page resources after a live test. A crawl with robots.txt respected will also report every image, script and stylesheet that cannot be fetched.

How to fix it

Check which robots.txt rule matches the image with a robots.txt testing tool, then decide whether the block is intended.

If the image should be crawlable, narrow or remove the rule, or add a more specific Allow line for the image folder. If it should stay out of image search, a noimageindex directive or an X-Robots-Tag header on the image keeps it crawlable while still excluding it.

Back to all tests