How to stop images showing on Google

macmacman

Free Member
May 31, 2007
408
22
When you do a search on google some Google Images come up for us and I don't want them to. If you go to image and right click and copy the url something like /image.jpg then do a site: search on google nothng comes up. This is also true if I go to search console and url inspection. So are google images results not indexed? How can I get these urls removed or reindexed through search console.
 
.co.uk/
assets/
uploads/
image.jpg

In uploads/ you can add a .htaccess file with x-robots tag

Check to make sure there isn't already a .htaccess file already in this directory though. If there is and it has something added come back and let us know before doing anything.

Assuming there isn't, just add a blank file named .htaccess and add:

<IfModule mod_headers.c>
Header set X-Robots-Tag "noindex"
</IfModule>

Ensure the file is in this folder only, not the site root.

Save and clear any caches you may have. This will add a noindex tag to everything in that directory, only proceed if you are happy about that.

You can check it's working via an external site that will display the http headers for a sample url.

For example: https://securityheaders.com
and you are looking for a label marked: X-Robots-Tag: noindex

Also check a regular page that you do want indexed to ensure there is no tag present.

You can also check the url in search console under: test live url and it should return 'unable to index: no-index tag

Search console is a bit buggy at the moment so don't be alarmed if it doesn't say that.

To remove existing images (once you have established they are showing a no-index tag) you can request removal via: https://www.google.com/webmasters/tools/removals

You may find some images take a while to disappear since Google work to their schedule and not yours but, eventually, once the images have been crawled they should go away for good.

More info here:
https://developers.google.com/search/reference/robots_meta_tag
 
Upvote 0
I've never had much confidence that Google actually prevent images being displayed when you attempt to make this happen.

If your images are showing up on other people's sites then the above is no help to you because Google will just attribute them to wherever they find them.

If this is the case then the copyright removal route is your only hope.
 
Upvote 0
I understand why you don't want them to appear as you think it will make it easy for people to use. I don’t know what these are images of but if they are products removing them from google images might not be the best move.

If I need to find something on Google and get frustrated clicking links that take me to the wrong thing I go to images and click on the product images of what I want so it may affect sales for you.
 
Upvote 0

Latest Articles