You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Noel Stratton <ns...@membersonline.org> on 2006/02/15 01:17:06 UTC

[users@httpd] Password Protect Directory based on IP address

Howdy,

I have had an internal website running for my company.  My boss now
wants employees to be able to access the website outside of the company
LAN and wants it to be password protected.  Is it possible when a user
is outside of the LAN to prompt for a username and password with
.htaccess.

Basically, if a user is inside the LAN they will NOT be prompted for
username and password.  If a user is outside of the LAN they WILL be
prompted for a username and password. 

Users inside the LAN access the web server by its IP address in the URL
bar.  Users outside of the LAN would access the web server with a URL
name.  I have been searching based on IP address, but maybe it can be
setup by what the user puts in the URL bar?

Any suggestions are greatly appreciated. :-)

---------------------------------------------------------------------
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


Re: [users@httpd] Password Protect Directory based on IP address

Posted by Joshua Slive <jo...@slive.ca>.
On 2/14/06, Noel Stratton <ns...@membersonline.org> wrote:
> Howdy,
>
> I have had an internal website running for my company.  My boss now
> wants employees to be able to access the website outside of the company
> LAN and wants it to be password protected.  Is it possible when a user
> is outside of the LAN to prompt for a username and password with
> .htaccess.
>
> Basically, if a user is inside the LAN they will NOT be prompted for
> username and password.  If a user is outside of the LAN they WILL be
> prompted for a username and password.

See the Satisfy directive.

Joshua.

---------------------------------------------------------------------
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