A
A
archirect2020-05-28 02:06:20
Web development
archirect, 2020-05-28 02:06:20

Selling digital content with a download limit. Implementation?

There is a project (I do not disclose details, I describe in general terms). Essence - it will be a repository of files that will be sold by subscription (files from a few Mb to 100-200 Mb). In order to avoid losing regular subscribers, it will be necessary to tighten the download limit.

If it is quite simple to explain, then it should be an analogue of a file hosting service (Yandex disk, etc.), where the base with the files being sold will be uploaded. Access will be by subscription, there will be a download limit (either by megabytes or by the number of files per day).
I do not plan to sell through social networks (VK, Telegram, Facebook). Social networks will only be a means of promotion.

Question for the experts. What do you think is the best way to implement it? Perhaps there are already ready-made solutions (such as various ready-made solutions for online courses)? An important point is how to implement the possibility of a download limit (I heard about plugins for wordpress)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikolay, 2020-05-28
@SODINNER

I always didn’t understand, well, there is an idea, a ready-made TK already, what’s the problem with thinking through the implementation?
Such questions are usually asked by non-programmers, but why the hell is this task entrusted to a non-programmer?
You need to implement a file download limit, you already have either the project itself or its idea, just a combination of these two things. Since there is a subscription, it means there is an account, accounts with a certain subscription can be assigned a limit by default, here as you wish, at least by files per day or month, at least by the volume of files, it doesn’t matter.
When you implement this, go to the next point, as you were told in the comments, create a script that will first check all the limits and if they are not exhausted, start downloading + add the file or its volume to the limit for the user. There should be no direct links to files at all, only one-time links or links with an expiration time, although if the script starts the download, there will not be much difference.

D
Danila Master, 2020-05-28
@dgmasster

WP with woocommerce. The download limit is configurable.

B
bkosun, 2020-05-28
@bkosun

The easiest way is to give the user a temporary link to the file.
When trying to download, the user enters a key, and the file is moved to a temporary directory or given by a script (indirect access) - the user receives a unique link, and the traffic is charged.
There are ready-made file hosting scripts, for example XFileSharing:
https://sibsoft.net/xfilesharing.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question