httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] How to detect failed authentification ?
Date Tue, 15 Aug 2006 15:47:30 GMT
On 8/15/06, Marc MENDEZ <> wrote:
> thanks for your answer, that's what I thought.
> But, is there a solution to get a mail *only* when the login failed ?

If you are using php as a module, you could probably check
$_SERVER['PHP_AUTH_USER'] as described here:

If it is empty or unset, it is likely an initial login attempt.  If
there is something in it but you still wound up at your 401 page, then
it is probably a bad password.

I've never tried it, but it should work.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message