How to configure aws S3, so the objects can only be accessible from my Domain and block access from a third party website

{ "Version": "2012-10-17", "Id": "Policy1626782155551", "Statement": [ { "Sid": "Stmt1626782153471", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::tests3website/*", "Condition": { "StringLike": { "aws:Referer": "https://www.eagerminds.in" } } } ] }
{"aws:Referer":["http://www.example.com/*","http://www.example.com/*"]}

--

--

AWS DevOps Engineer, Enthusiastic learner, Equity Investor, Avid Reader

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store