File protection

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.3
Virtualmin version 7.9.0

I have a few video files uploaded and i’m using that video URL in other website to play that video, is there any way to protect that video files so if someone inspect and find the video URL and when the goto URL they will redirect to some other page or give them an error, is this possible with virtualmin?

Has nothing to do with Virtualmin. Virtualmin isn’t your web server and has no interaction with website users.

You could configure the web server or your app that is serving the video to reject requests without the right Referer header. This can be spoofed, but it will stop casual downloaders.

In Apache: How can I configure Apache to reject all requests except an XMLHttpRequest from localhost? - Stack Overflow

It looks some tricky, Let me give a try
Thank You

Found this, look less tricky

It’s the same method (block based on referer), but more lines of configuration. But, yes, that’d work, too.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.