写一个php文件 比如 baidu.com/a.php?url=google.com 会立即跳转到google
写一个php文件 比如 baidu.com/a.php?url=google.com 会立即跳转到google
——解决方案——————–
a.php
<?php
$url = $_GET[‘url’];
if(!empty($url)) header(‘location:http://’ . $url);
exit;
?>
a.php?url=amysql.com
这样做要注意一点就是,别被别人利用拉,跳到一些不和谐的网站
——解决方案——————–
<br /><?php<br />$url=$_GET[url];<br />header("Location:http://".$url);<br />?<strong style="color:transparent">¥本文来源gaodai#ma#com搞@@代~&码网^</strong><small>搞gaodaima代码</small>><br />
——解决方案——————–
<br /> $url = urldecode($_GET[url]);<br /> header("Location:http://".$url);<br />