Gallery and Forum Hotlinking

crazykgb

Member
I'm trying to figure out how to disable hotlinking of forum/resources attachments and XFMG uploaded images.

My .htaccess rules do not work for these. Rules work just fine for images with simple x.jpeg, etc extensions. The above are structured differently, x-jpg.3919/ or x-jpg.3919/full.

Code:
RewriteCond %{HTTP_REFERER} !^http://(www\.)mysite.com/.*$      [NC]
        RewriteCond %{HTTP_REFERER} !^http://(www\.)mysite.com$      [NC]
        RewriteCond %{HTTP_REFERER} !^https://(www\.)mysite.com/.*$      [NC]
        RewriteCond %{HTTP_REFERER} !^https://(www\.)mysite.com$      [NC]
        RewriteRule .*\.(gif|jpg|jpeg|mp3|png|pdf|zip)$ https://www.redirecturl.com/ [R,NC]

Thank you
 
Top Bottom