Prevent Movies from being Hotlinked

Fix it!!

Prevent Movies from being Hotlinked

Postby nubian » Wed Jul 16, 2003 8:02 am

Code: Select all
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?you_domain.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?you_domain.com(/)?.*$     [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|wmv|mpg|mpeg|avi)$ http://www.you_domain.com/404.gif [R,NC]
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*you_domain.com/ [NC]
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule /*$ http://www.you_domain.com/404.gif [L,R]


this code works perfectly for block against images and movies such as wmv's mpgs gifs from being hotlinked from other servers.
my only problem is is that the images do show just fine on my server but my movies won't. :confused:
i think i've tried eveything to get movies to work but unsuccessful.
anybody have an idea ?

thanks in advance
nubian
 
Posts: 1
Joined: Wed Jul 16, 2003 7:49 am

Return to Security with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 2 guests

cron