jamescover
08-31-2002, 05:18 AM
Hi:
I'm using .htaccess/.htpassword to protect files and directories on my site. So, if you click on a link to a protected directory, you will get a password prompt. However, if someone who is not a client is just being curious, a common occurence, and clicks on the link then cancels the password prompt, they end up looking at an ugly "Authorization Required" page that does not match the design of my site.
So, I'd like to customize this page. However, my host's tech support told me that they do not offer this ability. However, they suggested, without telling me how, that I could intercept the cancelled prompt with Javascript, and supply my own custom page, I suppose.
Anyway, does anyone know how to do this: Intercept a cancelled .htacess/.htpassword prompt???
Thanks,
James
He is risen!!!
I'm using .htaccess/.htpassword to protect files and directories on my site. So, if you click on a link to a protected directory, you will get a password prompt. However, if someone who is not a client is just being curious, a common occurence, and clicks on the link then cancels the password prompt, they end up looking at an ugly "Authorization Required" page that does not match the design of my site.
So, I'd like to customize this page. However, my host's tech support told me that they do not offer this ability. However, they suggested, without telling me how, that I could intercept the cancelled prompt with Javascript, and supply my own custom page, I suppose.
Anyway, does anyone know how to do this: Intercept a cancelled .htacess/.htpassword prompt???
Thanks,
James
He is risen!!!