Page 1 of 1

How to build: Simple Proxy - Hard Coded Links & Images

Posted: Wed Jan 11, 2012 10:41 am
by nathanielelliott
I need to create a simple proxy that delivers a site through the server. One URL only and am hoping for a simple script, not one like Glype / Zelune / Etc.

[User A] clicks DOWNLOAD... DOWNLOAD leads their download link through a [Server].... That [Server] goes to another page and downloads it passing it through to the user, like a proxy!

In short, we don't know the IP address of User A and will never know their exact IP address. So, we need to send them through our [SERVER]. Ideas? Does this make sense?

Re: How to build: Simple Proxy - Hard Coded Links & Images

Posted: Wed Jan 11, 2012 10:42 am
by nathanielelliott
I really want to make a "server side doing a client request php". In essence I wish this code could work as a link / work period and send it off through the server's IP address. I need to do this with an image and a link at some point but the link is the huge part!

Code: Select all

<?php
    
    $link = file("http://linkaddress.com");
    
    foreach($link as $part)
    {
        echo $part;
    }
    
?>