Chevereto Lover
Chevereto Noob
I've gathered up this code to preventing hotlinking of my images.
Can someone verify if it's correct?
Thanks!!
Can someone verify if it's correct?
Thanks!!
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com [NC]
# deny all image access
RewriteRule .*\.(jpg|png|bmp|gif)$ http://www.mydomain.com/forums/error.gif [NC,R,L]