Created
February 15, 2011 11:08
-
-
Save comfuture/827405 to your computer and use it in GitHub Desktop.
s3 bucket policy - working
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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