Page 1 of 1

stoping download

Posted: Thu Jan 25, 2007 9:22 am
by itsmani1
Hi

I want to restrict people form downloading .mp3 files form my server? how can i do so? can i do this using .htaccess file.
My server has .mp3 files and I don't want people to download them.
Please tell me any solution for it.

thank you

Posted: Thu Jan 25, 2007 9:26 am
by feyd
Not having them on the server?

Placing them outside of the web root makes it quite difficult for someone to browse to them. .htaccess would only prevent a web browser from gaining access to them; if you have any scripts that provide download interfacing and they are not sufficiently locked down they will provide facility to download any files on your server.

Posted: Thu Jan 25, 2007 11:31 am
by Kieran Huggins
Keeping them outside the web root makes the most sense to me.

Alternatively, you could adapt "image hotlinking" prevention techniques to mp3 files.