Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Created August 22, 2011 12:17
Show Gist options
  • Select an option

  • Save johnantoni/1162244 to your computer and use it in GitHub Desktop.

Select an option

Save johnantoni/1162244 to your computer and use it in GitHub Desktop.
Amazon S3 Hot Linking Restriction Policy
{
"Version":"2008-10-17",
"Id":"preventHotLinking",
"Statement":[ {
"Sid":"1",
"Effect":"Allow",
"Principal": {
"AWS":"*"
},
"Action":"s3:GetObject",
"Resource":"arn:aws:s3:::my.bucket.com/*",
"Condition":{
"StringLike": {
"aws:Referer": [
"http://my.bucket.com/*"
]
}
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment