I'm working on authentication and adding brute-force protection. I'm not sure how I should proceed.
Should I just do a flat block after 15 failed attempts for a certain IP address... or should I tie it to username? Should there be both a captcha threshold and a absolute cutoff?
Are there other patterns I should be following?