Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
1  
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
1  
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
1  
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

4 Answers 4

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 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 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 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
1  
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

 
discard

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.