How to enable URL signing on a CDN pull zone
URL Signing protects your CDN endpoint content from unauthorized access, the following guide will take you through the parameters which you can control via URL Signing
A URL can be signed with any of these parameters
Query string format: http://example.com/filename?secure=FjnSIKndiNXInxkl&expires=1747605200&ip=127.0.0.1
Path format: http://example.com/secure=FjnSIKndiNXInxkl&expires=1747605200&ip=127.0.0.1/filename
You can set your own URL signing key to generate the unique secure string for your CDN content. Follow the steps below;
Go to the Security tab in the Pull zone's manage page
![](https://storage.crisp.chat/users/helpdesk/website/2d4cd5516f670e00/security-tab_1jd6h8s.png)
Under URL Signing click the Enable check box
Add your own URL Signing Key and click on the Save URL Signing Settings button
![](https://storage.crisp.chat/users/helpdesk/website/2d4cd5516f670e00/url-s_c5ztty.png)
The URL signing key is similar to a password and can contain a minimum of 6 to a maximum of 32 characters.
Please visit here to view the available code examples on enabling URL Signing within your application
Signing options and URL Formats
A URL can be signed with any of these parameters
Query string format: http://example.com/filename?secure=FjnSIKndiNXInxkl&expires=1747605200&ip=127.0.0.1
Path format: http://example.com/secure=FjnSIKndiNXInxkl&expires=1747605200&ip=127.0.0.1/filename
Parameter | Description | Type | Importance |
---|---|---|---|
expires | Expiration time of the URL | UNIX Timestamp | Optional |
filename | Path of a file of directory | String | Optional |
secure | Generated public token | String | Required |
ip | Allowed IP address | IPv4 or IPv6 address | Optional |
You can set your own URL signing key to generate the unique secure string for your CDN content. Follow the steps below;
Go to the Security tab in the Pull zone's manage page
![](https://storage.crisp.chat/users/helpdesk/website/2d4cd5516f670e00/security-tab_1jd6h8s.png)
Under URL Signing click the Enable check box
Add your own URL Signing Key and click on the Save URL Signing Settings button
![](https://storage.crisp.chat/users/helpdesk/website/2d4cd5516f670e00/url-s_c5ztty.png)
The URL signing key is similar to a password and can contain a minimum of 6 to a maximum of 32 characters.
Code examples on URL Signing
Please visit here to view the available code examples on enabling URL Signing within your application
Updated on: 03/14/2023
Thank you!