tencent cloud

Feedback

Accessing COS Anonymously

Last updated: 2022-05-03 15:51:48

    COS buckets are private by default. Identity verification is required for any access to COS, and object URLs used to access COS must carry signature information. However, if resources (buckets, objects, and folders) are configured with the Public Read permission, anonymous access is allowed, and users can use object URLs to download resources directly.

    According to the permission application scope, COS allows users to set the Public Read permission at the bucket, object, or folder level.

    Setting the Permission of a Bucket to Public Read

    If the permission of a bucket is set to Public Read/Private Write, all objects in the bucket can be accessed by anonymous users. For the setting method, see Setting Access Permission.

    Setting the Permission of an Object to Public Read

    If the permission of a specified object is set to Public Read/Private Write, the object can be accessed via the object URL. For the setting method, see Setting Object Access Permission.

    Setting the Permission of a Folder to Public Read

    If the permission of a folder is set to Public Read/Private Write, all files in the folder can be accessed by anonymous users. For the setting method, see Setting Folder Permissions.

    Public Read Permission Evaluation Mechanism

    For the COS permission evaluation mechanism, see Access Policy Evaluation Process. If the Public Read permission settings for buckets, folders, and objects conflict, the priorities are as follows:

    The ACL of an object has the highest priority. If the ACL of an object is inherited, the ACL of the corresponding folder applies. If the ACL of a folder is inherited, the ACL of the corresponding bucket applies.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support