Click here to Skip to main content
15,867,834 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to block user after insert wrong password 3 times for 15 minutes using php

any code or tutorial any idea???


i don't want to block him based on ip address i need othere ways
Posted
Comments
ZurdoDev 13-May-13 14:14pm    
Just write the code to do it. Where are you stuck exactly?
TheSniper105 13-May-13 14:16pm    
need idea
ZurdoDev 13-May-13 14:25pm    
Have a table in the database where you store login attempts. When a user tried to login see if that user just tried within your time frame.
snorkie 13-May-13 14:29pm    
If you're just trying to prevent people from writing a script to guess passwords, put a sleep of 500 miliseconds into each login attempt. This will not seriously affect good users, but will make it too slow to script password guessing.
TheSniper105 15-May-13 7:03am    
how???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900