1

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?

Andrew Lott
  • 5,914
  • 3
  • 25
  • 44
igor
  • 149
  • 9

4 Answers4

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

Ferrmolina
  • 141
  • 5
1

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

1

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/
Stephen Ostermiller
  • 99,822
  • 18
  • 143
  • 364
0

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-->
igor
  • 149
  • 9