diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index 0fd0487c1..4c3b4d802 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -114,7 +114,15 @@ def initSiteInfo(): tmp['open'] = False tmp['cc'] = config_contents['cc'] - + tmp['retry'] = config_contents['retry'] + tmp['get'] = config_contents['get'] + tmp['post'] = config_contents['post'] + tmp['user-agent'] = config_contents['user-agent'] + tmp['cookie'] = config_contents['cookie'] + tmp['scan'] = config_contents['scan'] + + cdn_header = ['x-forwarded-for', 'x-real-ip'] + tmp['cdn_header'] = cdn_header site_contents_new[name] = tmp cjson = public.getJson(site_contents_new) diff --git a/plugins/op_waf/js/op_waf.js b/plugins/op_waf/js/op_waf.js index 3a1f5ebad..26a755378 100755 --- a/plugins/op_waf/js/op_waf.js +++ b/plugins/op_waf/js/op_waf.js @@ -1063,6 +1063,87 @@ function siteWafConfig(siteName, type) { \ 设置\ \ + \ + 恶意容忍设置\ + '+ rdata.retry.retry_cycle + ' 秒内,累计超过 ' + rdata.retry.retry + ' 次恶意请求,封锁IP ' + rdata.retry.retry_time + ' 秒\ +   --\ + 设置\ + \ + \ + GET-URI过滤\ + '+ rdata.get.ps + '\ + \ +
\ + \ + \ +
\ + \ + 规则\ + \ + GET-参数过滤\ + '+ rdata.get.ps + '\ + \ +
\ + \ + \ +
\ + \ + 规则\ + \ + \ + POST过滤\ + '+ rdata.post.ps + '\ + \ +
\ + \ + \ +
\ + \ + 规则\ + \ + \ + User-Agent过滤\ + '+ rdata['user-agent'].ps + '\ + \ +
\ + \ + \ +
\ + \ + 规则\ + \ + \ + Cookie过滤\ + '+ rdata.cookie.ps + '\ + \ +
\ + \ + \ +
\ + \ + 规则\ + \ + \ + 常见扫描器'+ rdata.scan.ps + '\ + \ +
\ + \ + \ +
\ + \ + 设置\ + \ + \ + 使用CDN\ + 该站点使用了CDN,启用后方可正确获取客户IP\ + \ +
\ + \ + \ +
\ + \ + 设置\ + \ \ \ \