• Is there a way in WordPress to set URLs of images to noindex so they don’t appear in Google image search results?

    Note, here I’m not talking about attachment pages, but about the actual image URLs appearing in posts.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • you can use robots.txt to prevent Google index your images

    https://support.google.com/webmasters/answer/35308

    Adding following to robots.txt should do the job:

    User-agent: Googlebot-Image
    Disallow: /

    This will disable indexing of any future images. Previously indexed images would stil keep showing in the google image search. To remove old images as well, you may try resubmitting the sitemap to google.

    Please check this support article from google for more details.

    Thread Starter tark94

    (@tark94)

    (I don’t really have image URLs in the sitemap, except that there’s a # of images column)

    Got it. So first manually remove the URLs with the Remove URLs tool, then change robots.txt to then block further crawling.

    Question: which user agent in robots.txt to use to block crawling by all search engines?

    User-agent: *

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to noindex image URLs’ is closed to new replies.