On Thu, May 03, 2001 at 10:08:21AM -0500, Mark K wrote:
>
>Although this is not necessarily TCLUG specific, I'm sure there are others
>that have similar conf issues.
>Using a Linux box, running RH7.0 / Apache that comes with the install,
>here is what I want to do:
>Set up an access control list that
>* Doesn't prompt for a password when coming from the local network
>  (using pre-defined IP blocks, 192.168.*)
>* Does prompt for a password when coming in from the Internet
>  (all other, non 192.168.* addresses)

this is what we use here in .htaccess

<files ~ "/\.ht">
order deny,allow
deny from all
</files>

Options +ExecCGI

order deny,allow
deny from all
allow from .sistina.com

AuthName "restricted stuff"
AuthType Basic
AuthUserFile /path/to/users

require valid-user

Satisfy any
-----------------SNIP

and the format of the users file is

username:cryptpw

>
>I'm just not sure how to set up an "If-Then" with .htpasswd
>Basically, making an Extranet more friendly from home, then access from on
>the road.  Ideas?
>
>Thanks in advance.
>Mark
>
>-- 
>________________________________________________________
>ReadyNET Go!, Inc.  -  Building your Business on the net
>________________________________________________________
> 
>Mark J. Kroska
>MIS Director
>
>320.656.0765 Voice
>888.447.3239 Toll Free
>320.203.7052 Fax
>http://www.readynetgo.com
>mailto:mkroska at readynetgo.com
>________________________________________________________
>
>
>
>
>_______________________________________________
>tclug-list mailing list
>tclug-list at mn-linux.org
>https://mailman.mn-linux.org/mailman/listinfo/tclug-list

-- 
Ben Lutgens		cell: XXX.XXX.XXXX
Sistina Software Inc.	work: XXX.XXX.XXXX
Mailing list admin / Punching Bag (and sorta sysadmin guy)
http://www.sistina.com/	<--- great software 
http://www.gentoo.org/  <--- great distro
Kernel panic: I have no root and I want to scream <--- perfect error message
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20010503/e17e0879/attachment.pgp