aseaofflames Posted November 25, 2008 Share Posted November 25, 2008 Is there any way to force a user to download a file from a remote server without transfering it to my server (or using readfile?) thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/134136-force-download-of-remote-file-saving-my-bandwidth/ Share on other sites More sharing options...
jordanwb Posted November 25, 2008 Share Posted November 25, 2008 header ('location: xyz.com'); xyz.com being the path to the file. Or you can use a meta redirect. Quote Link to comment https://forums.phpfreaks.com/topic/134136-force-download-of-remote-file-saving-my-bandwidth/#findComment-698314 Share on other sites More sharing options...
premiso Posted November 25, 2008 Share Posted November 25, 2008 lol That's called leeching/hotlinking and most sites do not like that and I wouldn't hold it against you if you get banned from that site for doing that. Not my way of doing things, but to each their own. Just giving some etiquette/ethics on the web. Why should they pay for bandwidth you are generating? Quote Link to comment https://forums.phpfreaks.com/topic/134136-force-download-of-remote-file-saving-my-bandwidth/#findComment-698319 Share on other sites More sharing options...
ShiloVir Posted November 25, 2008 Share Posted November 25, 2008 BYOB!!! Buy your own bandwidth! Personally I hate people hotlinking me and htaccess files can help alot. if you leech bandwidth im pretty sure it is a crime. if you cant afford the 5$ a month then host it from your own computer. Quote Link to comment https://forums.phpfreaks.com/topic/134136-force-download-of-remote-file-saving-my-bandwidth/#findComment-698325 Share on other sites More sharing options...
premiso Posted November 25, 2008 Share Posted November 25, 2008 BYOB!!! Buy your own bandwidth! Personally I hate people hotlinking me and htaccess files can help alot. if you leech bandwidth im pretty sure it is a crime. if you cant afford the 5$ a month then host it from your own computer. Not a crime if the person does not put in the restrictions to prevent it. But I am with you it should be a crime. You leech my bandwidth and I slap you with a ban for your IP to my site. Quote Link to comment https://forums.phpfreaks.com/topic/134136-force-download-of-remote-file-saving-my-bandwidth/#findComment-698333 Share on other sites More sharing options...
aseaofflames Posted November 25, 2008 Author Share Posted November 25, 2008 gosh, so harsh. I am trying to allow file downloads from a music hosting site (mediamaster.com) they already allow users to stream the same files I want to allow downloads of. I guess it could be considered leaching, but they already offer a java program that allows users to do this. I was just trying to recreate the program in php so it could be used anywhere with internet access. Quote Link to comment https://forums.phpfreaks.com/topic/134136-force-download-of-remote-file-saving-my-bandwidth/#findComment-698344 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.