Created
May 23, 2012 01:57
-
-
Save ScottPhillips/2772821 to your computer and use it in GitHub Desktop.
Amazon S3 Bucket Policy : Restrict Access to Specific Referer
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":"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:::YOUR_S3_BUCKET_NAME/*", | |
"Condition":{ | |
"StringLike":{ | |
"aws:Referer":[ | |
" http://www.mysite.com/*", | |
" http://mysite.com/*" | |
] | |
} | |
} | |
} | |
] | |
} |
Thanks for giving a practical and easy-to-understand example. I want to create a basket random game, how should I do it?
The Suyu Emulator is an open-source project designed to bring the Nintendo Switch experience to a variety of devices, including Windows, Android, iOS, and Linux. This emulator allows gamers to enjoy their favorite Switch titles without needing the original console.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot! It`s very useful example, but could you please remove space character before allowed domains?