Hello,
Trying to add some hotlink protection. I don't know much about apache yet, so I found a nice reference site that included some generated .htaccess code. It seems to be working, but I was wondering if there were any improvements I should make to the code. Are the flags correct?
Little confused about the image that people see when trying to hotlink. Is it a problem that the image is within a hotlink protected directory?
Trying to add some hotlink protection. I don't know much about apache yet, so I found a nice reference site that included some generated .htaccess code. It seems to be working, but I was wondering if there were any improvements I should make to the code. Are the flags correct?
Code:
RewriteEngine ON
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite.com(/)?.*$ [NC]
RewriteCond %{REQUEST_URI} !^.*thief\.gif$ [NC]
RewriteRule ^.*\.(gif|jpg|png|jpeg)$ http://www.mysite.com/images/thief.gif [NC,R,L]

Comment