Back to vBulletin 3.8 Template Modifications

Stop Image Hotlinking!
Mod Version: 1.00, by dxlwebs

vB Version: 3.8.x Rating: (2 votes - 3.00 average) Installs: 18
Released: 25 Sep 2009 Last Update: Never Downloads: 1
Not Supported Code Changes Additional Files  

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!

Download

No files for download.

Screenshots

Click image for larger version
Name:	nhl.png
Views:	151
Size:	142.3 KB
ID:	104753  


vblts.ru supports vBulletin®, 2022-2024