Skip to content

Instantly share code, notes, and snippets.

@comfuture
Created February 15, 2011 10:29
Show Gist options
  • Save comfuture/827368 to your computer and use it in GitHub Desktop.
Save comfuture/827368 to your computer and use it in GitHub Desktop.
amazon s3 policy by referrer example
{
"Version":"2011-02-15",
"Id":"only allowed referers",
"Statement":[
{
"Sid":"Allow get requests referred by maroo.info and apps.facebook.com",
"Effect":"Allow",
"Principal":"*",
"Action":"s3:GetObject",
"Resource":"arn:aws:s3:::static.maroo.info/*",
"Condition":{
"StringLike":{
"aws:Referer":[
"http://apps.facebook.com/*",
"http://maroo.info/*"
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment