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 Risposta
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
con risposta 2 anni fa
profile pictureAWS
ESPERTO
Toni_S
verificato 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande