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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.