note 92179 deleted from function.sleep by danbrown
| From: | danbrown@php.net | Date: | Mon, 13 Jul 2009 16:38:20 +0000 |
| Subject: | note 92179 deleted from function.sleep by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158241@lists.php.net to get a copy of this message | ||
Note Submitter: lc
----
for marpetr at gmail dot com, about brute force:
sleep() won't prevent or hinder brute force attacks on logins, unless you also serialize the
login procedude
e.g. the attacker starts 1000 login requests simultaneously, your script delay by 1 second each
request; the result is that the 1000-login batch gets delayed by only 1 second (not 1000 seconds)
bear in mind that php web request are parallel - you have to somehow limit one login request at a
time (maybe per username?) until the last one succeded or failed