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 個回答
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
專家
已回答 10 個月前
  • Thank you! I will check out CloudFront!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南