Forum Moderators: phranque

Message Too Old, No Replies

Flash player content security.

Trying to protect mp3 files from being downloaded...

         

lostangel

9:45 pm on Dec 5, 2006 (gmt 0)

10+ Year Member



Hi there this is my first post on webmaster world, so a big hello to everyone.

I am very new to PHP, mysql, apache server etc... I recently created a website using wordpress in order to sell my own music recordings, teaching myself by trial and error some php etc...

I have a xsfp flash player running on a page on the site, which locates an mp3 file on my server and plays it using a playlist, but it is very easy to find the location of the mp3 file and download it by viewing the page source code.

I am able to easily password protect the directory where the mp3s are by using a feature provided by the host server, but it also stops the flash player from playing the file, asking for the password. Visitors can then only listen to the tracks if they have the password, which of course means they can also download the tracks!

My solution so far has been to use low quality mp3s, so that they are not really worth downloading, but is there a way I can create some sort of filter to allow the php flash player to access the files successfully?

Please bear in mind that I am learning all of this stuff, so I may need a few fundamentals explained to me also.

Thanks.

phranque

9:53 pm on Dec 5, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you could put the mp3 files in a place that is not web accessible and use a script to feed the mp3 data to the requesting client.
then only serve the content if it is referred by your page.

lostangel

10:14 pm on Dec 5, 2006 (gmt 0)

10+ Year Member



Thanks for the reply.

I don't know how to do this myself. Do you know of a good source for learning about such scripting. This is exactly the type of stuff I want to get into.

Regards.

phranque

11:56 pm on Dec 5, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



if you search on something like "anti leech php script" you will find plenty of free solutions...

lostangel

9:41 pm on Dec 6, 2006 (gmt 0)

10+ Year Member



Thanks Phranque for taking the time to help.
I've got some reading to do now!

Just the ticket...