Skip to the content
Start free

robots.txt blocks images from Google

robots.txt stops Googlebot-Image fetching some pictures, so they cannot appear in Google Images or image results.

Medium priority Images and media

Why it matters #

Googlebot-Image follows the robots.txt of the host where the picture is stored. It uses a Googlebot-Image group if there is one, else a Googlebot group, else the * group. A Disallow on an uploads, images or CDN folder keeps those pictures out of Google Images.

That may be on purpose, but often it is an old rule meant to save crawling or hide a folder.

How to fix it #

If you want the pictures in search, remove or narrow the Disallow rule that covers them, in the robots.txt of the host that serves the images. If the images are on a CDN or another domain, that host's robots.txt is the one that counts.

Test the rule with the Robots.txt Checker, then run the Image SEO Checker again.

What it looks like, and fixed #

The problem
User-agent: *
Disallow: /wp-content/uploads/

Googlebot-Image follows the * group here, so no uploaded picture can appear in Google Images.

Fixed
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

The uploads rule is gone; only the admin area stays blocked.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
Help me let Google show my pictures. My site is [your website address], built with [your platform, e.g. WordPress with Yoast], and images are served from [the image host, e.g. a CDN]. A checker says robots.txt blocks Googlebot-Image from some pictures. First, read robots.txt on the host that serves the images (or ask me to paste it), and work out which group Googlebot-Image follows: a Googlebot-Image group if there is one, else Googlebot, else *. Explain plainly which rule blocks which picture folders, and ask me whether any block is on purpose. Then give me the exact new robots.txt: remove or narrow only the rules that block images I want in search. Rules: back up the current file first, keep every other rule and the sitemap line, add nothing that blocks real visitors or other search engines, and change the robots.txt of the right host. Give the full corrected file and where it goes. Finally, tell me to re-check with the URSY.com Image SEO Checker at ursy.com/image-seo-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress

Edit robots.txt in your SEO plugin (Yoast and Rank Math both have a robots.txt editor), or the real robots.txt file in the site's root folder if there is one.

Shopify

Shopify's default robots.txt does not block product images. Custom rules live in the robots.txt.liquid template in the theme code.

Your CDN (for example Cloudflare)

If pictures are served from a CDN or image host on another domain, that host's robots.txt is the one Google follows.

Check it is fixed #

Test the image addresses with the Robots.txt Checker, then run the Image SEO Checker again: no image should be blocked for Googlebot-Image.

Official source #

Google Search Central: Image SEO best practices

Questions #

How soon will my pictures show in Google Images?

Google rereads robots.txt regularly, then has to crawl the pictures again. It can take days or weeks; nobody can promise a date.

I want to keep some pictures out of Google. Is that allowed?

Yes. Block only those folders for Googlebot-Image and leave the rest open.

More problems in Images and media

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com