php set time delays after input attempts
<p>Question is related with brute force attacks.
If user enters incorrect password, php records in mysql datetime of the attempt. And in case of incorrect password I need that the user can make next attempt only after certain time (1-2 seconds).
As i understand php sleep is not good, because it does not prevent bots to make requests?</p>

<p>What would be solution (to set time delay without php sleep)? </p>
