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

Views :
Update time : 2025-06-26 20:40:11

我维护的几个网站是: 每次登录都要有验证码,错误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 美国为什么不原封不动照抄50年前载人登月方法?
2025-06-24 11:25:14
美国为什么不原封不动照抄50年前载人登月方法?...
Blog Post With Youtube Video 为什么Rust的热度超过Zig?
2025-06-24 11:55:14
为什么Rust的热度超过Zig?...
Blog Post With Youtube Video 组nas一定要TDP低的cpu吗?
2025-06-24 12:00:13
组nas一定要TDP低的cpu吗?...
Blog Post With Youtube Video postgresql能取代mongodb吗?
2025-06-24 12:20:13
postgresql能取代mongodb吗?...

Leave Your Message