: How to exclude certain images on web page from spiders? 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
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?
More posts by @Welton855
3 Comments
Sorted by latest first Latest Oldest Best
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
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/
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-->
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.