Block request for multiple unsuccessful logins for a period of time

后端 未结 7 2026
粉色の甜心
粉色の甜心 2020-11-30 05:06

I have a web site and I want to block request from BOTs and attempt brute force login to my web site.

Now I\'m using Session for storing lo

7条回答
  •  伪装坚强ぢ
    2020-11-30 05:45

    If i were doing this i would use a column in a database to store the login attempt number and a date time stamp for the first attempt. Then have some logic around the login

     if(loginAttempt>5 && DateTime.Now

提交回复
热议问题