- 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.
i think i've tried eveything to get movies to work but unsuccessful.
anybody have an idea ?
thanks in advance