Signed URLs
A signed URL is a secure URL that can only be generated using your tokens. There are certain use cases where you will need to use signed URLs:
- You don't want anyone to alter your URLs.
- You don't want anyone to add/remove any transformations from your URLs.
- You want certain image URLs in your application to be accessible only for a specific period in the future.
When URLs are signed, additional query parameters are added to ensure that the URL cannot be altered. If someone tries to change the image transformation or the image URL, or if they use it after the expiration date, a 401 Unauthorised
response status code is returned.
A signed URL is similar to:
https://cdn.pixelbin.io/v2/dummy-cloudname/original/image.jpeg?pbs=generatedURLsignature&pbe=UTCtimestamp&pbt=tokenId
Generating Signed URLs
You can follow the steps below to generate a signed URL from https://console.pixelbin.io
- Navigate to the Storage page.
- Click on the file menu icon of the file you want to generate a signed URL for.
- Select the Generate Signed URL option.
- Select one of the available tokens from the dropdown.
- Input the Expiration Time in seconds.
- Click on the Generate Signed URL button.
- The URL will be generated and copied to your clipboard.