Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: zafar466 on January 22, 2007, 10:56:42 AM

Title: password protect directory
Post by: zafar466 on January 22, 2007, 10:56:42 AM
Hello...
I put password on html directory.But my requirement is that when we access that directory locally.It should not asked for password.but when we access globally it should asked for password.e.d
1...locally access
http://192.168.3.8/html..................>no need to ask password
2...Globally access
http://202.345.5.8/html..............>it should asked for password
its urgent
regards
Title: password protect directory
Post by: Ricky on January 22, 2007, 09:21:13 PM
I don't find any way for that in htaccess  !!!
Title: password protect directory
Post by: vwvr9 on January 24, 2007, 11:29:37 AM
Mod_access for apache might help.

http://httpd.apache.org/docs/2.0/mod/mod_access.html