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?

feita há 2 anos434 visualizações
1 Resposta
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 há 2 anos
profile pictureAWS
ESPECIALISTA
Toni_S
avaliado há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas