Best practice for hosting media files "other" than static website with public access?

0

I am completely new to S3. I have hundreds of audio files I need to host for a web app (javascript code on a client web browser needs to access the files for playback). Currently we have them in a bucket that has public read access (static website), and we understand the security risks. Ideally we have S3 configured to allow our app to get a list of files available, and do simple searches (like list all files that start with "A").

What is the easiest "alternative" to static hosting we should use that is better security-wise?

Thanks for any pointers to documentation/answers.

1 Answer
2

It is better to place CloudFront in front of S3.
This setting also prevents direct access to S3.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html

profile picture
EXPERT
answered 10 months ago
  • Thank you! I will check out CloudFront!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions