<?php
$fromurl="index.html"; //跳转往这个地址。
if( $_SERVER['HTTP_REFERER'] == "" )
{
header("Location:".$fromurl);
exit;
}
?>
php禁止浏览器直接访问
最新推荐文章于 2021-04-03 07:04:37 发布
<?php
$fromurl="index.html"; //跳转往这个地址。
if( $_SERVER['HTTP_REFERER'] == "" )
{
header("Location:".$fromurl);
exit;
}
?>