Preventing Brute Force Logins on Websites

前端 未结 14 1287
小鲜肉
小鲜肉 2020-11-27 10:18

As a response to the recent Twitter hijackings and Jeff\'s post on Dictionary Attacks, what is the best way to secure your website against brute force login attacks?

14条回答
  •  时光说笑
    2020-11-27 10:36

    You should implement a cache in the application not associated with your backend database for this purpose.

    First and foremost delaying only legitimate usernames causes you to "give up" en-mass your valid customer base which can in itself be a problem even if username is not a closely guarded secret.

    Second depending on your application you can be a little smarter with an application specific delay countermeasures than you might want to be with storing the data in a DB.

    Its resistant to high speed attempts that would leak a DOS condition into your backend db.

    Finally it is acceptable to make some decisions based on IP... If you see single attempts from one IP chances are its an honest mistake vs multiple IPs from god knows how many systems you may want to take other precautions or notify the end user of shady activity.

    Its true large proxy federations can have massive numbers of IP addresses reserved for their use but most do make a reasonable effort to maintain your source address for a period of time for legacy purposes as some sites have a habbit of tieing cookie data to IP.

提交回复
热议问题