Jump to content

Failed login = block?


Recommended Posts

You need to store the IP, the failed try count, the fact that they are locked out, and the time the lockout occurred persistently using a method that the visitor cannot reset. If you use a session, the visitor can just reset the values by dropping the existing session id and starting a new session.

 

If you are not using a mysql database, you will need to store this information in a flat-file database.

Link to comment
https://forums.phpfreaks.com/topic/164401-failed-login-block/#findComment-867209
Share on other sites

You need to store the IP, the failed try count, the fact that they are locked out, and the time the lockout occurred persistently using a method that the visitor cannot reset. If you use a session, the visitor can just reset the values by dropping the existing session id and starting a new session.

 

If you are not using a mysql database, you will need to store this information in a flat-file database.

So you would use the fwrite function to write the IP to a textfile, and when logging in read the textfile to check the amount of logins / time and determine it from there?

Link to comment
https://forums.phpfreaks.com/topic/164401-failed-login-block/#findComment-867211
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.