From 875395ad4c30c0bb6eb0d8c40a051efe9e826184 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 26 Apr 2019 13:58:07 +0800 Subject: [PATCH] uu --- plugins/op_waf/js/op_waf.js | 53 ++++++++++++++++++++++++- plugins/op_waf/waf/html/cookie.html | 38 ++++++++++++++++++ plugins/op_waf/waf/html/get.html | 38 ++++++++++++++++++ plugins/op_waf/waf/html/other.html | 38 ++++++++++++++++++ plugins/op_waf/waf/html/post.html | 38 ++++++++++++++++++ plugins/op_waf/waf/html/user_agent.html | 38 ++++++++++++++++++ 6 files changed, 241 insertions(+), 2 deletions(-) create mode 100755 plugins/op_waf/waf/html/cookie.html create mode 100755 plugins/op_waf/waf/html/get.html create mode 100755 plugins/op_waf/waf/html/other.html create mode 100755 plugins/op_waf/waf/html/post.html create mode 100755 plugins/op_waf/waf/html/user_agent.html diff --git a/plugins/op_waf/js/op_waf.js b/plugins/op_waf/js/op_waf.js index 1714402a4..cfe5dcd4f 100755 --- a/plugins/op_waf/js/op_waf.js +++ b/plugins/op_waf/js/op_waf.js @@ -167,6 +167,45 @@ function setCcRule(cycle, limit, endtime, siteName, increase){ } + +//设置retry规则 +function setRetry(retry_cycle, retry, retry_time, siteName) { + create_l = layer.open({ + type: 1, + title: "设置恶意容忍规则", + area: '500px', + closeBtn: 2, + shadeClose: false, + content: '
\ +
\ + 周期\ +
秒
\ +
\ +
\ + 频率\ +
次
\ +
\ +
\ + 封锁时间\ +
秒
\ +
\ + \ +
\ + ', + success:function(){ + $('.btn_retry_all').click(function(){ + save_retry(siteName,1); + }); + $('.btn_retry_present').click(function(){ + save_retry(siteName,0); + }); + } + }); +} + function wafScreen(){ owPost('waf_srceen', {}, function(data){ @@ -229,14 +268,24 @@ function wafGloabl(){ 封锁连续恶意请求,请到站点配置中调整容忍阈值\ ' + rdata.cc.status + '\ --\ - 初始规则\ + 初始规则\ + \ + \ + GET-URI过滤\ + '+ rdata.get.ps + '\ + ' + rdata.get.status + '\ +
\ + \ + \ +
\ + 规则 | 响应内容\ \ \ \ '; - con += '
    \ + con += '
      \
    • 继承: 全局设置将在站点配置中自动继承为默认值
    • \
    • 优先级: IP白名单>IP黑名单>URL白名单>URL黑名单>CC防御>禁止国外IP访问>User-Agent>URI过滤>URL参数>Cookie>POST
    • \
    '; diff --git a/plugins/op_waf/waf/html/cookie.html b/plugins/op_waf/waf/html/cookie.html new file mode 100755 index 000000000..dde7d7833 --- /dev/null +++ b/plugins/op_waf/waf/html/cookie.html @@ -0,0 +1,38 @@ + + + + +网站防火墙 + + + + +
    +
    网站防火墙
    +
    +

    您的请求带有不合法参数,已被网站管理员设置拦截!

    +

    可能原因:

    +
      +
    1. 您提交的内容包含危险的攻击请求
    2. +
    +

    如何解决:

    +
      +
    1. 检查提交内容;
    2. +
    3. 如网站托管,请联系空间提供商;
    4. +
    5. 普通网站访客,请联系网站管理员;
    6. +
    +
    +
    + + + diff --git a/plugins/op_waf/waf/html/get.html b/plugins/op_waf/waf/html/get.html new file mode 100755 index 000000000..dde7d7833 --- /dev/null +++ b/plugins/op_waf/waf/html/get.html @@ -0,0 +1,38 @@ + + + + +网站防火墙 + + + + +
    +
    网站防火墙
    +
    +

    您的请求带有不合法参数,已被网站管理员设置拦截!

    +

    可能原因:

    +
      +
    1. 您提交的内容包含危险的攻击请求
    2. +
    +

    如何解决:

    +
      +
    1. 检查提交内容;
    2. +
    3. 如网站托管,请联系空间提供商;
    4. +
    5. 普通网站访客,请联系网站管理员;
    6. +
    +
    +
    + + + diff --git a/plugins/op_waf/waf/html/other.html b/plugins/op_waf/waf/html/other.html new file mode 100755 index 000000000..dde7d7833 --- /dev/null +++ b/plugins/op_waf/waf/html/other.html @@ -0,0 +1,38 @@ + + + + +网站防火墙 + + + + +
    +
    网站防火墙
    +
    +

    您的请求带有不合法参数,已被网站管理员设置拦截!

    +

    可能原因:

    +
      +
    1. 您提交的内容包含危险的攻击请求
    2. +
    +

    如何解决:

    +
      +
    1. 检查提交内容;
    2. +
    3. 如网站托管,请联系空间提供商;
    4. +
    5. 普通网站访客,请联系网站管理员;
    6. +
    +
    +
    + + + diff --git a/plugins/op_waf/waf/html/post.html b/plugins/op_waf/waf/html/post.html new file mode 100755 index 000000000..dde7d7833 --- /dev/null +++ b/plugins/op_waf/waf/html/post.html @@ -0,0 +1,38 @@ + + + + +网站防火墙 + + + + +
    +
    网站防火墙
    +
    +

    您的请求带有不合法参数,已被网站管理员设置拦截!

    +

    可能原因:

    +
      +
    1. 您提交的内容包含危险的攻击请求
    2. +
    +

    如何解决:

    +
      +
    1. 检查提交内容;
    2. +
    3. 如网站托管,请联系空间提供商;
    4. +
    5. 普通网站访客,请联系网站管理员;
    6. +
    +
    +
    + + + diff --git a/plugins/op_waf/waf/html/user_agent.html b/plugins/op_waf/waf/html/user_agent.html new file mode 100755 index 000000000..dde7d7833 --- /dev/null +++ b/plugins/op_waf/waf/html/user_agent.html @@ -0,0 +1,38 @@ + + + + +网站防火墙 + + + + +
    +
    网站防火墙
    +
    +

    您的请求带有不合法参数,已被网站管理员设置拦截!

    +

    可能原因:

    +
      +
    1. 您提交的内容包含危险的攻击请求
    2. +
    +

    如何解决:

    +
      +
    1. 检查提交内容;
    2. +
    3. 如网站托管,请联系空间提供商;
    4. +
    5. 普通网站访客,请联系网站管理员;
    6. +
    +
    +
    + + +