Test Iframe artku.my.id


Contoh: Iframe default dari artku.my.id

Contoh: Iframe direct file video dari artku.my.id




Contoh: direct ke file gambar dari artku.my.id

Jadi file gambar dan video di atas di host pada bucket yang sama namun berbeda folder dan policy untuk contoh bucket policy silakan baca di https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html 

{ "ID": "HTTP referer policy example", "Version": "2012-10-17", "Statement": [ { "Sid": "Allow GET requests originating from www.example.com and example.com.", "Effect": "Allow", "Principal": { "AWS": [ "*" ] }, "Action": [ "s3:GetObject", "s3:GetObjectVersion" ], "Resource": [ "arn:aws:s3:::artku/upload/videos/*" ], "Condition": { "StringLike": { "aws:Referer": [ "https://artku.my.id/*", "https://www.artku.my.id/*" ] } } },      {        "Sid": "PublicRead",        "Effect": "Allow",        "Principal": "*",        "Action": [           "s3:GetObject",           "s3:GetObjectVersion"        ],           "Resource": [           "arn:aws:s3:::artku/upload/photos/*"        ]      } ] }

Komentar