note 90665 added to function.sleep

From: Date: Sun, 03 May 2009 18:23:22 +0000
Subject: note 90665 added to function.sleep
Groups: php.notes 
Request: Send a blank email to php-notes+get-154166@lists.php.net to get a copy of this message
@ 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. ---- Server IP: 212.124.37.9 Probable Submitter: 91.34.68.225 ---- Manual Page -- http://www.php.net/manual/en/function.sleep.php Edit -- https://master.php.net/note/edit/90665 Del: integrated -- https://master.php.net/note/delete/90665/integrated Del: useless -- https://master.php.net/note/delete/90665/useless Del: bad code -- https://master.php.net/note/delete/90665/bad+code Del: spam -- https://master.php.net/note/delete/90665/spam Del: non-english -- https://master.php.net/note/delete/90665/non-english Del: in docs -- https://master.php.net/note/delete/90665/in+docs Del: other reasons-- https://master.php.net/note/delete/90665 Reject -- https://master.php.net/note/reject/90665 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#154166) next »