Ok, im making a jukebox like thing, and for legal reasons, users wont be able to download or see the mp3 files.
Does anyone know the code to protect files in this directory with .htaccess?
Thanks![]()

Ok, im making a jukebox like thing, and for legal reasons, users wont be able to download or see the mp3 files.
Does anyone know the code to protect files in this directory with .htaccess?
Thanks![]()
Coming and going...
Highers are getting the better of me
An easier solution, CHMOD the directory/files to 770 (the user and group on the server can read, write and execute, but others/viewers cannot).
Kind Regards,
Guy__________________
Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
Tech-Hosts.co.uk.
Now the player cant access the files pmsl!
Coming and going...
Highers are getting the better of me
When putting links to your files don't make them global i.e yoursite.com/files/file.mp3 use the server link i.e /home/user/public_html/files...
"A stupid man's report of what a clever man says can never be accurate, because he unconsciously translates what he hears into something he can understand."
It is currently using server link :S
I dunno if its because of the fact that its a flash object the server link is being converted to a global link somewhere.
Coming and going...
Highers are getting the better of me
You could disallow every IP from accessing it and then allow the server to access it?
which would have to be done using .htaccess ?
And im sure ive saw it somewhere, just cant remember the code
Or something?Code:Allow Deny All
Coming and going...
Highers are getting the better of me
You can't deny everyone, as the flash object would have to connect to it, and the flash object connects to it via your IP.
:S
So any more suggestions lol?
Coming and going...
Highers are getting the better of me
Want to hide these adverts? Register an account for free!