View Single Post
Old 05-27-2001, 11:15 AM  
Relax
Registered User
 
Join Date: May 2001
Location: I'm selling myself
Posts: 2
Maybe you can help....

Hi,
I want to protect a domain directory:
( http://www.mydomain2.com/users/ )
and the only refer should be:
( http://www.mydomain1.com/main.html )

I guess that I can do this with a .htaccess file.

I have these lines:

AuthType Basic
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.mydomain1.com/main.html [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain2.com/users/ [NC]
RewriteRule /* http://www.mydomain2.com/error.html [R,L]


It should be working, but when I try to save a *zip file
with ' save target as ' I save the error.html and not the *zip file.


Any suggestions?

Thanks
Relax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote