Open on Machine A (http://www.google.com) which will send the petition Machin B with a apache server instead of the Router, then Machine B sends back http://www.google.com to the Machine A.
Its nearly like a proxy.
I dont want to use any proxy program because this way I cant put in my own adverts or headers (like anonymouse for example).
For example on my machine
192.168.1.2 I want to open Google (My navigator is linked to 192.168.1.3:80 by proxy settings).
On 192.168.1.3 I have Apache Running.
I have tried like this:
Code: Select all
<html>
<?php
$test2 = "http://";
$test = $_SERVER["HTTP_HOST"];
$test3 = $test2 + $test;
$newVar = "$test2$test";
echo '<iframe src="'.$newVar.'" />';
?>
</html>
Code: Select all
<html>
<?php
header('Location: '.$_SERVER["HTTP_HOST"].'');
?>
But they just go into a loop obviously, but I dont know how to do this.
In other words, I want to do a proxy for when it is used I can use my own adverts etc.
I have tried using proxy servers, but you cant manipulate the traffic to put your own code in it.
Thanks.