This is a discussion on allow range of ip addresses within the Apache Web Server forums, part of the Web Server and Related Forums category; How do you allow only a range of IP addresses access to a directory? I know I can simply type &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
How do you allow only a range of IP addresses access to a directory? I
know I can simply type "allow 192.168.2" to allow all those beginning with those numbers. But what if I want to allow all of those EXCEPT 192.168.2.1? "Deny" isn't an option either because I want that one to require passwords. So I have: Allow from 192.168.2 Require valid-user Satisfy any But it never asks for a password, presumably because incoming traffic is being forwarded to the server through the router (192.168.2.1). Any ideas? |
|
|||
|
Davide Bianchi wrote:
> On 2005-03-04, MZ <mark@mdz.no-ip.org> wrote: > >>those numbers. But what if I want to allow all of those EXCEPT >>192.168.2.1? "Deny" isn't an option either because I want that one to >>require passwords. So I have: > > > I don't think you can do such things, unless you write a server-side > program that checks the client's IP and ask for the password. > Davide > Love the mission statment, been there done got the T shirt |