How to block all file types other than ZIP on an S3 Bucket

0

Hi, I made a bucket on S3 that is connected to my website where users could upload ZIP files to the bucket. I already configured it on the server level to only enable uploading .zip but I also want to configure it on the S3 bucket level to ensure security. Any ideas what bucket policy do I need to enter to allow only .zip and reject everything else?

asked 2 years ago424 views
1 Answer
2

The following AWS Knowledge Center article may be helpful. [1]

[1] Restrict Amazon S3 bucket uploads to certain file types
https://aws.amazon.com/premiumsupport/knowledge-center/s3-allow-certain-file-types/?nc1=h_ls

profile picture
mn87
answered 2 years ago
profile pictureAWS
EXPERT
Toni_S
reviewed 2 years ago

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