Stop Image Hotlinking!
Hey all,
I thought that this might be usefull for you all its very simple and you can do it within 1 minute! Basically all it does is stop people from hotlinking your images and using your bandwidth! This code below allows your to stop hotlink for all sites apart from the sites you choose all you do is add this code your you .htaccess file! Code:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yoursite.com [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain2.com [NC] RewriteRule .*\.(jpg|png|bmp|gif)$ http://yourdomain.com/forum/nhl.png [NC,R,L] thats it easy as pie! remember to back up your .htaccess file before editing anything! Download No files for download. Screenshots |