Recommended expiry time

The recommended expiry time should be greater than or equal to the length of your media file. For example, if your video is 45 minutes long, we recommend an expiry time of 45 minutes or greater. This will allow for a better user experience.

If any file lasts longer than the expiration time there can be issues with users shifting audio/video forward or back.

When determining your expiry time, consider these factors:

  1. The shorter the expiry time, the higher the chance that your users may experience playback issues.
  2. The longer the expiry time, the higher the chance that users can share your media giving someone else time to access it.

We do have a recommended inline user policy that you can implement to mitigate people stealing your data via link sharing. This is only a recommended policy so use it at your discretion. (Note - We don't officially support the development of AWS policies.) 

Simply change the bucket name to your bucket name and change the domain name to your desired domain name.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": "arn:aws:s3:::bucketname/*",
            "Condition": {
                "StringLike": {
                    "aws:Referer": "http://www.yourdomain.com/*"
                }
            }
        }
    ]
}