Creates or modifies custom rules for website frequency control protection (HTTP flood protection).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-ddoscoo:ConfigWebCCRuleV2 |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Domain |
string |
Yes |
The domain name of the website. Note
The domain name must have website forwarding rules configured. You can call DescribeDomains to query all domain names. |
www.example.com |
| RuleList |
string |
Yes |
The configuration of frequency control rules, expressed as a JSON string with the following structure.
|
[{"action":"block","name":"trdsss","ratelimit":{"interval":60,"ttl":300,"threshold":70,"target":"ip"},"condition":[{"field":"ip","match_method":"belong","content":"1.1.1.1"}]}] |
| Expires |
integer |
No |
The validity period of the rule. Unit: seconds. Note
This parameter takes effect when the matching action of the rule is block (action is block), blocking access requests during the validity period. If this parameter is not specified, the rule is permanently effective. |
600 |
Values and corresponding relationships of field and match_method
Matching field (field) | Description | Applicable logical operators (match_method) |
ip | Source IP address of the access request. | belong: Belongs to |
uri | URI address of the access request. | contain: Contains |
referer | Source URL of the access request, indicating which page the access request was redirected from. | contain: Contains |
user-agent | Browser-related information of the client that initiated the access request, including the identifier of the browser, rendering engine, and version information. | contain: Contains |
params | Parameter part in the URL address of the access request, typically referring to the part after "?" in the URL. For example, | contain: Contains |
cookie | Cookie information in the access request. | contain: Contains |
content-type | HTTP content type specified by the access request, which is the Multipurpose Internet Mail Extensions (MIME) type information. | contain: Contains |
x-forwarded-for | Real client IP address of the access request. X-Forwarded-For (XFF) is an HTTP request header field used to identify the original IP address of a client accessing through an HTTP proxy or Server Load Balancer. Only access requests forwarded through an HTTP proxy or Server Load Balancer server contain this field. | contain: Contains |
content-length | Number of bytes contained in the access request. | vless: Value less than |
post-body | Content information of the access request. | contain: Contains |
http-method | Method of the access request, such as GET, POST, etc. | equal: Equals |
header | Header information of the access request, used for custom HTTP header fields. | contain: Contains |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and problem locating. |
0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc |
Examples
Success response
JSON format
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.