note 90665 deleted from function.sleep by danbrown

From: Date: Mon, 04 May 2009 12:54:34 +0000
Subject: note 90665 deleted from function.sleep by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154180@lists.php.net to get a copy of this message
Note Submitter: diego a messenger do dsemmler do de ---- @ the comment of marpetr at gmail dot com: It's a very bad idea to protect logins against password brute forcing by sleeping your script, because the attacker can start multiple requests at once and so knock out the protection. Here's a better way to protect accounts against brute forcing: On every missed login add one to the counter of ip-address and / or account and take the time. If the counter reaches 5 (for example), don't check the password anymore, let the script just say "no". If the time is more than 24 h ago, you can check the password again.

« previous php.notes (#154180) next »