Click to See Complete Forum and Search --> : Is it possible to obscure MP3 directory?
missp
03-14-2004, 08:18 PM
So ... my client has a Flash radio with song selections pointing to mp3's in an audio directory on his server. Is it possible to obscure that directory (.htaccess or otherwise) while still enabling the Flash radio to call them up? I realize that the relentless fans will find them if they can, but would like to at least make it as difficult as possible.
ray326
03-14-2004, 09:24 PM
You can put them in a directory outside of the document root tree and use server-side (php, cgi/perl, asp, etc.) techniques to access them.
missp
03-15-2004, 03:53 PM
The site is hosted on a shared server (via a hosting reseller acct), so I am not sure whether this method will be allowed. Is there any security risk involved with doing this?
Also ... since I'm not a programmer, is there a server-side cgi (or php) script you (or anyone out there) would recommend to accomplish this?
Thanks a TON :)
ray326
03-15-2004, 07:27 PM
The site is hosted on a shared server (via a hosting reseller acct), so I am not sure whether this method will be allowed. Is there any security risk involved with doing this?
A lot of hosts at least let you run Perl scripts for CGI; obviously YMMV. The security is a lot higher than giving them direct access but your supporting scripts have to be right.
Also ... since I'm not a programmer, is there a server-side cgi (or php) script you (or anyone out there) would recommend to accomplish this?
AFAIK this kind of thing is usually custom although the technique is similar to the hit counter services.
missp
03-15-2004, 08:07 PM
Hi Ray,
I was referring to security risk of placing files "outside of the document root tree" not the cgi access. Unless I misunderstood you? I assumed that meant outside the public_html dir? which on a shared server could be an issue ... no?