How to prevent hotlinking of flv files?

Posted by Sarah on Stack Overflow See other posts from Stack Overflow or by Sarah
Published on 2010-12-27T20:49:58Z Indexed on 2010/12/27 20:54 UTC
Read the original article Hit count: 239

Filed under:
|
|
|
|

How to, using PHP and/or .htaccess prevent hotlinking?

There's a site, which is allowed to access the flv files located on my server, however I've noticed that there are many requests from other domains as well...

Here's the actual rule:

RewriteCond %{HTTP_REFERER} !^http://alloweddomain.com/.*$ [NC]
RewriteRule .flv denied.php [NC,L]

It's working OK except for Firefox, because FF is not sending referrer info when accessing .flv files...

© Stack Overflow or respective owner

Related posts about php

Related posts about firefox