History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
GET /?referer HTTP 1.1Host:<BucketName-APPID>.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
Host: <BucketName-APPID>.cos.&<Region>.myqcloud.com, <BucketName-APPID> is the bucket name followed by the APPID, such as examplebucket-1250000000 (see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), and <Region> is a COS region (see Regions and Access Endpoints).application/xml data. The following contains all the nodes:<RefererConfiguration><Status>Enabled</Status><RefererType>White-List</RefererType><DomainList><Domain>*.qq.com</Domain><Domain>*.qcloud.com</Domain></DomainList><EmptyReferConfiguration>Allow</EmptyReferConfiguration></RefererConfiguration>
Node Name | Parent Node | Description | Type | Required |
RefererConfiguration | None | Hotlink protection configuration | Container | Yes |
Status | RefererConfiguration | Whether hotlink protection is enabled. Enumerated values: Enabled, Disabled | String | Yes |
RefererType | RefererConfiguration | Hotlink protection type. Enumerated values: Black-List, White-List | String | Yes |
DomainList | RefererConfiguration | A list of domain names in the blocklist/allowlist. Using a prefix to specify multiple domains is supported. Domain names and IPs with ports are supported. A wildcard (*) is supported for second-level or multi-level domains. | Container | Yes |
Domain | DomainList | A single domain in the blocklist/allowlist, such as www.qq.com/example, 192.168.1.2:8080, or *.qq.com | String | Yes |
EmptyReferConfiguration | RefererConfiguration | Whether accessing with an empty referer is allowed. Enumerated values: Allow, Deny (default) | String | No |
GET /?referer HTTP 1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Fri, 25 Feb 2017 04:10:22 GMTAuthorization:q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1547105134;32526689134&q-key-time=1547105134;32620001134&q-header-list=content-md5;content-type;host&q-url-param-list=referer&q-signature=0f7fef5b1d2180deaf6f92fa2ee0cf87ae83****
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 260Connection: keep-aliveDate: Fri, 25 Feb 2017 04:10:22 GMTServer: tencent-cosx-cos-request-id: NTg3ZjFjMmJfOWIxZjRlXzZmNDhf****<RefererConfiguration><Status>Enabled</Status><RefererType>White-List</RefererType><DomainList><Domain>*.qq.com</Domain><Domain>*.qcloud.com</Domain></DomainList><EmptyReferConfiguration>Allow</EmptyReferConfiguration></RefererConfiguration>
피드백