March 28, 2024, 04:47:26 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: password protect directory  (Read 2750 times)

Offline zafar466

  • New Member
  • Posts: 2
password protect directory
« 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
password protect directory
« Reply #1 on: January 22, 2007, 09:21:13 PM »
I don't find any way for that in htaccess  !!!

Offline vwvr9

  • New Member
  • Posts: 3
password protect directory
« Reply #2 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