Update init.lua
parent
785bfdba34
commit
1f65c765cc
|
@ -34,6 +34,6 @@ include waf.conf;
|
||||||
```
|
```
|
||||||
|
|
||||||
### Copyright
|
### Copyright
|
||||||
完全copy以下项目:<br />
|
copy以下项目:<br />
|
||||||
https://github.com/loveshell/ngx_lua_waf<br />
|
https://github.com/loveshell/ngx_lua_waf<br />
|
||||||
https://github.com/unixhot/waf
|
https://github.com/unixhot/waf
|
||||||
|
|
1
init.lua
1
init.lua
|
@ -70,7 +70,6 @@ function cc_attack_check()
|
||||||
if req > CCcount then
|
if req > CCcount then
|
||||||
log_record('CC_Attack',ngx.var.request_uri,"-","-")
|
log_record('CC_Attack',ngx.var.request_uri,"-","-")
|
||||||
if config_waf_enable == "on" then
|
if config_waf_enable == "on" then
|
||||||
waf_output()
|
|
||||||
ngx.exit(403)
|
ngx.exit(403)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue