Block by Referer
{
"Version": "2012-10-17",
"Id": "S3PolicyId1",
"Statement": [
{
"Sid": "IPAllow",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:*",
"Resource": "arn:aws:s3:::<your-bucket>/*",
"Condition": {
"StringLike": {
"aws:Referer": [
"http://your-url"
]
}
}
}
]
}