So here's my site's situation. On one of my pages I have a flash document that acts as a music player; this flash doc is accessing .mp3 files located in sub folders on my host's (linux) server. The way the access is setup on my site a user can't access the folder the .mp3s are located in, however if they know the file names they can link directly to the .mp3s to either download them or play them directly from a browser window.
I've tried chmod'ing access from the server to 700 or several variations however I haven't ended up with what I want. It seems that the only way I can deny (via permissions) direct access to the files is to remove all but the owner permissions. This however has the undesired effect of preventing the flash document from accessing them as well.
I've also tried password protecting the folder that they're in; however anytime any page accesses the flash document (because it's located on more then one page) the browser prompts for a username/password. Also not desireable. I want the "protection" to be as transparent as is possible.
Here's the directory structure:
Code:
root_folder
|_index.php (the main page that uses the flash doc)
|_audio_folder (contains the flash doc and audio files I want protected)
|_flash.swf (plays the music files)
|_song1.mp3
|_song2.mp3
|_songxxx.mp3
If moving the .swf out of the audio_folder is necessary to protect the .mp3s, that's fine. I just want the player to work with transparent access to the .mp3s while preventing users from directly accessing/downloading my tunes.
Thanks for any help guys!
|