A while ago we published a post discussing how image hotlinking might be beneficial for your site. Naturally we collectively came to the final conclusion that there is more harm than benefit in other sites hotlinking yours:
- it can steal your bandwidth;
- it can result in copyright infringement;
- it can damage your image search rankings (the discussion previously covered by Seroundtable.com).
So here are a few ways to prevent people from hotlinking (beside using your cPanel that normally has “hotlink disabling” option):
- Apache server based : configure your .htaccess file to allow only your domain to access your image files (more info can be found here):

- Windows server based: paid ISAPI Rewrite module or free open source WebKnight application.
Note: hotlink prevention won’t stop Google from indexing and ranking your images in Image Search as it uses your image cached version rather than hotlinking to your image.
If you think your image search traffic is useless and even more, it also steals your bandwidth, you can always remove your images from Google image search: make sure all your images are located in one separate directory and block it with your robots.txt:
User-agent: *
Disallow: /images (to stop your image folder from being crawled by anyone)
or
User-agent: Googlebot-Image
Disallow: / (to ban Google image search specifically)
or
User-agent: Googlebot-Image
Disallow: /*.jpg$ (to prevent Google from crawling all your .jpg files)







Hi Ann,
I have seen many websites rank high with hotlinked pictures in google image search.
Installing a “hotlinking protection” is a very good idea. But google will also rank pages in image search that hotlink to images and where a .htaccess hotlink protection has been installed on the original site. The effect is that a user won’t see the image.
I have also seen that google sometimes lists the original domain some weeks later instead of the hotlinking domain, the way it should be.
Traffic from image search can be enormous.
A lot of people don’t realize they can lose their bandwidth due to hotlinks. People who hotlink mostly don’t realize that they should host the images their own
I get lots of search landings via image search.
Image search from google can help in page ranking. (My opinion)
The cons is that with the image search, the hotlinkers start poping up and it is quite some work but also fun to get rid of them. Could write up quite some stories with my hotlinkers. Have not seen a way of preventing any hotlinking which really works and is not too intrusive.
@Alphane Moon, a question maybe just a bit off topic.
I agree that traffic from image search can bring a lot of traffic. Do you know if there is a way to understand using Google Analytics which keywords brought the visitor to your site using Image Search? The problem I am having is that visitors from Image Search are coming to the home page of my blog that has a number of images, at least one per post, so I cannot realize by the landing page neither.
You will also find that you may bave problems if your site delivers marketing emails that use HTML and directly link to the images to your site users. Unless you create rules to handle every possible type of webmail/email client you will be delivering broken images to your subscribing memebers.
Thanks for the tip. I have had a lot of traffic to a site under construction, and it may be just that I chose a good name, but I do not know as I have not got the counter up yet. So hotlinking disabled. Cheers