<?php
header("content-type:text/html;charset=utf-8");
highlight_file(__FILE__);
$url = $_GET['url'];
preg_match('/(localhost|127\.0\.0|192\.168\.)/is', $url,$match);
if ($match) {
exit("不允许传递本地的路径");
}
if(preg_match('/conn/is',$_GET['url'])){
die("不能包含conn敏感字符");
}
echo file_get_contents($url);
?>