How to protect files from being downloaded via copy/pasted URL?

I’m using Cloudfront and Amazon S3 to store all my videos and files, but it seems when I click on a link within the membership site to access any of them, they open up in a new URL and can be copied, pasted and accessed even after I’ve logged out.

I’ve set my membership options page correctly so if someone tries to access a page on my site within the membership setup, they’re redirected ok. But it doesn’t seem to work with URL’s of files and downloads hosted on Amazon S3.

I’ve also set unlimited downloads for Level 1 membership.

Any suggestions?

What happens if you paste a link to one of these files into a different browser? Can you access the file then?

Hi Tim,

It still displays in any browser. Is it because I’m using cloudfront? However, I think I read somewhere about an expiry time of 24 hours. Is that set up by default? In which case it shouldn’t really be much of an issue…

Just to ask the obvious question: Did you set up your Amazon/Cloudfront settings here: WP Dashboard → s2Member (Pro) → Download Options → Amazon S3/Cloudfront Storage Options?

Hi Pat. Yes i set them up there.

Can you paste an example of the shortcode you’re using?

1 Like

Do you have your files as “Public” in your AS3 bucket?

Your files don’t have to be as “Public”.

Have you checked that?