The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Blocking Bandwidth Thieves
Hi,
I am trying to block hotlinking of my images and files so it only allows me to hotlink on my main side and 2 subdomains. For example these are my 3 domains. 1. http://maindomain.com 2. http://forum.maindomain.com 3. http://media.maindomain.com All my images and files are stored on my media subdomain and my other 2 sites 1. and 2. ask for the files. I have tried this script in a .htaccess file but it wont work. Code:
RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.|forum\.|media\.)?maindomain\.com [NC] RewriteRule \.(bmp|gif|jpe?g|png)$ /images/linking.jpg [R=302,L] RewriteRule \.(swf|mp3|wmv|zip)$ - [NC,L,F] |
#2
|
|||
|
|||
<a href="http://www.htmlbasix.com/disablehotlinking.shtml" target="_blank">http://www.htmlbasix.com/disablehotlinking.shtml</a>
|
#3
|
|||
|
|||
Tried that but it does only work with image files and not files like ZIP MP3 ... etc
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|