I need to block a user after 5 unsuccessful login attempts. I have a table named "login_attempts" which has 3 columns "userid", "user", "attempts". Also I have a .php script which checks the credentials of a user like 'username' and 'password' and if the user is typing the password incorrect, he/she will be given the chance 5 times. Now probably everything is working fine even the data is also getting saved in the “login_attempts” table but after 5 unsuccessful login attempts I need to block the user for 15 mins…how is that done…please help. I have 2 separate files “process.php” and “login.php”. Please guide me…
thanks