1.x
xiaoz 2018-09-26 14:05:26 +08:00
parent c5810c421b
commit c485e87414
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
//载入配置文件 //载入配置文件
include_once("./class/class.user.php"); include_once("./class/class.user.php");
//阻止用户直接访问 //阻止用户直接访问
if( $_SERVER['HTTP_REFERER'] != $config['domain'] ) if( !strstr($_SERVER['HTTP_REFERER'],$config['domain']) )
{ {
$basis->re_error('非法请求!'); $basis->re_error('非法请求!');
} }