Actually, this answer isn't by Jeff Atwood. See http://meta.stackoverflow.com/questions/95172/old-problemati...
Ah - my mistake. Thank you for clarifying.
Note that this can be very tricky. You don't want to keep connections open or waiting.
Re:Weak passwords brute forced
by rurounijones on Tuesday November 19, 2013 @11:48PM
(#6766359)
Very useful, thanks!
http://stackoverflow.com/questions/549/the-definitive-guide-...
TL;DR - compute the average number of system-wide failed password attempts, and if it's over the norm, impose small delay on all users (except those that login via a persistent login cookie).