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:
Code:
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/ap...ow-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