WafRuleConfig

更新时间:
复制 MD 格式

名称

类型

描述

示例值

object

WAF 规则配置

Status

string

WAF 规则的状态。

on

Action

string

WAF 规则匹配命中后执行的动作。

deny

Actions

object

扩展动作

Response

object

自定义响应页面。

Id

integer

自定义响应页面的 ID,可通过调用 ListPages 接口获取。

50000001

Code

integer

自定义响应码。

403

Bypass

object

白名单规则指定的跳过模块。

Skip

string

跳过模块类型。

part

RegularRules

array

托管规则 id 列表。

integer

托管规则 ID。

100001

CustomRules

array

自定义规则 ID 列表。

integer

自定义规则 ID。

20000001

RegularTypes

array

托管规则类型列表。

string

托管规则类型。

sqli

Tags

array

跳过模块阶段列表。

string

跳过模块阶段。

http_custom

ManagedList

string

托管名单。

intelligence_crawler

ManagedRulesets

array

托管规则集列表。

object

托管规则集。

ProtectionLevel

integer

防护等级。

4

Action

string

执行动作。

deny

ManagedRules

array

托管规则列表。

object

托管规则。

Status

string

托管规则状态。

on

Action

string

托管规则动作。

deny

Id

integer

托管规则 ID。

100001

AttackType

integer

攻击类型。

11

NumberTotal

integer

规则总数。

100

NumberEnabled

integer

已开启规则数。

50

Sigchl

array

令牌校验配置。

string

令牌校验配置项。

sig

Name

string

WAF 规则的名称。

example

AppSdk

object

APP SDK 配置。

CustomSign

object

自定义加签字段。

Value

string

字段值。

examplesignvalue

Key

string

字段名。

sign

CustomSignStatus

string

自定义加签字段开关。

on

FeatureAbnormal

array

APP 特征异常。

string

APP 特征异常。

wxbb_invalid_sign

RateLimit

object

频次控制规则相关配置。

Characteristics WafRuleMatch2

指定频次统计对象。

OnHit

boolean

在命中缓存的请求上应用。

true

TTL

integer

超时时间。

10

Threshold

object

统计阈值。

ManagedRulesBlocked

integer

托管规则命中阈值。

10

DistinctManagedRules

integer

不同的托管规则个数阈值。

10

ResponseStatus

object

响应码阈值。

Ratio

integer

响应码百分比。

10

Count

integer

响应码次数阈值。

10

Code

integer

HTTP 响应码。

404

Traffic

string

流量阈值,已废弃。

10Gb

Request

integer

请求阈值。

10

Interval

integer

统计时长。

10

Type

string

WAF 规则的类型。

http_custom

AppPackage

object

二次打包检测配置。

PackageSigns

array

二次打包检测。

object

二次打包检测。

Sign

string

包签名。

sign

Name

string

指定合法包名。

name

ManagedGroupId

integer

托管规则组 id,已废弃。

30000001

Timer WafTimer

定时器。

Expression

string

匹配表达式。

ip.src eq 10.0.0.1

SecurityLevel

object

安全级别

Value

string

安全级别的值:

  • off:关闭

  • essentially_off:基本关闭

  • low:低

  • medium:中等

  • high:高

  • under_attack:我正在遭受攻击

low

Value

string

IP 访问控制值

10.0.0.1

Id

integer

WAF 规则的 ID。

20000001

Notes

string

备注

example notes