>>   I use apache2 authentication for web users and I would like to require
>>   logins from certain users to be from a certain IP address.  I
>>   experimented with Allow and Require but couldn't find a way to restrict
>>   only certain users.  Can this be done via apache2 authentication or
>>   should I use another method?
>>
>>   - Grant
>
>
> very simple via .htaccess
>
> <Limit GET POST>
> order deny,allow
> deny from all
> allow from IP_address
> </Limit>
>
> AuthName "restricted stuff"
> AuthType Basic
> AuthUserFile /etc/apache2/users
> require user webmaster

I think that will require any usernames specified to come from IP_address.
 I'm trying to allow certain usernames to come from any IP, and restrict
other usernames to a certain IP.  Can that be done via .htaccess?

- Grant

Reply via email to