VK Cloud logo

Enabling Secure token

The Secure token option allows you to protect CDN resource files from unwanted downloads.

Enabling Secure token

  1. Go to your VK Cloud management console.

  2. Select the project with the CDN resource you need.

  3. Go to the CDN → CDN resources section.

  4. Click the name of the personal domain you need.

  5. Go to the Security tab.

  6. Enable the Activate Secure Token option.

  7. Enter a secret key — a random set of characters from 6 to 32 characters long. Store the entered secret key in a secure place.

  8. (Optional) Enable the Add IP address to token option to allow access only from a specific IP address. The IP address is configured outside the CDN resource by placing a script on the website where the content origin is located.

  9. Click Save changes.

Setting up access via signed links

The configuration is performed on the resource through which users access the content:

  1. Add the required script for generating a signed link to your resource. The choice of script depends on whether you have enabled the Add IP address to token option.
  2. Organize your resource so that users can access the required files only via signed links. At the same time, the CDN service of VK Cloud, when accessing the origin server, must be able to access the content regardless of the presence of the secret key.
Was this article helpful?