大家在做登录功能时,一般怎么做暴力破解防护?

Views :
Update time : 2025-06-19 21:10:15

我维护的几个网站是: 每次登录都要有验证码,错误10次,用户名锁30分钟,不管是不是有效的用户名都这样,不锁ip,ip锁麻烦事太多了,因为很多人用的是大内网,锁一次整个大内网都没法用 错误一次,就在这个用户名后面的FailuresQuantity上+1,到第10次时,把FailuresQuantity变成10,并写上UnlockTime,第11次登录,看看超没超UnlockTime,超了的话,把FailuresQuantity设成1,从头开始计 如果在第7次正确,就把FailuresQuantit…。

大家在做登录功能时,一般怎么做暴力破解防护?
Related News
Read More >>
Blog Post With Youtube Video 自己组一个E5服务器才几百块钱,为什么去阿里云租这么贵?
2025-06-20 17:15:19
自己组一个E5服务器才几百块钱,为什么去阿里云租这么贵?...
Blog Post With Youtube Video Rust 的设计缺陷是什么?
2025-06-20 15:50:17
Rust 的设计缺陷是什么?...
Blog Post With Youtube Video 有哪些看似聪明,实则很傻的行为?
2025-06-20 16:55:17
有哪些看似聪明,实则很傻的行为?...
Blog Post With Youtube Video Python+rust会是一个强大的组合吗?
2025-06-20 16:10:19
Python+rust会是一个强大的组合吗?...

Leave Your Message