Q: Using two policies together in a single S3 bucket I am new to Amazon S3 and just created my first bucket. I need two important policies to be implemented on the bucket which are as follows:


*

*First, policy for allowing only downloads from my own website (via HTTP referrer)

*Secondly, I want to make all objects in the bucket public.
I have got two different codes of policies for my needs, but now I can't put them together to achieve the said goals. Please help me joining these too policies together so I achieve what I want.
For allowing referrer downloads:
{
    "Version": "2012-10-17",
    "Id": "http referer policy example",
    "Statement": [
        {
            "Sid": "Allow get requests originated from www.example.com and example.com",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::bucket/*",
            "Condition": {
                "StringLike": {
                    "aws:Referer": [
                        "URL/*",
                    ]
                }
            }
        }
    ]
}

For making objects public:
{
    "Sid": "...",
    "Action": [
        "s3:GetObject"
    ],
    "Effect": "Allow",
    "Resource": "arn:aws:s3:::bucket/*",
    "Principal": {
        "AWS": [ "*" ]
    }
}

