PUT /?hotlink HTTP/1.1Host: <BucketName-APPID>.pic.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
<Hotlink><Url>xxxxx</Url><Type>black</Type></Hotlink>>
Node Name | Parent Node | Description | Type | Required |
Url | Hotlink | Indicates the domain name address. | Container | Yes |
Type | Hotlink | Indicates the hotlink protection type. The value white indicates allowlist, the value black indicates blocklist, and the value off indicates the hotlink protection is disabled. | String | Yes |
PUT /?hotlink HTTP/1.1Host: examplebucket-1250000000.pic.ap-chengdu.myqcloud.comDate: Wed, 18 Mar 2000 06:57:54 GMTAuthorization: XXXXXXXXXXXX<Hotlink><Url>www.example.com</Url><Type>black</Type></Hotlink>
HTTP/1.1 200 OKContent-Length: 0Connection: keep-aliveDate: Fri, 25 Feb 2017 04:10:22 GMTServer: tencent-cosx-cos-request-id: NTg3ZjFjMmJfOWIxZjRlXzZmNDhf****
Was this page helpful?