[Tfug] Brain fart... htaccess restrict by IP and Password

Sam Hart hart at physics.arizona.edu
Fri Jul 2 11:27:53 MST 2004


Okay, I'm having a bad day and can't think straight...

I know it can be done, I've even done it before, but for the life of me I 
can't remember how..

I need to restrict a web directory by IP address range and password 
protect it otherwise.

I.e., If you are in IP range, you automatically get in. If you are not in 
IP range, then you must enter a password to get in.

I know this can be done with .htaccess, and I can do either/or, but I 
can't remember how to combine the two.

-- 
Sam Hart
University/Work addr. <hart at physics.arizona.edu>
Personal addr. <sam at samhart.net>
end



More information about the tfug mailing list