Cath - hotlinking issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thonglife
    So Fucking Banned
    • Oct 2004
    • 1566

    #1

    Cath - hotlinking issue

    This is one Apache solution to stop any and all hotlinking. You'll need root access and MOD_REWRITE permissions for .htaccess.

    I use this to stop ALL image/video.whatever hotlinking....This goes in your .htaccess:

    RewriteRule .\.([gG][iI][fF]|[jJ][pP][gG])$ - [F]
    SetEnvIfNoCase Referer "^http://www.your-domain.com/" locally_linked=1
    SetEnvIfNoCase Referer "^http://www.your-domain.com$" locally_linked=1
    SetEnvIfNoCase Referer "^http://your-domain.com/" locally_linked=1
    SetEnvIfNoCase Referer "^http://your-domain.com$" locally_linked=1
    SetEnvIfNoCase Referer "^$" locally_linked=1
    <FilesMatch "\.(gif|png|jpg|wmv|mpg)$">
    Order Allow,Deny
    Allow from env=locally_linked
    </FilesMatch>
Working...