stoping download

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

stoping download

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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.
Post Reply