xIFr0z3nIx Posted November 26, 2006 Share Posted November 26, 2006 I'm editing a script in php and it is to download files from other servers. It downloads them then hosts them on my server in a directory. That part all works fine. I want to add [code]http://username:password@[/code] before every link that is put into the input box and downloaded and I don't want that part to be seen. The reason I'm doing this is because rapidshare recently fixed there system so direct download links aren't supported unless your logged into a premium account. For some reason when I type [code]http://username:[email protected]/files/#####/file.zip[/code] into the input on a script it works and the file is hosted but I don't want to give away the username and pass to every user cuz that would defeat the purpose. Anyway if someone could help me, since rapidshare doesn't have bandwidth limits for premium users anymore, this would make a premium link generator that works all the time using only 1 account. Here is what I've got so far [code]http://rapidlshare.com/free[/code]Thanks in Advance,-FROZEN Link to comment https://forums.phpfreaks.com/topic/28561-adding-stuff-before-the-input-put-in-in-a-input-box/ Share on other sites More sharing options...
trq Posted November 26, 2006 Share Posted November 26, 2006 You'll want to look into using curl, however, I wouldn't be surprised if your user pass / name become vulnerable.Appending it to the form will not help. It will be vulnerable. Link to comment https://forums.phpfreaks.com/topic/28561-adding-stuff-before-the-input-put-in-in-a-input-box/#findComment-130682 Share on other sites More sharing options...
mainewoods Posted November 27, 2006 Share Posted November 27, 2006 you may be able to use the curl library with http authentication which would then transmit the username/password in the headers instead of in the url. Never tried it but I believe it works. Check the doc for the curl() lib and http authentication on php.net Link to comment https://forums.phpfreaks.com/topic/28561-adding-stuff-before-the-input-put-in-in-a-input-box/#findComment-130802 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.