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? Matt
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
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? >Yes, see the 'Satisify' directive http://httpd.apache.org/docs/2.2/mod/core.html#satisfy -- Les Mikesell lesmikesell at gmail.com