The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Blocking Hotlinking
Hi,
Could someone please help me I am trying to make it so I store all my media files ".swf|.mp3|.wmv|.mpg|.mpeg|.jpg|.jpeg|.gif|.pn g" on a subdomain called "http://dl.mysite.com" but I need to make an .htaccess file so it blocks all referals to all my media files located on the subdomain "http://dl.mysite.com" so it allows only my domain to use the files. Allow: Disallow: |
#2
|
||||
|
||||
Code:
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.*)\.yoursite\.com/(.*)$ [NC] RewriteRule .*\.(swf|mp3|wmv|mpg|mpeg|jpg|jpeg|gif|png)$ http://www.yoursite.com/ [R, NC] |
#3
|
|||
|
|||
If I use that code I get an "500 Internal Server Error"
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|