运营者的网络红宝书

今日头条来源判断

2019-07-10 16:01栏目:环境判断
TAG:

<?php
//echo $_SERVER['HTTP_REFERER'];
header("Content-Type: text/html;charset=utf-8");
$toutiao = 'nativeapp.toutiao.com'$pos = strpos ($_SERVER['HTTP_REFERER'] ,$toutiao); 
    if($pos === false ){ 
        //$url='index.html'; 
        //echo file_get_contents($url); 
        echo "审核页面";
    }
    else{ 
        //$url='neirong.html';
        //echo file_get_contents($url); 
                echo "广告页面";
   }
?>