Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

s3 cloudfront listing all contents in bucket to anonymous users

Anonymous Users can browse to our public distributions or s3 folders and view a list (xml) of all files.

We have set read permissions. Can anyone recommend how to prevent users from viewing the list of files in the bucket, while still allowing them to access and download individual files

Thanks

Dom

like image 541
Dom Avatar asked Aug 25 '09 15:08

Dom


1 Answers

Removing the public read access on the bucket but allowing public read on the individual files should block listing the files but still allow the files to be available to anonymous users.

like image 51
Adam Hughes Avatar answered Sep 29 '22 08:09

Adam Hughes