dxlwebs |
09-24-2009 10:00 PM |
Stop Image Hotlinking!
1 Attachment(s)
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]
i have provided a image below for you to use if you would like other wise you can put your own image there, just chage the address of your site and location to your forum and add my image to your forum root and everytime some one trys to hotlink you they will only see that image!
thats it easy as pie! remember to back up your .htaccess file before editing anything!
|