Reputation: 35
I would like to use urls like http://example.com/image.jpg?token=123abc When downloading the file, cloudfront ask my own server whether this token is valid and determine to allow/reject download.
Is this possible?
I have read some documents on http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html but seems useless for me:(
Upvotes: 0
Views: 323
Reputation: 8836
You can configure your CloudFront distribution to forward query parameters, that way the token will be passed to your server which is free to return 200 OK with the content or 403 Forbidden. The downside with this is that CloudFront doesn't cache the content once - either once per token or not at all
Upvotes: 1