Preventing dictionary attacks on a web application

前端 未结 8 1143
一个人的身影
一个人的身影 2021-02-01 20:53

What\'s the best way to prevent a dictionary attack? I\'ve thought up several implementations but they all seem to have some flaw in them:

  1. Lock out a user after X
8条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 21:30

    There is an eternal tradeoff between security, availability and usability, which means that there is no perfect solution.

    A decent tradeoff, depending on your situation, is to use option #1 with a captcha. Lock the account after three failed attempts, but allow subsequent login attempts if a captcha is correctly solved.

提交回复
热议问题