Add a bucket policy via S3 console permissions editor. Should take care of the hotlinking issue.
{
"Version": "2008-10-17",
"Id": "HTTP referrer policy",
"Statement": [
{
"Sid": "1",
"Effect": "Deny",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::yourbucketname.goeshere/*",
"Condition": {
"StringNotLike": {
"aws:Referer": [
"http://domaingoeshere.com/*",
"http://www.domaingoeshere.com/*",
"https://domaingoeshere.com/*",
"https://www.domaingoeshere.com/*"
]
}
}
}
]
}
Hope this helps