I was just wondering what everyones anti-hotlinking code looks like in their .htaccess?
This is mine.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?111.111.111.111(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|mpg|wmv)$ - [F,NC]
Be cool and post what your anti-hotlinking code looks like. You dont have to post your domain name. I just want to see the differences in peoples code.
This is mine.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?111.111.111.111(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|mpg|wmv)$ - [F,NC]
Be cool and post what your anti-hotlinking code looks like. You dont have to post your domain name. I just want to see the differences in peoples code.





Comment