<?php
    header
("content-type:text/html;charset=utf-8");
    
highlight_file(__FILE__);
    
$url 'http://'$_GET[url];
    
$url str_replace('..','',$url);
    
$parsed parse_url($url);
    if( 
$parsed[port] == 80 ){  // 这里限制了我们传过去的url只能是80端口的
      
readfile($url);
    } else {
      die(
'Hacker!');
    }
?>