View Single Post
Old 05-22-2005, 12:29 PM  
radical
Confirmed User
 
Join Date: Oct 2003
Location: Bonnie Scotland
Posts: 2,876
Been looking .htaccess files today and these may be helpful for protecting movie files:

Drop this at the root of your domain:

<-------- .htaccess code --------->

RewriteEngine on
AddHandler server-parsed .html
Options Indexes FollowSymLinks Includes
ErrorDocument 404 http://www.yourdomain.com/404.html
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/404.html [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/404.html [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/404.html/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/404.html/ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG|ram|RAM|mpg|MPG|mpeg|MPEG|wmv |WMV|avi|AVI|rm|RM|swf|SWF)$ - [F]

<-------- .htaccess code --------->
__________________




ICQ: 166108967

Last edited by radical; 05-22-2005 at 12:32 PM..
radical is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote