(Sorry for my English) Hello, I have a list of audios where there are two kind of privileges [play] and [play and download].
So, Im using something like this:
<audio controls="controls" controlsList="nodownload">
<source src="/files/test.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>
When the user can [play and download] I only remove controlsList="nodownload"
My problem is that an user that only have the privilege to play audios can open the source code + search.mp3
and have access to my audio url, e.g. /files/test.mp3
, add the host and have access to the mp3 file and download it.
Im using ASP.NET so e.g. host/files/
is Inaccessible but host/files/test.mp3
is accessible.
I'd like to block the access to all the routes that finish in .mp3 or I don't know any other recommendation?