判断URL来路的PHP代码

<?php
$referer = $_SERVER[‘HTTP_REFERER’];
echo $referer;
if(!$referer == “”){
                if(ereg(‘http’,$referer)){
    
                                $referer = @explode(‘.’,$referer);
                                if(is_array($referer)){
                                                $referer = $referer[‘1’];
                                                if($referer == ‘9cweb’){
?>
这里是想放的任何代码.
<?php

                                                }
                                }
                }
}
?>

滚动至顶部