View Single Post
Old 06-22-2003, 09:12 PM  
s9ann0
Confirmed User
 
Join Date: Sep 2001
Location: Boston
Posts: 4,873
you can make life dificult for hotlink and stuff with this:

RewriteEngine on

# agent is requesting media files and is not media player but has ok referer
# add for .wma on stories to ??

RewriteCond %{REQUEST_FILENAME} ^.*\.wmv$ [NC]
RewriteCond %{REQUEST_FILENAME} ^.*\.wma$ [NC]
RewriteCond %{HTTP_USER_AGENT} !^NSPlayer.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^Windows-Media-Player.* [NC]
RewriteCond %{HTTP_REFERER} ^http://.*xxxdatabase.com/.* [NC]
RewriteRule /* http://php.xxxdatabase.com/link/getmediaplayer.html [R]

# agent is requesting media files and is not media player and has bad referer

RewriteCond %{REQUEST_FILENAME} ^.*\.wmv$ [NC]
RewriteCond %{REQUEST_FILENAME} ^.*\.wma$ [NC]
RewriteCond %{HTTP_USER_AGENT} !^NSPlayer.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^Windows-Media-Player.* [NC]
RewriteCond %{HTTP_REFERER} !^http://.*xxxdatabase.com/.* [NC]
RewriteRule /* http://php.xxxdatabase.com/link/hotlink.html [R]

# agent has no cookie and is not media player

RewriteCond %{HTTP_COOKIE} !^user=.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^NSPlayer.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^Windows-Media-Player.* [NC]
RewriteRule /* http://php.xxxdatabase.com/link/nocookie.phtml?&host=%{HTTP_HOST} [R]
s9ann0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote