2 ms·
Make it reverse. Give known IP addresses a better reputation that unknown. Consider four zones: 1: the last three IP addresses the user has used; 2: any IP add
by mseebach 18y ago
Make it reverse. Give known IP addresses a better reputation that unknown.
Consider four zones: 1: the last three IP addresses the user has used; 2: any IP address the user has used more than 5 times; 3: any visit that has a valid "I've been logged in as user NN" cookie (given with expiry:never on every login); and 4: everything else.
Lockouts are per zone. Chances are that your average automated attacker is always in zone 4, and that your legitimate user is always in zones 1-3, and that they'll never bother each other. You can then make a policy that's three tries and you're out for three hours, unless you verify your e-mail address. 24 tries a day should be low enough that dictionary attacks are infeasible.