My digitalocean space bucket is located at singapore ( sgp1.digitaloceanspaces.com) and i have updated following policy to it. it applied successfully.
{ “Statement”: [ { “Effect”: “Allow”, “Principal”: “", “Action”: “s3:GetObject”, “Resource”: [ “arn:aws:s3:::chathuranga”, "arn:aws:s3:::chathuranga/”, ] “Condition”: { “StringLike”: { “aws:Referer”: [ “http://chathuranga.com/*” ] } } } ] }
s3cmd setpolicy policy.json s3://chathuranga
If i am accessing the content outside the chathuranga.com, it should deny.
The content can be access from any domain.
Can anyone suggest what is wrong here? I have created the another bucket in nyc3.digitaloceanspaces.com and did the same. same result.
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!