View Single Post
Old 02-10-2005, 06:14 AM  
SGS
Confirmed User
 
SGS's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Mallorca - Nottingham
Posts: 5,176
Quote:
Originally Posted by My GTZ
Hopefully, I'm cool but I won't delete anymore. I just need to know how to protect the MPEG files from hotlinkers and such.

What is the correct way? Something like this:

RewriteEngine On
RewriteCond %{HTTP_REFERER} http://.*bandwidthhog.com/.*$
RewriteRule ^(.*)$ http://<your ip address>/

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://<your ip address>/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://<your ip address>:80/.*$ [NC]
RewriteRule .*\.mpg$ http://<your ip address>/ [R,L]
Cant do that with .htaccess
__________________
See sig...
SGS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote