FAQ AWS
Un elenco di risposte alle domande più frequenti relative ai servizi web AWS
Inserire la seguente policy nel bucket, senza renderlo pubblico. Modificare il valore nome bucket e url sito in base alle proprie necessità.
{
"Version": "2012-10-17",
"Id": "http referer policy example",
"Statement": [
{
"Sid": "Allow get requests originating from www.example.com and example.com.",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject",
"s3:GetObjectVersion"
],
"Resource": "arn:aws:s3:::iltuobucket/*",
"Condition": {
"StringLike": {
"aws:Referer": [
"https://www.dominio.com/*",
"https://dominio.com/*",
"https://*.dominio.com/*"
]
}
}
}
]
}


