How to protect Amazon S3 URL

I am new to Amazon S3 and am looking for a way to protect the large amount of data on s3 that users will be able to access through our website.

The problem is that I do not want the data on Amazon s3 to be publicly available, so you need to be private, but accessible through our website.

Assigning each request to a URL would be a pain due to the number of new files that were accessed and added all the time. I know that there is an option http_referer mod, should be quick and easy, and perhaps in combination with very obscure URLs (long random codes on the way), which may be enough?

Is there any other way to make s3 urls safe?

Greetings

+5
source share
2 answers

S3 provides the ability to sign an image, so the URL is only valid for a limited period of time. Read more about it here.

There are several ways to handle access, as described here.

+9
source

There is a concept of pre-signed URLs that can be limited to a period of time. These URLs may also be protected.

0
source

All Articles