-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.lua
45 lines (43 loc) · 1.45 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--WAF config file,enable = "on",disable = "off"
--waf status
config_waf_enable = "on" --开关
--log dir
config_log_dir = "/tmp"
--rule setting
config_rule_dir = "/usr/local/openresty/nginx/conf/waf/rule"
--enable/disable white url --白名单url
config_white_url_check = "on"
--enable/disable white ip --白名单ip
config_white_ip_check = "on"
--enable/disable block ip --黑名单IP
config_black_ip_check = "on"
--enable/disable url filtering --不允许访问的目录
config_url_check = "on"
--enalbe/disable url args filtering --url参数
config_url_args_check = "on"
--enable/disable user agent filtering --ua检查
config_user_agent_check = "on"
--enable/disable cookie deny filtering --cookie检查
config_cookie_check = "on"
--enable/disable cc filtering --cc攻击
config_cc_check = "on"
--cc rate the xxx of xxx seconds --cc攻击检查
config_cc_rate = "15/60"
--enable/disable post filtering --post参数检查
config_post_check = "on"
--config waf output redirect/html --选择跳转还是返回
config_waf_output = "html"
--if config_waf_output ,setting url
config_waf_redirect_url = "https://www.notesus.cn"
config_output_html=[[
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title>web应用防火墙</title>
</head>
<body>
<h1 align="center"> 好好规范访问,不要试图攻击本站哦。
</body>
</html>
]]