Sell Songs Online Safely Through Your Blog - Finalize the Flash Embed Code and Encryption of the Download URL
(Page 3 of 4 )
After getting the exact download URL for your MP3, finalize the flash embed code and encrypt it. The objective is to hide the URL and your flash source code. By the way, Adobe Flash is the most recommended player for MP3 streaming because it is easy and hard to crack, unlike a traditional hyperlink used in the old days where the URL is directly available for any users.
Using Adobe Flash Player, the URL is embedded in the code, which needs someone to view the source in order to view the URL. Even today, embedded source code is still not safe, so it is wise to encrypt it to decrease the chances of someone stealing the song.
Disclaimer: Bear in mind that there is no such thing as perfect security as of this moment, and the protection as discussed in this tutorial is not 100% secured to protect the download URL.
There are a lot of forms for Adobe Flash Player Embed Code; however, the most recommended is the one below:
<embed src= "http://www.odeo.com/flash/audio_player_standard_gray.swf" quality="high" width=" 300 " height=" 52 " allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" flashvars= "valid_sample_rate=true&external_url= [MP3 file address] " pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed>
Take note that a blog platform such as Blogspot is space sensitive, so before this code is encrypted, it should be pasted to a notepad with word wrap disabled.
The source of this code is: http://googlesystem.blogspot.com/2006/07/embed-mp3-files-into-your-website.html
The variables in the flash code to change are the [MP3 File Address] which should be replaced with your exact download URL. The other variable is the flash player dimensions (the width and the height of the flash player) as it needs to fit your blog.
Now that you have finalized the flash embed code, the next step is to encrypt the code. The method of encryption is JavaScript. Before you can enable encryption, you need to set up a code that will be placed in the header portion of your blog template.
To do this, go to: http://javascript.about.com/library/blenc.htm and then enter your complete blog home page URL. Finally check all options and click "Decryptor." Copy and paste the code to any blog template header. Below is an example of how to do this in Blogspot using a classic template:
The code inside the blue box resulted from the above step; it is inserted into the Blogspot header template. It can be inserted somewhere below the <title> and meta elements in the header.
Next: Encrypting the Code >>
More Blog Help Articles
More By Codex-M