.HTACCESS hotlink help

Discussion in 'PHP' started by dragonclaws, Apr 9, 2009.

  1. #1
    i'm using the following rules in my .htaccess file to prevent hotlinking to my swf files and to redirect them:
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?example.com [NC]
    RewriteRule \.(swf)$ http://www.example.com/hotlink.php [R,NC]

    now how can i modify it so that the name of the file that was hotlinked be passed to the hotlink.php file.????
     
    dragonclaws, Apr 9, 2009 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175