Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


S3 Bucket Policies

25 Jan 2021 »

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"
                    ]
                }
            }
        }
    ]
}