When music is publicly streamed on a website, most of the time they are just linking .mp3 files. Although that doesn't stop anyone from downloading it.
How would you prevent this?
I had a few ideas:
- To have the music be in say directory, /tmp/name.mp3 but have it stream through /music/name.mp3.
- Use a header to check and see if there is a referrer from a specific domain (music.com), if not redirect them? So if they try to listen to it directly, it won't have a referrer and will not stream the music.
Your thoughts?