{
"Version":"2008-10-17",
"Id":"Bucket policy for example-bucket 2010-07-27 17:27:54 elving",
"Statement":[
{
"Sid":"Allow get requests referred by mydomain.com and www.mydomain.com",
"Effect":"Allow",
"Principal":"*",
"Action":"s3:GetObject",
"Resource":"arn:aws:s3:::bucketname/*",
"Condition":{
"StringLike":{
"aws:Referer":[
"http://mydomain.com/*",
"http://www.mydomain.com/*"
]
}
}
}
]
}
{
"Sid":"Allow get requests that don't specify a referrer (e.g. requests from JW Player)",
"Effect":"Allow",
"Principal":"*",
"Action":"s3:GetObject",
"Resource":"arn:aws:s3:::bucketname/*",
"Condition":{
"Null":{
"aws:Referer":true
}
}
}
]
}
Statistics: Posted by rainleader — March 31st, 2011, 2:56 pm
Statistics: Posted by Cristián Lávaque — March 30th, 2011, 1:34 am
Statistics: Posted by drbyte — March 30th, 2011, 1:01 am
Statistics: Posted by Cristián Lávaque — March 29th, 2011, 9:44 pm
{
"Version":"2008-10-17",
"Id":"http referer policy example",
"Statement":[
{
"Sid":"Allow get requests referred by www.mysite.com and mysite.com",
"Effect":"Allow",
"Principal":"*",
"Action":"s3:GetObject",
"Resource":"arn:aws:s3:::example-bucket/*",
"Condition":{
"StringLike":{
"aws:Referer":[
" http://www.mysite.com/*",
" http://mysite.com/*"
]
}
}
}
]
}
Statistics: Posted by drbyte — March 29th, 2011, 8:33 pm
Statistics: Posted by Cristián Lávaque — March 29th, 2011, 7:26 pm