<?php
// 检查是否直接访问本页面
if( isset($_SERVER['HTTP_REFERER']) ) {
$url_array = explode('http://', $_SERVER['HTTP_REFERER']);
$url = explode('/', $url_array[1]);
if($_SERVER['SERVER_NAME'] != $url[0]) {
// 您不是从本站来的;
exit('Access Denied! You are not coming from the site!');
}
} else {// 禁止直接访问此页;
exit('Access Denied! Please do not load this page directly.');
}
?>
Copyright © 2013-2021 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号