ross987
07-04-2007, 04:29 PM
Hi
I'm not sure if this is exactly the right forum...
Basically I have set up streaming audio on my webpage, in the form of a flash "jukebox", where a user can skip tracks etc. This has all gone fine, and currently the player works.
I have stored all the info about the songs in a mysql database, and I use flash to dynamically load the playlist when the user press "next" + "back" etc (via php).
My main problem is despite storing the info in a database, i still feel that it is very unsecure, as all mp3's are left in a directory (and if you knew the name of it you could just download the mp3). How would i go about protecting the mp3's so that say, only the swf file could access them and all other connections are rejected?
I have looked into this for a little while, using php/htaccess seem like possible ways to protect the audio, but I have stumbled on a problem with flash.
I am under the impression that all SWF files are actually downloaded to the browsers cache, so when they are listening to my audio they are using a local copy of the SWF file, which means i cannot specify that "myserver.com/swffile.swf" is the only file able to access my songs (it would in fact be more like "c:\doc&settings\user\temp internet files\file.swf").
Sorry for the long post but i thought its better to fully explain the "big picture".
Many Thanks
Ross
I'm not sure if this is exactly the right forum...
Basically I have set up streaming audio on my webpage, in the form of a flash "jukebox", where a user can skip tracks etc. This has all gone fine, and currently the player works.
I have stored all the info about the songs in a mysql database, and I use flash to dynamically load the playlist when the user press "next" + "back" etc (via php).
My main problem is despite storing the info in a database, i still feel that it is very unsecure, as all mp3's are left in a directory (and if you knew the name of it you could just download the mp3). How would i go about protecting the mp3's so that say, only the swf file could access them and all other connections are rejected?
I have looked into this for a little while, using php/htaccess seem like possible ways to protect the audio, but I have stumbled on a problem with flash.
I am under the impression that all SWF files are actually downloaded to the browsers cache, so when they are listening to my audio they are using a local copy of the SWF file, which means i cannot specify that "myserver.com/swffile.swf" is the only file able to access my songs (it would in fact be more like "c:\doc&settings\user\temp internet files\file.swf").
Sorry for the long post but i thought its better to fully explain the "big picture".
Many Thanks
Ross