You can call this operation to edit layer 7 HTTP flood protection rules.

Request parameters

Name Type Required Description
Domain String Yes The domain name that you want to change settings for.
Name String Yes The name of the HTTP flood protection rule.
Act String Yes The action to perform when the rule is triggered.
  • close: Block the request.
  • captcha: Enable captcha verification.
Count Integer Yes The number of requests. This parameter is used together with the Interval parameter. The rule is triggered when the number of requests sent by an IP address reaches the Count limit during the Interval period.
Interval Integer Yes The time interval. This parameter is used together with the Count parameter. The rule is triggered when the number of requests sent by an IP address reaches the Count limit during the Interval period.
Mode String Yes The URI matching algorithm.
  • match: Exact match. Requests are counted only when the request URI exactly matches the URI that is protected under the rule.
  • prefix: Prefix match. Requests are counted when the request URI contains the URI that is protected under the rule.
Ttl Integer Yes The blocking duration when the rule is triggered.
Uri String Yes The URI that is protected under the rule.

Response parameters

Name Type Description
RequestId String The GUID generated by Alibaba Cloud for the request.

Examples

Sample requests
{
  "Domain": "www.alibaba.com",
  "Name":"XXXX",
  "Act":"close",
  "Count":11,
  "Interval":5,
  "Mode":"match",
  "Ttl":1,
  "Uri":"/a/b/c.htm"
}
Sample responses
{
  "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}