Need .htaccess help to block specific domains from subdirectory
Hello, folks. I have a directory on my server to which I do not want external websites linking. I have used the following in an .htaccess file in that directory to redirect external links to my homepage:AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/
RewriteCond %{HTTP_REFERER} !^http://domain.com/
RewriteCond %{HTTP_REFERER} !^http://www.otherdomain.com/
RewriteRule /* http://www.domain.com/index.html [R,L]
This has caused a problem for some members of my own website who log in from overseas, and who are also being redirected to my homepage.
Is there any way to re-write this .htaccess file to *only* redirect links from specific websites/IP addresses, instead of redirecting *all* external links? There are just a few external websites trying to link to our restriced directory (available only to members of my forum), so if I can just deal with those as they come up that would be a better solution. Thanks in advance for any help you can offer.

