echo "</frameset>\n";
header("Location: $link");
exit();
?>
保存为jump.php然后再其他页内加入连接代码:
<a href=http://www.gzit8.com//"jump.php?id=1">Visit This Link</a>
十二、保护页面:
<? $Referer = getenv("HTTP_REFERER");
if (!strchr($Referer, "http://webjx.com/page.php")) {
echo "<script>alert('你不能访问这个页面');
window.location='http://webjx.com';</script>";
exit(); } ?>
十三:限制访问某个页面
// choose a user name and password between the " " symbol
//===========================
$admin_user_name="admin"; // your admin username
$admin_password="pass"; // your password
$site_com="webjx.com"; // your website name WITHOUT http:// and www
