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?

1개 답변
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
답변함 2년 전
profile pictureAWS
전문가
Toni_S
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠