Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Securing songs streamed from HTML 5

I'm looking to build a jukebox and I am wondering how one would secure songs that are in <audio> tags with HTML 5. I don't want people to be able to download the song, but I'd like to stream it via those <audio> tags. Any suggestions?

like image 601
Matt Avatar asked Feb 28 '23 21:02

Matt


2 Answers

you could check referer, use some hashing mechanism (unique ID) to verify the streaming player is your jukebox, not the stream saver etc.

BUT: whatever you do, some people will figure it out (or using the last resort - catching the whole stream, following on what kind of data your jukebox sends etc.)

like image 108
dusoft Avatar answered Mar 11 '23 21:03

dusoft


Whatever you give people to listen via a stream can be saved to disk too.

like image 25
Joey Avatar answered Mar 11 '23 20:03

Joey