@pmoreno, Interesting questions… Unfortunately, Grav is not going to provide you a solution on this. When you reference a media file using a url, the file is served by the webserver, not by Grav. Meaning: No Grav code is going to be executed.
You can test this by taking the url of an image/video in your site, rename Grav’s index.php and open de url in the browser.
In general: “When the user can see it, the user can copy it…”
- The browser downloads the media into cache on disk
- The user can copy the value of
src
and browse to the file. - The user might use software that captures the video being played
- The user might point a camera to the screen…
Here is a discussion (one of many) on the same issue
-
this reply gives suggestions to mitigate some of the above.
To prevent copy/paste of link:
[…] use a transmuxing wrapper like hls.js(for HLS) or dash.js(mpeg-dash). What will show in your html5 player is a locally generated blob url which means nothing.
I took a look at hls.js and I’m afraid it is not a quick fix.
Based on my quick research, i’m afraid this isn’t easily solved.
Maybe someone else can prove me wrong…