public class FrequentScanningProtection extends AbstractModel
header, skipSign
Constructor and Description |
---|
FrequentScanningProtection() |
FrequentScanningProtection(FrequentScanningProtection source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
SecurityAction |
getAction()
Get 高频扫描防护的处置动作。 当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:Deny:拦截,响应拦截页面;Monitor:观察,不处理请求记录安全事件到日志中;JSChallenge:JavaScript 挑战,响应 JavaScript 挑战页面。
|
String |
getActionDuration()
Get 此参数指定高频扫描防护 Action 参数所设置处置动作的持续时长,取值范围 60 ~ 86400,单位仅支持秒(s),例如 60s。当 Enabled 为 on 时,此字段必填。
|
Long |
getBlockThreshold()
Get 此参数指定高频扫描防护的阈值,即在 CountingPeriod 所设置时间范围内命中「配置为拦截」的托管规则时的累计拦截次数,取值范围 1 ~ 4294967294,例如 100,当超过此统计值时,后续请求将触发 Action 所设置的处置动作。当 Enabled 为 on 时,此字段必填。
|
String |
getCountBy()
Get 请求统计的匹配方式,当 Enabled 为 on 时,此字段必填。取值有:http.request.xff_header_ip:客户端 IP(优先匹配 XFF 头部);http.request.ip:客户端 IP。
|
String |
getCountingPeriod()
Get 此参数指定高频扫描防护所统计的时间窗口,即命中「配置为拦截」的托管规则的请求的统计时间窗口,取值 5 ~ 1800,单位仅支持秒(s),例如 5s。 当 Enabled 为 on 时,此字段必填。
|
String |
getEnabled()
Get 高频扫描防护规则是否开启。取值有:on:开启,高频扫描防护规则生效;off:关闭,高频扫描防护规则不生效。
|
void |
setAction(SecurityAction Action)
Set 高频扫描防护的处置动作。 当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:Deny:拦截,响应拦截页面;Monitor:观察,不处理请求记录安全事件到日志中;JSChallenge:JavaScript 挑战,响应 JavaScript 挑战页面。
|
void |
setActionDuration(String ActionDuration)
Set 此参数指定高频扫描防护 Action 参数所设置处置动作的持续时长,取值范围 60 ~ 86400,单位仅支持秒(s),例如 60s。当 Enabled 为 on 时,此字段必填。
|
void |
setBlockThreshold(Long BlockThreshold)
Set 此参数指定高频扫描防护的阈值,即在 CountingPeriod 所设置时间范围内命中「配置为拦截」的托管规则时的累计拦截次数,取值范围 1 ~ 4294967294,例如 100,当超过此统计值时,后续请求将触发 Action 所设置的处置动作。当 Enabled 为 on 时,此字段必填。
|
void |
setCountBy(String CountBy)
Set 请求统计的匹配方式,当 Enabled 为 on 时,此字段必填。取值有:http.request.xff_header_ip:客户端 IP(优先匹配 XFF 头部);http.request.ip:客户端 IP。
|
void |
setCountingPeriod(String CountingPeriod)
Set 此参数指定高频扫描防护所统计的时间窗口,即命中「配置为拦截」的托管规则的请求的统计时间窗口,取值 5 ~ 1800,单位仅支持秒(s),例如 5s。 当 Enabled 为 on 时,此字段必填。
|
void |
setEnabled(String Enabled)
Set 高频扫描防护规则是否开启。取值有:on:开启,高频扫描防护规则生效;off:关闭,高频扫描防护规则不生效。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public FrequentScanningProtection()
public FrequentScanningProtection(FrequentScanningProtection source)
public String getEnabled()
public void setEnabled(String Enabled)
Enabled
- 高频扫描防护规则是否开启。取值有:public SecurityAction getAction()
public void setAction(SecurityAction Action)
Action
- 高频扫描防护的处置动作。 当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:public String getCountBy()
public void setCountBy(String CountBy)
CountBy
- 请求统计的匹配方式,当 Enabled 为 on 时,此字段必填。取值有:public Long getBlockThreshold()
public void setBlockThreshold(Long BlockThreshold)
BlockThreshold
- 此参数指定高频扫描防护的阈值,即在 CountingPeriod 所设置时间范围内命中「配置为拦截」的托管规则时的累计拦截次数,取值范围 1 ~ 4294967294,例如 100,当超过此统计值时,后续请求将触发 Action 所设置的处置动作。当 Enabled 为 on 时,此字段必填。public String getCountingPeriod()
public void setCountingPeriod(String CountingPeriod)
CountingPeriod
- 此参数指定高频扫描防护所统计的时间窗口,即命中「配置为拦截」的托管规则的请求的统计时间窗口,取值 5 ~ 1800,单位仅支持秒(s),例如 5s。 当 Enabled 为 on 时,此字段必填。public String getActionDuration()
public void setActionDuration(String ActionDuration)
ActionDuration
- 此参数指定高频扫描防护 Action 参数所设置处置动作的持续时长,取值范围 60 ~ 86400,单位仅支持秒(s),例如 60s。当 Enabled 为 on 时,此字段必填。Copyright © 2025. All rights reserved.