B
B
Bd22902019-12-27 01:24:16
PHP
Bd2290, 2019-12-27 01:24:16

How to protect against copying by direct link?

Good day.
There is a player that uses the m3u8 playlist, you need to protect the playlist from downloading via a direct link, so that when a person goes to https://site.ru/playlist.m3u8 , he gets an access error.
How to implement it?
Thanks

Answer the question

In order to leave comments, you need to log in

4 answer(s)
C
CityCat4, 2019-12-27
@CityCat4

There was once a service that played music in some of the shaggy formats (it was a long time ago, in the late 90s) without saving to disk. So what? That's right, they wrote a client that simulated playback, but actually saved it to disk :)
What am I talking about? The fact that as soon as the service begins to be of at least some interest, they will write you any imitation that will pretend to be a player, and do what the author wishes.

X
xmoonlight, 2019-12-27
@xmoonlight

There is no point in the referrer: whoever needs it will download it.

you need to protect the playlist from downloading via a direct link
You can give an encrypted link in this playlist, and on the front AND back - decrypt it before giving the file to the player.
It will be much better: after viewing a chaotic set of characters through a direct playlist link, few people want to understand the js code .
Completely - you can’t ban it at all, so the approach is this: reduce the desire to download through a simple increase in complexity.

A
anikavoi, 2019-12-27
@anikavoi

$_SERVER['HTTP_REFERER'] to put it simply...

F
FanatPHP, 2019-12-27
@FanatPHP

No way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question