diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index 9fd0f0c7a..0fd0487c1 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -85,8 +85,12 @@ def initDomainInfo(): def initSiteInfo(): data = [] path_domains = getJsonPath('domains') + path_config = getJsonPath('config') path_site = getJsonPath('site') + config_contents = public.readFile(path_config) + config_contents = json.loads(config_contents) + domain_contents = public.readFile(path_domains) domain_contents = json.loads(domain_contents) @@ -109,9 +113,7 @@ def initSiteInfo(): tmp['post'] = True tmp['open'] = False - data_cc = {} - data_cc['open'] = False - tmp['cc'] = data_cc + tmp['cc'] = config_contents['cc'] site_contents_new[name] = tmp diff --git a/plugins/op_waf/js/op_waf.js b/plugins/op_waf/js/op_waf.js index 378c6a19b..3a1f5ebad 100755 --- a/plugins/op_waf/js/op_waf.js +++ b/plugins/op_waf/js/op_waf.js @@ -1040,6 +1040,33 @@ function siteWafConfig(siteName, type) { \ \ \ +
| 名称 | \ +描述 | \ +状态 | \ +操作 | \ +
|---|---|---|---|
| CC防御 | \ +'+ rdata.cc.cycle + ' 秒内,请求同一URI累计超过 ' + rdata.cc.limit + ' 次,封锁IP ' + rdata.cc.endtime + ' 秒 | \ +\
+ \
+ \
+ \
+ \
+ | \
+ 设置 | \ +