Amazon S3 Bucket Policy Referer

后端 未结 2 1661
囚心锁ツ
囚心锁ツ 2021-01-03 03:49

I\'m trying to edit my S3 bucket configuration such that 3rd party sites can not link to content in it. Also an added benefit is that they can only access content from my do

2条回答
  •  盖世英雄少女心
    2021-01-03 04:31

    Its important to note that if your referer includes /* on the end then it will only allow content from children of that referer, but not from that referer itself.

    So if you want to include your main domain as well, then you would need to do it like this:

                    "aws:Referer": [
                        "http://example.com",
                        "http://example.com/*",
                        "http://www.example.com",
                        "http://www.example.com/*"
                    ]
    

提交回复
热议问题