Y
Y
Yaroslav2018-12-30 21:47:08
Nginx
Yaroslav, 2018-12-30 21:47:08

How is the download of audio files on the site audioknigi.club?

I'm trying to figure out how they protected themselves from downloading files. There is a link
https://get.aknigi.club/b/47824/WWCESc0kMrTluHIZfm...
They somehow load in pieces, once the piece has loaded, it can no longer be downloaded. Just wondering how it is implemented, but something did not understand

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2018-12-30
@CubaJas

I can assume that they store link hashes in some database (for example, Redis) (that incomprehensible set of letters from the link).
With this assumption, the algorithm is as follows:
When a page is requested, the back generates a link and sends it to the browser. The browser requests a file, but this is not a real file, it is given by the backend, it will check the record in the database, and if it exists, it reads the file, gives it back, deleting the record from the database along the way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question