php script to browse internet

forthisbh

Newbie
Joined
Aug 1, 2013
Messages
31
Reaction score
0
Using shared website hosting

is there a php script that can allow me to browse all pages on the internet
where websites think that visiting ip of shared website hosting, not desktop computer


maybe it is just iframe
 
You can use this for an iframe
Code:
<?php
    $address = $_GET['address']
?>

<html>
<head>
</head>
    <body>
        <div id="header">
            <form method="GET" action="">
                <input name="address" type="address" id="address" placeholder="address"/>
                <input type="submit" value="Go" id="submit"/>
            </form>
        </div>
        <div id="body">
            <iframe src="<?php echo $address ?>" id="frame" height="640px" width="480px" />
        </div>
    </body>
</html>

Or you can use curl() function or file_get_contents()

Code:
<?php



$opts = array(
  'http'=>array(
    'method'=>"GET",
    'header'=>"Accept-language: en\r\n" .
              "Cookie: foo=bar\r\n"
  )
);

$context = stream_context_create($opts);

$loadfile = file_get_contents('http://www.google.com', false, $context);

echo $loadfile;

?>

or both mixed together

Code:
<?php

$opts = array(
  'http'=>array(
    'method'=>"GET",
    'header'=>"Accept-language: en\r\n" .
              "Cookie: foo=bar\r\n"
  )
);

$context = stream_context_create($opts);
$address = $_GET['address'];
$file = file_get_contents($address, false, $context);

?>

<html>
<head>
</head>
    <body>
        <div id="header">
            <form method="GET" action="">
                <input name="address" type="address" id="address" placeholder="address"/>
                <input type="submit" value="BROWSE" id="submit"/>
            </form>
        </div>
        <div id="body">
<?php echo $file ?>
        </div>
    </body>
</html>
 
Last edited:
Back
Top