htacess settings

Locked

Views: 558

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
23 Jan 2010, 9:18 AM
#1
gregger avatar

gregger

New Zenner

Join Date:
Nov 2009
Posts:
48
Plugin Contributions:
0

htacess settings

Hi,

Can someone help me with why the following isn't working?

I am trying to lock down the admin area to allow access from my IP address (automated update scripts etc need to run) but prompt for a user/pass when I am on mobile broadband, or anyone else trying to access.

I have set my htaccess to look like the following:

Order deny,allow
Deny from all
AuthName "Restricted Access"
AuthUserFile /path/to/.htpasswd
AuthType Basic
Require valid-user
Allow from [MYIP]
Satisfy Any

These lines in the htaccess allow access from any IP address without prompting for a username.

I have tried changing the Order deny,allow to allow,deny - no difference.

I got the information above from http://www.askapache.com/htaccess/apache-authentication-in-htaccess.html#allow-conditional

Any ideas???

Thanks
Greg

My Server Versions:
Zen Cart 1.3.9h, Apache 2.2.17, PHP 5.2.17, MySQL 5.1.54