Miscellaneous

  Home arrow Miscellaneous arrow Page 2 - Using PHP to Stream MP3 Files and Prev...
MISCELLANEOUS

Using PHP to Stream MP3 Files and Prevent Illegal Downloading
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 8
    2009-10-21

    Table of Contents:
  • Using PHP to Stream MP3 Files and Prevent Illegal Downloading
  • How Illegal Downloads Happen
  • Preventing Illegal Downloads
  • Implementing the Solution

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Using PHP to Stream MP3 Files and Prevent Illegal Downloading - How Illegal Downloads Happen


    (Page 2 of 4 )

    The obvious issues that cause it to be easy to download or otherwise get at the MP3 material are the following:

    1. The download directory is very accessible to visitors.

    No matter what anti-piracy efforts you have engaged in, if you made the download directory visible, that is the end of your marketing efforts. For example:

    http://www.somewebsite.com/fewdsd/65ffs.mp3

    Anyone with basic knowledge of web technology understands that to be able to download “65ffs.mp3,” all you need to do is navigate to the download directory. This is just obvious; you are telling them the exact URL of your MP3 location. Using this type of URL format is not recommended if you need to protect your MP3s from illegal downloading. Anyone can copy and paste the URL into the browser, and then start downloading your precious work.

    2. The browser caches the MP3 and stores it in the local temporary Internet folder.

    This is just silly. I have heard some developers claim that they have foolproof protection to prevent downloading, only to find out that the songs still end up in their visitor's local hard drive temporary Internet folder.

    3. A direct link has been used to play the MP3.

    This is not recommended. This means that a hyperlink is used to play the file. By default, a hyperlink pointing to an MP3 file will be automatically played by the browser as it detects the content type to be in audio/MP3 format.

    A direct link will then expose the URL in the browser in the address bar, which will make it very easy to steal the MP3's content. For example:

    <a href=”http://www.somewebsite.com/fewdsd/65ffs.mp3”>Play this song</a>

    This hyperlinked code can then be embedded in the HTML, and will be shown like this:

    Play this song

    So when that link is clicked, of course the browser address bar will then display the URL location of the MP3.

    These three fundamentals are what basically comprise the flaws in a website's development that allow illegal downloading to occur.

    More Miscellaneous Articles
    More By Codex-M

    blog comments powered by Disqus

    MISCELLANEOUS ARTICLES

    - Oracle Database XE: Indexes and Sequences
    - Modifying Tables in Oracle Database XE
    - Oracle Database XE: Tables and Constraints
    - More on Oracle Databases and Datatypes
    - Oracle Database XE Datatypes: Datetime and L...
    - Oracle Database XE Datatypes: Character and ...
    - From Databases to Datatypes
    - Firefox 3.6.6 Released with Improved Plug-in...
    - Attention Bloggers: WordPress 3.0 Now Releas...
    - Reflection in PHP 5
    - Inheritance and Other Advanced OOP Features
    - Advanced OOP Features
    - Linux from Scratch V.6.6 Review
    - Linux Gaining in Strength
    - Install Slackware on Your Old PC


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap