Log in

View Full Version : IP Log



tacmig99
06-01-2006, 01:27 AM
Using .htpasswd I made my page password protected

How do I make it so it logs the IP everytime someone tries to login but gets the password wrong?
Assuming someone gives me a few lines of code since everyone in this forum appears to be smart do I add it to the .htaccess file or .htpasswd file?

Thanks in advance.

Twey
06-01-2006, 01:30 AM
All requests should be logged by Apache anyway.
There's no way to implement this using .htaccess, insofar as I know. You'd have to write an authentication system in PHP or something, if you can't access Apache's logs for whatever reason.

tacmig99
06-01-2006, 01:34 AM
Wow three minutes response, record timing lol
Didn't know Apache logged this, thanks.