<?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("不允许包含本地路径");
}
echo file_get_contents($url);
?>