U
U
Umid2016-01-05 18:10:41
JavaScript
Umid, 2016-01-05 18:10:41

How to download paid files from sites for free?

Hello.
I heard several times that you can download paid files (books, music, videos, etc.) for free, somehow correcting the code in the console.
How is this done, and how can you protect your project from such "hacks"?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Frank, 2016-01-05
@Akellacom

Validate incoming data on the server, not just the client.
Use csrf token

H
HAbRAhabp, 2016-01-05
@HAbRAhabp

Make a token on the backend that is tied to a specific user, ip, time. When downloading, check it, if everything is fine, give the file to the client through a script (in php this is readfile())

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question