A8DOG

A8DOG

随便写写,记录折腾过程!
telegram

允許蜘蛛同行/屏蔽訪客的php代碼

<?php
/* 
This program is only for local testing in an offline state, please do not upload it to the internet, and do not use it for illegal purposes!
Big brother is not educated, big brother doesn't like to talk! But big brother loves you!
Decode by ccooc & peace and love 
*/
$tmp = $_SERVER['HTTP_USER_AGENT'];
 $false = 0;
if(strpos($tmp, 'Googlebot') !== false){
    $false = 1;
} else if(strpos($tmp, 'Baiduspider') !== false){
     $false = 1;
} else if(strpos($tmp, 'Yahoo! Slurp') !== false){
     $false = 1;
} else if(strpos($tmp, 'msnbot') !== false){
    $false = 1;
} else if(strpos($tmp, 'Sosospider') !== false){
    $false = 1;
} else if(strpos($tmp, 'YodaoBot') !== false || strpos($tmp, 'OutfoxBot') !== false){
     $false = 1;
} else if(strpos($tmp, 'Sogou web spider') !== false || strpos($tmp, 'Sogou Orion spider') !== false){
    $false = 1;
} else if(strpos($tmp, 'fast-webcrawler') !== false){
    $false = 1;
} else if(strpos($tmp, 'Gaisbot') !== false){
     $false = 1;
} else if(strpos($tmp, 'ia_archiver') !== false){
    $false = 1;
} else if(strpos($tmp, 'altavista') !== false){
    $false = 1;
} else if(strpos($tmp, 'lycos_spider') !== false){
     $false = 1;
} else if(strpos($tmp, '360Spider') !== false){
     $false = 1;
}
if($false==0) {
?>

<html>
<head>
<meta http-equiv="Content-Type" content="textml;charset=gbk" />
<title>&#22495;&#21517;&#20572;&#38752;</title>
<meta content="&#22495;&#21517;&#44;&#19975;&#32593;&#22495;&#21517;" name="keywords">
<meta content="&#22495;&#21517;&#44;&#19975;&#32593;&#22495;&#21517;" name="description">
<script>var s=document.referrer;if(parent.window.opener) parent.window.opener.location=s;</script>
<style>body{background-color:#FFFFFF}.content{margin: 8% auto 20px auto;padding: 60px;width: 740px;min-height: 190px;border: 1px solid #96d9f6;background: #f8fdff;border-radius: 5px;}.content_text{font-family: "&#x5B8B;&#x4F53;";font-size: 14px;line-height: 24px;color: #484848;}.content_text img{float:left;}.content_text p{float: left;margin: 0 0 0 32px;padding: 0;width: 635px;}</style>
</head>
<body>
<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
<div style="display:none"></div>
 <script type="text/javascript" src=""></script>

</body>
</html>
</html>
<?php
exit;
 } 
?>
載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。