How To Prevent Google Image Search From Indexing Your Website

How To Prevent Google Image Search From Indexing Your Website

Don’t you hate it when Google Image Search indexes something that you don’t want them to index. A know a lot of guys who hates when Google indexes their images on its image search because they don’t want them anywhere, but their website. They got a point!

Fortunately, it’s very easy for you to prevent Google Image Search from indexing your website’s images. You can stop them from index your entire website’s images, only a specific image, or images of a specific format. To do that, add a robots.txt file to the root of the server that blocks the image.

Prevent A Single Image

If you wanna block a single image from appearing in Google Image Search, then add following to your robots.txt file:

The above code will block dogs.jpg image from appearing in image search.

Prevent A Specific File Format

If you want to block all of .gif images from appearing in image search, then add following to your robots.txt file:

Now, all images will appear on the image search, but .gif images.

Prevent All Images

Last but not the least. If you want to block your entire website from appearing in image search, then add following to your robots.txt file: