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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nathanielelliott
Forum Newbie
Posts: 2
Joined: Wed Jan 11, 2012 10:40 am

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

Post 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?
nathanielelliott
Forum Newbie
Posts: 2
Joined: Wed Jan 11, 2012 10:40 am

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

Post 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;
    }
    
?>
Post Reply