Best way to allow users to download class content.
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I own a website that has video classes in zip files of varying sizes (from 9 mb to 900 mb).
I need to host these zip files someplace.

I used to give the zip files out as "public links" on my Amazon s3 server. And this worked great for years. But today, i think someone started "deep-linking" to my files (or something) because Amazon just notified me that my server fee is $30 dollars in the last 24 hours. And, previously, I didn't even spend that much in an entire year.

I'm not a great programmer but i know PHP and WP Theme design. Anyone know of a good (easy) way for me to solve this problem?

e.g. whats a good "content delivery system" for someone like me? I guess i'm going to somehow have to use PHP to generate temporary links for people who signup to my site--thus temporarily allowing them to download the php files.

Right now i don't even know where the traffic spike came from because Amazon s3 analytics is impossible for me to figure out.

I guess i need some sort of "content delivery service" for my files--that is easy to use.

Ideas?

I'll give bountify tips for thoughtful answers.

Thanks!

awarded to bulletpr00f

Crowdsource coding tasks.

4 Solutions


hi, i suggest, you make a backend service with oauth2 (spring + oauth2) token which should expire in 1H. so users, in order to access the files, he have to get a token from your web app.
then in backend, after token verification, you map the database to fetch the file needed, or you run a proxy to fetch the file from your server disk. i believe this is the most secure way to do it and to block web crawlers.

Thanks.

Winning solution

Give Seafile a shot: https://www.seafile.com/en/home/

They have an open source version with advanced file sharing options. Can be integrated with WordPress.

would this allow me to create temporary links? What would be their solution to my problem?
tonloc 10 months ago
You could create "share links" and make them temporary. See the official documentation: Here: https://download.seafile.com/published/web-api/v2.1-admin/share-links.md ...and here: https://download.seafile.com/published/web-api/v2.1/share-links.md
bulletpr00f 10 months ago
P.S. I would be remiss to admit that this is a nontrivial alternative to using AWS or other big cloud provider such as Azure. Perhaps, your problem is nontrivial rather than easy, but I hope you find what you are looking for. Here are a few more open source solutions which I stumbled upon: Lufi https://framagit.org/fiat-tux/hat-softwares/lufi Jirafeau https://gitlab.com/mojo42/Jirafeau
bulletpr00f 10 months ago

Please look there: https://wordpress.org/plugins/s3-secure-url/ . Looks like it can help you.

The owner says the help guide on his website was lost and he doesn't update it. Do you think it still works? Do you know of an alternative plugin?
tonloc 10 months ago
https://wordpress.org/plugins/nexlogiq-amazon-s3-links-generator/ - it does the same thing, but this one doesn't look abandoned.
TheOsch 10 months ago

if you need only download, torrent + magic link is the best way to share large files

View Timeline