php禁止浏览器直接访问

来源:互联网 发布:mysql limit where优化 编辑:程序博客网 时间:2024/04/30 04:06


<?php
$fromurl="index.html"; //跳转往这个地址。
if( $_SERVER['HTTP_REFERER'] == "" )
{
header("Location:".$fromurl);
exit;
}
?>

0 0
原创粉丝点击