yami007 Posted February 23, 2009 Share Posted February 23, 2009 hi, somehow, i dont want the user to download mp3 files from my website. they cant download from my mp3 directory, but internet download manager and its alike can via the flash player. so when idman tries to capture the mp3 file i want to change the extension mp3 to html, just like php does when it turns to html extension. looking for help !! Quote Link to comment https://forums.phpfreaks.com/topic/146528-how-to-stop-users-from-downloading-my-mp3-files/ Share on other sites More sharing options...
JonnoTheDev Posted February 23, 2009 Share Posted February 23, 2009 Store the mp3s outside your web document root so they are non-accessible. The only way a user can download the file is via your websites own download script. Quote Link to comment https://forums.phpfreaks.com/topic/146528-how-to-stop-users-from-downloading-my-mp3-files/#findComment-769319 Share on other sites More sharing options...
yami007 Posted February 24, 2009 Author Share Posted February 24, 2009 sorry, i dont understand what u mean Quote Link to comment https://forums.phpfreaks.com/topic/146528-how-to-stop-users-from-downloading-my-mp3-files/#findComment-769689 Share on other sites More sharing options...
Stephen68 Posted February 24, 2009 Share Posted February 24, 2009 Store it outside where you keep your HTML and scripts... Some hosts it would be outside your public_www directory. Quote Link to comment https://forums.phpfreaks.com/topic/146528-how-to-stop-users-from-downloading-my-mp3-files/#findComment-769761 Share on other sites More sharing options...
Q695 Posted February 24, 2009 Share Posted February 24, 2009 youtube/myspace does it through a flash application that loads it. Quote Link to comment https://forums.phpfreaks.com/topic/146528-how-to-stop-users-from-downloading-my-mp3-files/#findComment-769797 Share on other sites More sharing options...
yami007 Posted February 24, 2009 Author Share Posted February 24, 2009 but this doesnt serve anything because anyone can download flv videos from youtube and myspace, you know thanks ^^ Quote Link to comment https://forums.phpfreaks.com/topic/146528-how-to-stop-users-from-downloading-my-mp3-files/#findComment-769957 Share on other sites More sharing options...
JonnoTheDev Posted February 24, 2009 Share Posted February 24, 2009 If this is your hosting environment i.e: /public_ftp/ /public_html/ /cgi-bin/ Then your web files are located in /public_html/ and are all accessible publically. This is where you do not want to store your mp3 files or users can just use http://www.yourdomain.com/mp3/xyz.mp3 as an example. If you do the following: /public_ftp/ /public_html/ /cgi-bin/ /mp3/ Then users cannot access this directory publically. If the mp3 files are for download then you can write a download script on your website that grabs the file from outside of your website document root. Quote Link to comment https://forums.phpfreaks.com/topic/146528-how-to-stop-users-from-downloading-my-mp3-files/#findComment-770006 Share on other sites More sharing options...
yami007 Posted April 7, 2009 Author Share Posted April 7, 2009 ah it took me 2 months to understand hehe joking but i really forgot about this thanks neil.johnson ^^ Quote Link to comment https://forums.phpfreaks.com/topic/146528-how-to-stop-users-from-downloading-my-mp3-files/#findComment-803099 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.