Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a page with a main image on it that I want to be indexed. I also have a list of other images (thumbnails) on the same web page that should not be indexed or associated with the current page/main image because this is the same list of thumbnails for every page on the website.

How can I stop Google from indexing this content against the page? Can I use a Noindex, Nofollow?

share|improve this question
Are you making use of robots.txt files? – Paul Aug 20 '13 at 22:22
@Paul do you mean Disallow: /thums/*.jpg ? – igor Aug 20 '13 at 22:35
robots.txt can be used to block indexing of pretty much anything on a site. If that is the location of everything you want blocked, then that should work. – Paul Aug 20 '13 at 23:08
@Paul thank you, I will try. I hope, Google will stop navigating via thumbs and will do this via sitemaps, will not it? – igor Aug 20 '13 at 23:17
I believe you can also manage what Google indexes through their Webmasters Tools, though this will not affect other indexing services as robots.txt will. – Paul Aug 20 '13 at 23:24
User-agent: *
Disallow: /wp-content/uploads/*/

Something like this.

Use this code in robots.txt, adding this, you disallow to index the folder /wp-content/uploads/ to all crawlers.

You can found the robots.txt file in your public_html folder.

If this doesn't exist, create it :D

share|improve this answer
Thats all :P. Sorry. – Ferrrmolina Feb 9 '15 at 9:39
Great, upvoted for the update. Just a tip for answering questions, remember, your answer should not just be a referrence for the user asking the question. This is a wiki site and your answer should be a reference for everyone visiting this page. Describe in short what your code does, how it works and most importantly, where should it be used. Many people are coming from search engine and most of them has very little to no knowledge about Wordpress. – Pieter Goosen Feb 9 '15 at 9:46
Ok, thanks, and you right, is good to google something and found the correct answers to your problems. Sorry for my english, i'm from Argentina! Regards. – Ferrrmolina Feb 9 '15 at 9:52

Yes, If you want to block certain images of the main webpage then you should use Noindex and Nofollow.

share|improve this answer

What I have found on wiki:

For Yandex:

<!--noindex-->Don't index this text.<!--/noindex-->

For Yahoo:

<div class="robots-nocontent">Don't index this text.</div>

For Google:

<!--googleoff: index--> Don't index this text.<!--googleon: index-->
share|improve this answer
googleoff only works for Google Search Appliance, which is an enterprise-level search platform. It doesn't apply to Google search engine. – Brendon Aug 21 '13 at 14:03

Put all your thumbnails into a specific directory that is separated from your main images:

  • /image/main/
  • /images/thumb/

Then add a line to your robots.txt file:

Disallow: /images/thumb/
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.