Jump to content

php?id= !!


xfighter

Recommended Posts

Hello Experts ,

 

I have a small issue it may be complicated but it's small & I guess it would be easy for experts like you guys , anyway the story is that I have 2 webhosts lets say for example :

The first : http://www.server.com

The second : http://www.host.com

 

I have plenty of files uploaded on the host http://www.host.com the link of the files on that domain look like this : http://www.host.com/download.php?login=xfighter&psw=something&file=game.rar

 

this is an example of the download link of game.rar file what I need is a php file to upload on the first host (http://www.server.com) where when I excecute this for example : http://www.server.com/download.php?file=game.rar , it redirects the user to the link http://www.host.com/download.php?login=xfighter&psw=something&file=game.rar

*****& Without Showing It To The Users*****

 

the file must be valid to be adaptive to be clearer ; when I excecute the link http://www.server.com/download.php?file=zizo.zip

the file must take the users to

http://www.host.com/download.php?login=xfighter&psw=something&file=zizo.zip

 

I want to be able to control the last string (filename) in the php I intend to create..

 

Any Ideas??

Link to comment
https://forums.phpfreaks.com/topic/130204-phpid/
Share on other sites

Mod proxy would work perfectly for this.  PHP wouldn't even be needed.

 

 

If you did want to use PHP, you would have to write a script that would fetch the remote stuff and read it back out.

 

 

 

 

I don't think we should need to be more specific.  Just google mod proxy.  (Or if you want to do it the PHP way, google file_get_contents, fopen, cURL, or whatever.)

 

 

 

 

Oh, just so you know, I generally don't approve of scripts like this.  It's kind of a dick move to allow your users to download a password protected file on a different host.

Link to comment
https://forums.phpfreaks.com/topic/130204-phpid/#findComment-675251
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.