Skip to content

Instantly share code, notes, and snippets.

@comfuture
Created February 15, 2011 11:08
Show Gist options
  • Save comfuture/827405 to your computer and use it in GitHub Desktop.
Save comfuture/827405 to your computer and use it in GitHub Desktop.
s3 bucket policy - working
{
"Version": "2008-10-17",
"Id": "static.maroo.info",
"Statement": [
{
"Sid": "2- Allow referrers from my domain.",
"Effect": "Deny",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::static.maroo.info/*",
"Condition": {
"StringNotLike": {
"aws:Referer": [
"http://maroo.info/*",
"http://apps.facebook.com/*"
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment