Configures an IP blacklist for an accelerated domain name.

CIDR blocks can be added to an IP blacklist.

For example, you can add 127.0.0.1/24 to the IP address blacklist or whitelist. 24 indicates that the first 24 bits are the mask to represent the part of the network portion of the address. The remaining 8 bits are host bits. The subnet can accommodate 254 hosts. Therefore, the IP addresses are 127.0.0.1 to 127.0.0.255.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetIpBlackListConfig

The operation that you want to perform. Set the value to SetIpBlackListConfig.

BlockIps String Yes 192.168.0.1

The IP blacklist. IP addresses added to the blacklist cannot access the accelerated domain name. You can specify multiple IP addresses and separate them with commas (,).

DomainName String Yes www.macaron.org.cn

The accelerated domain names. You can specify multiple domain names and separate them with commas (,).

Response parameters

Parameter Type Example Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request.

Examples

Sample requests

http://cdn.aliyuncs.com/?Action=SetIpBlackListConfig
&DomainName=example.com
&BlockIps=192.168.0.1
&<Common request parameters>

Sample success responses

XML format

<SetIpBlackListConfigResponse>
      <RequestId>AED00EC1-32A8-4D48-BEB9-BD782AF3C6BD</RequestId>
</SetIpBlackListConfigResponse>

JSON format

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}

Error codes

For a list of error codes, visit the API Error Center.