zhouit / Zblog

a java blog
http://blog.zhouhaocheng.cn
Apache License 2.0
249 stars 198 forks source link

恶意登录检测问题 #2

Closed terwer closed 9 years ago

terwer commented 9 years ago

LoginFormValidator.java里面的判断 // if(!guard.equals(form.getGuard())){ // result.put("msg", "请不要尝试登录了!"); // }else

我没有进行非法操作,但还是提示“请不要尝试登录了”,这个判断的依据是什么,guard是在什么时候注入的?

zhouit commented 9 years ago

默认后台账号admin/12346 因为后台未使用验证码登录,为防止暴力破解,在后台登录,请带上登录参数,如www.yourdomain/backend/login?guard=no 其中‘no’值在https://github.com/dongfangshangren/Zblog/blob/master/src/main/resources/config/spring-service.xml 文件中配置

ghost commented 8 years ago

@dongfangshangren 建议登录弄个ecache,得到ip统计单位时间重试次数来防止暴力破解

popotans commented 6 years ago

终于明白guard=no 这个东西了,