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?

preguntada hace 2 años434 visualizaciones
1 Respuesta
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
respondido hace 2 años
profile pictureAWS
EXPERTO
Toni_S
revisado hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas