Created
February 15, 2011 10:29
-
-
Save comfuture/827368 to your computer and use it in GitHub Desktop.
amazon s3 policy by referrer example
This file contains 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":"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