Mortgages - Loans - Cheap Car Insurance - NJ CoLocation - Debt Help

PDA

View Full Version : htaccess - Allow IP AND password?


xxKillswitch
Jan 31st 2008, 7:25 pm
Hello all,
I am using htaccess to lock sensitive areas on my site down with htaccess allowing only my IP to get through...

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "Example Access Control"
AuthType Basic
<LIMIT GET>
order deny,allow
deny from all
allow from **.***.***.***
</LIMIT>

Can I also have it password protected so that even though my IP matches I still need to provide a username and password??

Thanks.

Dan-Brogan
Jan 31st 2008, 7:56 pm
have you tried password protecting the directory as well as only allowing your ip?