Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

we have a few images currently being indexed by google and we want to remove them from the index. We have removed the .aspx page which linked to the image (but the image still physically exists on disk at the same location), so will google now automatcally update its records, to not show our image? Or do I need to delete the image aswell? thanks!

share|improve this question

migrated from stackoverflow.com Feb 1 '12 at 14:12

This question came from our site for professional and enthusiast programmers.

The most complete way is to prevent images being accessed by sites other than your sites domain. Many isp's offer an option to disable hotlinking, apache can be configured to do it or you can use htaccess.


RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yourdomainname\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(gif|bmp|png|jpe?g)$ /path/to/image/hotlink.gif [R=301,L]

Alternativly you can write the last line using the forbiden flag

RewriteRule .*\.(gif|bmp|png|jpe?g)$ - [F]
share|improve this answer

I'm not sure, but i think you might have to block it manually


share|improve this answer
Yes Im not sure either, thanks for link! – Baconbeastnz Aug 1 '11 at 4:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.