Our plugins provide an easy way to help you protect your Amazon S3 videos & audios against downloads.
- Prevent Direct Access version 2.7.0 or greater
- Prevent Direct Access Gold version 3.2.0 or greater
- Protect WordPress Videos extension version 1.3.2 or greater
Simply follow these 3 simple steps to protect videos/audios hosted on Amazon S3 buckets:
- Create a private S3 bucket
- Configure CloudFront distribution
- Embed S3 shortcode into content
Please note that at the moment we do validate the values of your S3 bucket but not CloudFront (CF) distribution. So please make sure you’ve set up and input them correctly. Otherwise, your protected videos won’t be playing.
3. Embed the S3 shortcode into content
Once you’ve done with the AWS configuration, all you need to do is copy the shortcode which contains S3 link of your private video/audio to content.
Step 1: Go to your bucket and click on the video’s name to get its S3 link. It would look something like this:
Step 2: Add the file URL to the shortcode as follows:
[protected_video mp4="https://s3-ap-southeast-1.amazonaws.com/my-bucket/my-private-video.mp4" width="512" height="308" is_s3="true"]
[pwv_waveplayer url="https://s3-ap-southeast-1.amazonaws.com/my-bucket/my-private-audio.mp3" is_s3="true"]
If you’re serving files via CloudFront, please remove the bucket name from your S3 video URLs.
That means instead of adding the full S3 URL to our shortcodes, you just need to use the following URL (without bucket name):
Step 3: Copy and paste the shortcode into content. Finally, save and check out the result.
Limitation: At the moment, our plugin doesn’t support cover photos or autoplay videos when using S3 shortcode.