Disable search of images in Google [How To]

Posted by Prashant on August 31, 2011 in Google,How To,SEO,Website

no to images

Google is working on to improve its image search and has recently increased the index rate for images. When anyone uses Google Image search to find images, Google checks its index for the images which have caption and/or alt text matching with the search query and shows the results. Although majority of webmasters do take efforts like implementing SEO tactics to get their website images appear in Google image search results which helps a website to get additional traffic besides normal Google search. But few websites/blog don’t want their images to appear in Google search results , reasons for which most likely would be copyrighted images. If you don’t want images from your websites to appear in Google search results, follow the below steps.

How to disable search of images in Google?

When Googlebot performs search on a website for new content , it also looks in robots.txt file for any specific instruction. Using robots.txt file you can direct Googlebot to do certain actions which means you can tell it ‘what to index’ or ‘what not to index’, ‘which link to follow’ or ‘no follow’ etc. Non indexed pages will not appear in Google search results and Googlebot doesn’t follow any link from your website, if you have nofollow for that particular link.

Similarly using robots.txt you can direct Googlebot not to index images from your website. You will need to do the below changes to your robots.txt file.

Change 1 in robots.txt

User-agent: Googlebot-Image
Disallow: /images/myimage.jpg

Instructions for Googlebot

Above lines will tell Googlebot not to index ‘myimage.jpg’ which is located under directory called ‘images’.

Change 2 in robots.txt

User-agent: Googlebot-Image
Disallow: /

Instructions for Googlebot

Googlebot is instructed not to index any of the images on the website.

Change 3 in robots.txt

User-agent: Googlebot-Image
Disallow: /*.png$

Instructions for Googlebot

You can also disallow indexing of a particular file type only. For e.g. above code will disallow Googlebot for image not to index any file of type “.png”. $ is used to represent the end of a name.

By specifying Googlebot-Image as the User-agent, the images will be excluded from Google Image Search. It will also prevent cropping of the image for display within Mobile Image Search, as the image will be completely removed from Google’s Image index. If you would like to exclude the images from all Google searches (including Google web search and Google Images), specify User-agent Googlebot.

Related Posts Plugin for WordPress, Blogger...

Comments on this entry are closed.