Stop Hot Linking and Bandwidth Hogging
What if another web site is stealing your images and your bandwidth by linking directly to your image files from their web site? This can prevent this by adding this to your .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]
Replace yourdomain.com with your actual domain name. With this code in place, your images will only display when the visitor is browsing http://yourdomain.com. Images linked from other domains will appear as broken images.
If you’re feeling particularly nasty, you can even provide an alternative image to display on the hot linked pages — for example, an image that says “Stealing is not nice … visit http://yourdomain.com to see the real picture that belongs here.” Use this code to accomplish that:
RewriteEngine On
rewriteCond %{HTTP_REFERER} !^$
rewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]
rewriteRule \.(jpe?g|gif|png|bmp)$ dontsteal.gif [L]
This time, replace yourdomain.com with your domain name, and replace dontsteal.gif with the file name of the image you’ve created to discourage hot linking.
Here is my image

Check out other post related to .htaccess here
Click here to buy me a coffee If you liked this post (only $3.50)