Hi
when a user fails to login i want to redirect them and also capture their IP
for example. Apache 2
my .htaccess
AuthUserFile /home/domain/domain10c/web/.htpasswd
AuthName "Auth Users Only"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
require
ErrorDocument 401 /errors/401.php
ErrorDocument 403 /errors/403.php
ErrorDocument 404 /errors/404.php
ErrorDocument 500 /errors/500.php
error40x.php & 500 just have <? echo"Hello\n"; ?> while testing.
i get this back when i cancel login.
This server could not verify that you are authorized to access the document
requested. Either you supplied the wrong credentials (e.g., bad password),
or your browser doesn't understand how to supply the credentials required.
Additionally, a 401 Authorization Required error was encountered while
trying to use an ErrorDocument to handle the request.
if i login all ok.
Kram
>> Stay informed about: .htaccess login redirect