AWS S3 #
AWS s3 putObject command HTTP Request syntax #
S3 PutObject REST HTTP API Reference
Prevent AWS S3 HotLinking #
What is hotlinking?
Hotlinking is the act of using another site’s bandwidth by displaying their website asset.
{
"Version": "2008-10-17",
"Id": "preventHotLinking",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my-bucket/*",
"Condition": {
"StringLike": {
"aws:Referer": [
"http://website.com/*",
"http://www.website.com/*"
]
}
}
}
]
}