The bucket configuration page of CI contains Basic Info, Bucket Tag, 4xx Image Setting, and Original Image Protection.
Note:
CI is a COS-based data processing service. You can modify bucket configurations, such as the following, in the COS console as instructed in the corresponding documents:
Basic Info displays information about the bucket, including the bucket name, bucket ID, region, and its creation time.
The tagging feature allows you to manage buckets in categories. In Bucket Tag, you can add tags for your buckets and view the configured tags.
4xx Image Setting is used to configure the content returned for HTTP status codes 4xx. The returned content types include system image, return code, and custom image.
Display Type | Returned Content |
---|---|
System image | 200 status code + corresponding image |
Return code | HTTP status code |
Custom image | 200 status code + corresponding image |
Log in to the CI console, click Bucket Management in the left sidebar, and click the desired bucket to go to the bucket management page.
Click the Bucket Configuration tab on the left and find 4xx Image Setting on the right.
Click Edit and select a display type as needed.
Click Save.
CI provides the original image protection service to protect source files from being requested by malicious users. Original image protection needs to be used together with CI's style feature. For more information about the style feature, please see Style Setting. After original image protection is enabled, image files in the bucket can only be accessed at stylized URLs.
Suppose the original image URL is http://examplebucket-1250000000.picsh.myqcloud.com/picture.jpg
and the style1
style has been set for the examplebucket-1250000000
bucket. Once the original image protection feature is enabled, the image can be accessed only at http://examplebucket-1250000000.picsh.myqcloud.com/picture.jpg?style1
but not the original image URL.
Note:
- The original image protection feature supports only CI domain names, such as
examplebucket-1250000000.picsh.myqcloud.com
.- This feature is usually suitable for scenarios such as original image resource hotlink protection and business anti-cheating. For example, you can save the watermark parameters as a style and enable original image protection, then the image files in the corresponding bucket can be accessed only at the URLs with the watermark style.
- You can also call the Enabling Origin Protection API to enable original image protection.
Log in to the CI console, click Bucket Management in the left sidebar, and click the desired bucket to go to the bucket management page.
Click the Bucket Configuration tab on the left and find Original Image Protection on the right.
Click Edit, change Status to Enabled, and select Image Type. *
indicates enabling original image protection for all image types.
Click Save.
Was this page helpful?