Jump to content

IP Logging:


rofl90

Recommended Posts

I have a form in which submits an ip when you logon, and stores it into a mysql database, now how would I extract that data, but only displaying like the last 20 results.. OR how would I have the records automatically delete themselves after 30 minutes or whatever, so that if you get it wrong your almost locked out for a while. But obviously I'd make it three times or w.e.

Link to comment
https://forums.phpfreaks.com/topic/94385-ip-logging/
Share on other sites

Make a last_login_try field in your database and store a timestamp from the last time they failed a login. Then add login_tries or something to your database, and increment a number each time they fail a login.

 

Then run a check to see if how many failed logins they have. Then see if the last login attempt was more than the specified time limit ago.

 

 

Link to comment
https://forums.phpfreaks.com/topic/94385-ip-logging/#findComment-483378
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.