|
anti image hotlinking in .htaccess
I usally use the following to prevent image hotlinking from my entire site:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]
how to modify the above if I want to allow image hotlinking for a certain folder, lets say:
mydomain.com/hotimages/
|