httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Boutilier <bouti...@ednet.ns.ca>
Subject Re: [users@httpd] Newbie (ish) question about access
Date Tue, 06 Jan 2004 19:30:48 GMT
You can use a .htaccess like the following:


AuthType Basic
AuthName Password
AuthUserFile /usr/local/apache/htdocs/.passwd
satisfy any
deny from all
allow from 192.168.1.0/24
require valid-user



Michael Thompson wrote:
> Hi Users,
> 
> 
> 
>   Is there any way to determine where a user is connecting from? What
>   I want to do is open my box to the world, but if a user is not
>   connecting from a local IP (192.168.1.*) to ask for a username/password.
> 
>   Any ideas on how to do this?
> 
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message