http://www.bkjia.com/PHPjc/732388.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/732388.htm">
当前位置:Gxlcms > PHP教程 > php判断正常访问和外部访问的示例_PHP教程

php判断正常访问和外部访问的示例_PHP教程

时间:2021-07-01 10:21:17 帮助过:4人阅读

php判断正常访问和外部访问
代码如下:

session_start();
if(isset($_POST['check'])&&!empty($_POST['name'])){
if($_POST['check'] == $_SESSION['check']){
echo "正常访问";
}else{
echo "外部访问";
}
}
$token = md5(uniqid(rand(),true));
$_SESSION['check'] = $token;
?>




www.bkjia.comtruehttp://www.bkjia.com/PHPjc/732388.htmlTechArticlephp判断正常访问和外部访问 代码如下:

?php session_start(); if(isset($_POST['check'])!empty($_POST['name'])){ if($_POST['check'] == $_SESSION['check']){ ec...

人气教程排行