Forum Moderators: phranque
This is my first post here, thanks in advance for helping me!
This is my current .htaccess file
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?my-site.com/.*$ [NC]
RewriteRule \.(gif¦jpg)$ - [F]
Does anybody know how to rewrite this so that it will allow one of my other sites (for example my-site2.com) to hotlink images and still not allowing it for all other sites? Thanks!
RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://(www\.)?my-other-site\.com [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?my-site\.com [NC]
RewriteRule \.(gif¦jpg)$ - [F]
Jim
[edited by: jdMorgan at 9:29 pm (utc) on Feb. 27, 2004]