首先进去 3311 后台;
点击请求控制;
点击插入,选择标记模块 anti_cc
参数设置:
request:8
second:10
preset msg:选择 html redirect
防御模式使用 http 跳转,一般情况下可以拦截大量 CC 攻击,如果防不住就选择 preset msg 就选择 js concat ,自带最好的就是 js concat 了
如果启用 js concat 就在 msg 框内输入以下代码:
[code]HTTP/1.1 302 FOUND Connection: keep-alive Location: {{url}} Recaptcha: sakura <html><head><style type="text/css"> <!-- .notice{ font-family: Verdana, "Bitstream Vera Sans", "DejaVu Sans", Tahoma, Geneva, Arial, Sans-serif; font-size:12px; line-height: 18px; padding: 5px 15px; float: left; background-color:#eee; border:1px solid #ddd; } .notice .title{ color: #000; font-weight:bold; border-bottom: 1px solid #ddd; } .notice .description{ color:#666; } //--> </style></head><body><a href="{{url}}"><div class="notice"> <div class="title">You have verified successfully</div> <div class="description">Please wait, you are being redirected ...</div> </div></a></body></html>[/code]
按照图上设置,10 秒内 8 次请求启用 CC 防护,能完美防护大量常见 CC 模式
注:CC 防护中程序会占用一定的资源,属于正常情况,kangle 3311 后台可是很清晰的把攻击 IP,被攻击 URL 全部展现出来哦。
kangle 是一款很不错的 web server,PHP 下性能也极其高,哔哩哔哩,云盘助手,等等很多大型网站都采用过 kangle 做后端处理,nginx 做前端静态处理。
发表评论