S3Bubble OTT Streaming

shape
shape
shape
shape
shape
shape
shape
shape

S3Bubble Support Forums

To stay up to date with the latest S3Bubble updates and tutorials please make sure you sign up to our YouTube Channel.

home Forums General Questions & Bugs Can My videos be hotlinked?

Viewing 1 reply thread
  • Author
    Posts
    • #29417
      easyenglish
      Member

      I would like to know if my videos can be hotlinked. Can someone find the source url from S3 bubble embed code?

      I do know that domain restriction can be applied. But what if someone simply finds out my amazon bucket link and finds another player to run the file, I’ll end up paying a hefty amount to Amzaon for that hotlinked material.

      I would like to know how secure my videos are from hotlinking using s3bubble. Thanks

    • #29474
      s3bubble
      Keymaster

      Hi Easyenglish,

      If you want to add extra protection please add this to your bucket policy.

      Go to your bucket in AWS and click properties under permissions click edit/add bucket policy and paste the following in you will need to be using iframes and also make sure you change the bucket name.

      {
      	"Version": "2008-10-17",
      	"Id": "S3BubbleSecurity",
      	"Statement": [
      		{
      			"Sid": "1",
      			"Effect": "Allow",
      			"Principal": {
      				"AWS": "*"
      			},
      			"Action": "s3:GetObject",
      			"Resource": "arn:aws:s3:::(YOUR BUCKET NAME GOES HERE)/*",
      			"Condition": {
      				"StringLike": {
      					"aws:Referer": [
      						"https://media.s3bubble.com/*"
      					]
      				}
      			}
      		},
      		{
      			"Sid": "Explicit deny to ensure requests are allowed only from specific referer.",
      			"Effect": "Deny",
      			"Principal": "*",
      			"Action": "s3:GetObject",
      			"Resource": "arn:aws:s3:::(YOUR BUCKET NAME GOES HERE)/*",
      			"Condition": {
      				"StringNotLike": {
      					"aws:Referer": [
      						"https://media.s3bubble.com/*"
      					]
      				}
      			}
      		}
      	]
      }

      Best Regards

      Sam

Viewing 1 reply thread
  • The topic ‘Can My videos be hotlinked?’ is closed to new replies.