[CentOS] .htaccess

Fri May 1 15:48:55 UTC 2009
nate <centos at linuxpowered.net>

Matt wrote:
> I use the following .htaccess file to restrict access to certain web
> folders to only my IP pool.
>
> Options +Indexes
> order allow,deny
> allow from x.x.x.
>
> Is there anyway to allow a user right in if there in that IP pool but
> require a password if there not?\

I'm not sure if it can be done in .htaccess but a rewrite rule should
be able to do the trick

http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond

nate