Serve private content with signed URLs and signed cookies (original) (raw)

How to serve private content

Many companies that distribute content over the internet want to restrict access to documents, business data, media streams, or content that is intended for selected users, for example, users who have paid a fee. To securely serve this private content by using CloudFront, you can do the following:

For more information, see Restrict access to files.

How to serve private content

To configure CloudFront to serve private content, do the following tasks:

  1. (Optional but recommended) Require your users to access your content only through CloudFront. The method that you use depends on whether you're using Amazon S3 or custom origins:
  2. Specify the trusted key groups or trusted signers that you want to use to create signed URLs or signed cookies. We recommend that you use trusted key groups. For more information, see Specify signers that can create signed URLs and signed cookies.
  3. Write your application to respond to requests from authorized users either with signed URLs or withSet-Cookie headers that set signed cookies. Follow the steps in one of the following topics:
Topics

Switch from a custom SSL/TLS certificate with dedicated IP addresses to SNI

Restrict access to files

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.