Query the Access Referer Control
Last Updated:2020-09-17
Method | Path | Description |
---|---|---|
GET | /v2/domain/{domain}/config?refererACL | Query Referer access configuration |
domain: CDN accelerated domain name.
Request body
NULL
Response body
Parameter | Optional | Type | Description |
---|---|---|---|
refererACL | Required | RefererACL parameters are explained as follows:: - blackList: Optional, list type, indicating the referer blacklist. Support the wildcard ∗, and no protocol is required. For example, to set a blacklist domain name, you only set it as “www.xxx.com" instead of “http:// " www.xxx.com". - whiteList: Optional, list type, indicating the referer whitelist. Support the wildcard ∗ and no protocol is required. - allowEmpty: Required, Bool type, indicating whether null referer access is allowed; the null referer access is allowed if it defaults to be true. |
Access Referer configuration rules |
BlackList and whiteList do not exist at the same time.
Response example
HTTP/1.1 200 OK
Server: nginx/1.14.0
Date: Wed, 21 Aug 2019 03:21:34 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.6.36
x-bce-request-id: 9754176e-4c50-b718-1532-8927c06385e8
{"refererACL":{"allowEmpty":true}}