Can you use mod_rewrite rules in .htaccess for the href=*.mp3 links in anchor tags?
Basically I want to rewrite the href values I have for all my anchor tags into something else because I want to hide the actual .mp3 links from users looking at the source in firebug.
Has anyone tried this? I can't try it right now because I am busy, which is why I am asking.
Thanks!
Has anyone tried this? I can't try it right now because I am busy, which is why I am asking.
Thanks!
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?You can modify the demo scripts to treat links to files other than .mp3 as being playable. If you have a recent version of SM2 and are using the playable MP3 links demo, you should be able to add a class name of "playable" on the link, and that should do it. If not, you can add extensions in the SM2 source JS either in the canPlayURL() function, or the file types as declared closer to the top.
Ultimately, "determined" users will be able to discover the source of your MP3 regardless of URL, referrer check, URL token or other protection scheme, but there are a few techniques you can try to discourage simple right-click, save as techniques etc. See protecting MP3 links, etc., discussion for more.
The company says
this answers the question
-
Inappropriate?Hi Scott... im wondering if you could shed some light on what you meant by class name of playable and how that works? I'm trying to stream a file using the stream_url from soundcloud but it wont let me since it has no mp3 extension...
-
Inappropriate?<a href="/some/musicfile.php" class="playable"> for example will work with the inline player script, adding the class will mean the script will pick it up as being like an MP3.
Loading Profile...



EMPLOYEE