Prevent Hot Linking
By Mike on Feb 21, 2009 in How to, Internet, Reviews
Just a quick tip to prevent hot linking to the items on your blog. Saves bandwidth and prevent others from embedding images on your site in their blogs.
Add the following code to the .htaccess file at the root of your site.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?YourDomain.com/.*$ [NC]
RewriteRule \.(gif|png|jpg)$ - [F]





