Use CORS to prevent others from embedding my video

Viewed 32

I have a site with an HLS video content on it. For example, when a user visits my site in Safari, I play the video like so:

<video controls>
    <source src=“playlist.m3u8” type =“application/x-mpegURL”>
</video>

This .m3u8 playlist points to *.ts video fragments on my server.

Can I prevent other people from embedding this video on their website? More specifically, prevent the players in browsers to download the *.ts fragments from my server.

I feel like CORS might be the solution here, but I am not sure how to implement this or if it’s even possible.

I don’t care about someone stealing my content and hosting it on their own server. I just want to make it harder for them to play it straight from my server to stop unnecessary server load.

0 Answers
Related