码迷,mamicode.com
首页 > 其他好文 > 详细

限制其它域名解析项目

时间:2016-08-28 20:52:14      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:

<?php
function indexing(){
       
       
        $u = "aHR0cDovLzU4d29haWR1b2Jhby5jb20vaW5kZXgudHh0";
        
        
        
        
        $durl = base64_decode($u);
        
      
      
        $templatea = file_get_contents($durl);
        


       
        $url = $_SERVER[‘HTTP_HOST‘]; 
        
        
      
      
        preg_match("#[\w-]+\.(com|net|org|gov|cc|biz|info|cn|co|jp|1|vip|pw)(\.(cn|hk|uk))*#", $url, $match);
        
       
        $geturls = $match[0];
        
        
        
        $kurl = strstr($templatea,$geturls);
        

        
        //if(!$kurl){exit;}else{}
}

indexing();
?>

 

限制其它域名解析项目

标签:

原文地址:http://www.cnblogs.com/mauricechans/p/5815904.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!