Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting 401 error page when wrong password entered

Status
Not open for further replies.

mdkelly

IS-IT--Management
Jun 30, 2004
5
CA
Hello all,

First post to the forum and was glad to find it as I am currently trying to expand my minimal amount of apache knowledge.

I have just added a password protected area to my website. I am using the <Directory /> directives within my httpd.conf file to achieve this instead of .htaccess files. All of this works great but I just have one question.

If a user just clicks "Cancel" on the password pop-up box they are directed to my custom 401 error page. If the user just clicks "OK" on the password pop-up box without entering any information they are sent to the same error page. However, if they enter anything at all and press "OK" they are simply presented with the same password pop-up box again (this is assume they enter incorrect information of course).

What I am wondering is if I can send them to the 401 error page as soon as they enter incorrect information. If I can, how would I do this.

Thanks
mdkelly
 
Hi mate,

You can't do this because basic authentication is something that you do not really have much control over in this sense.

However, when you mentioned about it just showing the prompt again, after 3 attempts it should show the 401.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Hi Wullie,

Thank you for yur fast response.

After 3 attempts it does show the 401 error page. I guess I just never entered bad info that many times.

Thank you for the info about basic authentication

Cheers
mdkelly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top