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

Jon bigj at tfug.org
Fri Jul 2 11:57:24 MST 2004


Something like this?

<Diretory /some directory>
Order deny,allow
    Allow from x.x.x.x
    Deny from all
</Directory>

I think that'll work.

--

Jon
"There are no smart viruses, just stupid users."

Sam Hart said:
> 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
>
> _______________________________________________
> tfug mailing list
> tfug at tfug.org
> https://www.tfug.org/mailman/listinfo/tfug
>



More information about the tfug mailing list