Forums

stop people from accessing mp3 files on my server? (2 posts)

  1. cpkid2
    Member
    Posted 1 year ago #

    The music files that I use in my mp3 players on my blog are linked to a certain folder. What would be the best way to prevent people from looking in the source code and downloading the mp3s? Can I just put a chmod 751 on the folder? Or are there more/other steps to take?

  2. richarduk
    Member
    Posted 1 year ago #

    It was an interesting question, so I took a look around. I don't think preventing hotlinking using .htaccess would work, but I found the below. Basically, however, the answer seems to be that a determined user can't be stopped.

    http://www.longtailvideo.com/support/forums/jw-player/feature-suggestions/7262/how-to-prevent-downloading-and-leeching

    QUOTE

    Put the MP3s outside the web root and stream them with a PHP file that sends no cache headers. You can also check in here to make sure they have a valid PHP session so posting links directly to you PHP script won't work. Thats 95% of the leachers taken by removing direct URLs and remopving cacheing.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.