I have a Flash mp3 player on my site and I keep the mp3's in another directory on the same site, If you look had enough in the source code you can see the directory address containing the mp3's. To stop people just browsing to the directory and having access to music my friend said I should just put a blank html page in the directory...... This seems logical and seems to work, Is this OK or is there ways to get around this method to show the contents of the directory? Thanks in advance
I'd do two things: insert a file named index.html in that directory that contains ABSOLUTELY nothing! this will prevent the directory files being listed. Secondly, I'd chmod the directory in a way that lets the requests be from the server-side only! That's if you're using a linux server. PM me if you need any further help.
In your .htaccess file, place the following code: IndexIgnore *.* This tells Apache to ignore all file types for indexing.