Forum Moderators: phranque
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://([-a-z0-9]+\.)?domain\.com [NC]
RewriteRule \.(avi¦mkv¦ogm)$ - [F,NC,L]
also i'm tryin to make that every user can download using only a number of connections to the server...i have no idea how to do that :¦
I think you'll really need a script to manage downloads using a 'user-session-aware' approach, i.e. tag the user with a cookie so you can identify any given user no matter how many requests he/she tries to open. I'm not sure you can even do that -- It depends on whether media players and download accelerators will accept and return cookies. An alternate would be to give each user a unigue query string or URL for session management purposes.
mod_rewrite is not a powerful scripting language, and it's limitations show here.
Jim