Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: .htaccess



>Somebody just asked me if there's a way to restrict access via .htaccess
>to a range of IP addresses and require a password for all others.

"allow" and "deny" are the commands to restrict by IP address. You can use
them in a directory that requires a password, as an extra restriction.

To let certain IP addresses through with no password and require a password
for everyone else doesn't seem to be possible, but I'm not sure. 

If not, you could have two directories:
  directory A: has the allow directive
  directory B: has the password protection

And maybe use symbolic links to save having to duplicate the whole
directories?

Darren

-------------------------------------------------------------------
Next Technical Meeting: February 13 (Sat), 12:30 place: Temple Univ.
** presentation: XEmacs, by Steven Baur and Martin Buchholz
Next Nomikai: March 19 (Fri), 19:30   Tengu TokyoEkiMae 03-3275-3691
-------------------------------------------------------------------
more info: http://tlug.linux.or.jp                     Sponsor: PHT


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links