Sell Songs Online Safely Through Your Blog - Encrypting the Code
(Page 4 of 4 )
Now we are ready to encrypt the flash embed code. To do this, go to: http://javascript.about.com/library/blenc1.htm
Copy and paste the flash embed code to be encrypted into the blank box labeled with "enter page source code to be encrypted here." After that, check only the following:
- Enclose in script tags.
- Disable context menu.
- Add Iframe to block view source bookmarklet.
Finally, click "Encrypt." In Blogspot, it is space sensitive, so make sure to remove spaces in between or else you will not see the flash player on your blog page. This can be done by pressing delete keys to remove those spaces.
Below is a screen shot of what the code looks like at this stage, after removing those spaces:
The last step is to copy and paste this code to your web page. Make sure the post editor is set to Edit HTML mode. Then click Publish post, and examine your web page using a browser. You can then see the flash player and try playing the song. When you view the source code of the web page, you cannot see the actual URL. This means it is now encrypted, and makes it harder to decode the song URL.
How do you sell the songs using an encrypted URL?
It is easy. If you use PayPal, you can customize the redirect URL after your customers make the purchase. This redirect URL is the exact download URL of your song where your customers were redirected after making the payment. Also, for additional protection, you may consider changing those URLs once a month.
Using some standards in PayPal you can add buy buttons on your blog below the flash player. This way, when your customers decide to purchase, they can just click the "Buy Button" on that specific song page.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |