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
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