0

For a small website I am creating, I have an embedded piece of audio which plays on the landing screen, the current method I am using is just by simply embedding it via standard html:

<audio autoplay loop id="player" src="audio1.wav"></audio>

The issue with this method is it is possible to find and download the src when looking in devtools. I want to mask the src so nobody can find it and download it, as the audio is up for sale/copyrighted.

Is there a method where the original .wav audio file cannot be traced back and downloaded?

  • Try Googling: "DRM". To prevent downloading is an oxymoron, the very act of browsing is downloading content of a site so it's cached. The trick is to make the file itself secured even if it's completely downloaded. – zer00ne Oct 02 '17 at 23:41

1 Answers1

0

There's no real way to prevent someone from obtaining the audio in one way or another if they're determined enough. However, a few alternatives are listed here, with some more concrete code examples here. Consider only playing a small sampler to prevent someone from getting the entire audio clip.

A. W.
  • 651
  • 5
  • 19