本程序适用于一切泛目录,安装即可展现明朗的蜘蛛统计,乃搭建站群的朋友们必不可少的辅助程序。
不搭建演示站了,演示站屏蔽了蜘蛛,也展现不出效果。再者,也没打算卖。
特别说明
本套站群程序是由曹操博客交流群@度(1194866606)大哥无偿提供,需要的朋友可以自行找他购买。
安装流程
解压本程序到网站的根目录,在404.php文件中插入下列代码:
header('HTTP/1.1 200 OK'); header("status: 200 OK"); header('content-type:text/html;charset=utf-8'); $canshu='/tongji/'.$_SERVER['QUERY_STRING'].'/'; $hour_path=str_replace('\\','/',__DIR__).'/tongji/hour/'; $cache_path = str_replace('\\','/',__DIR__).$canshu; $cache_path1 = str_replace('\\','/',__DIR__).'/tongji/Sogou/'; $cache_path2 = str_replace('\\','/',__DIR__).'/tongji/Baiduspider/'; $cache_path3 = str_replace('\\','/',__DIR__).'/tongji/360Spider/'; $cache_path4 = str_replace('\\','/',__DIR__).'/tongji/Googlebot/'; $cache_path5 = str_replace('\\','/',__DIR__).'/tongji/Yisouspider/'; $cache_path6 = str_replace('\\','/',__DIR__).'/tongji/Bytespider/'; $url = $_SERVER['REQUEST_URI']; $url= str_replace("/","",$url); $key= $_SERVER["HTTP_USER_AGENT"]; $Sogouspider =preg_match('/Sogou/', $key, $Sogouspider); $baiduspider =preg_match('/Baiduspider/', $key, $baiduspider); $Googlebot =preg_match('/Googlebot/', $key, $Googlebot); $bingbot =preg_match('/bingbot/', $key, $bingbot); $MJ12bot =preg_match('/MJ12bot/', $key, $MJ12bot); $liulingSpider=preg_match('/360Spider/',$key, $liulingSpider); $Yisouspider=preg_match('/YisouSpider/',$key, $Yisouspider); $Bytespider=preg_match('/Bytespider/', $key, $Bytespider); $ip = $_SERVER["REMOTE_ADDR"]; $urls=$_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; $zhizhutime=date('Y-m-d H:i:s' ); $zhizhutimes=date('Ymd'); $hour=date('H'); $sogou='搜狗'; $gouzi="$zhizhutime--$ip--$sogou--$urls\n"; $baidu='百度'; $baidus="$zhizhutime--$ip--$baidu--$urls\n"; $google='谷歌'; $googles="$zhizhutime--$ip--$google--$urls\n"; $liuling='360'; $liulingSpiders="$zhizhutime--$ip--$liuling--$urls\n"; $yisou='神马'; $Yisouspiders="$zhizhutime--$ip--$yisou--$urls\n"; $toutiao='今日头条'; $Bytespiders="$zhizhutime--$ip--$toutiao--$urls\n"; $dir = $hour_path.$zhizhutimes; is_dir($dir)?:mkdir($dir,0777,true); if($Sogouspider) { file_put_contents($cache_path1."$zhizhutimes.log",$gouzi,FILE_APPEND); file_put_contents($hour_path.$zhizhutimes.'/'.$hour.".log",'1',FILE_APPEND); } if($baiduspider) { file_put_contents($cache_path2."$zhizhutimes.log",$baidus,FILE_APPEND); file_put_contents($hour_path.$zhizhutimes.'/'.$hour.".log",'1',FILE_APPEND); } if($Googlebot) { file_put_contents($cache_path4."$zhizhutimes.log",$googles,FILE_APPEND); file_put_contents($hour_path.$zhizhutimes.'/'.$hour.".log",'1',FILE_APPEND); } if($liulingSpider) { file_put_contents($cache_path3."$zhizhutimes.log",$liulingSpiders,FILE_APPEND); file_put_contents($hour_path.$zhizhutimes.'/'.$hour.".log",'1',FILE_APPEND); } if($Yisouspider) { file_put_contents($cache_path5."$zhizhutimes.log",$Yisouspiders,FILE_APPEND); file_put_contents($hour_path.$zhizhutimes.'/'.$hour.".log",'1',FILE_APPEND); } if($Bytespider) { file_put_contents($cache_path6."$zhizhutimes.log",$Bytespiders,FILE_APPEND); file_put_contents($hour_path.$zhizhutimes.'/'.$hour.".log",'1',FILE_APPEND); }
其他说明
如需删除缓存,逐一删除tongji目录下的log文件即可,切勿整个文件夹一起删除!
默认统计页面是:tongji.php,防小人偷看,请自行改名!
程序目录文件
所见即所得,下载后您将得到以下截图内的程序文件:
<蜘蛛统计> ├2.php ├5000.php ├tongji.php ├tongjis.php ├zong.php ├<static> │ ├<css> │ │ └admin.css │ ├<js> │ │ ├1.js │ │ ├highcharts.js │ │ ├jquery.js │ │ ├jquery3.4.1.js │ │ ├lingduseo.js │ │ ├system.js │ │ ├WdatePicker.js │ │ ├<DatePicker> │ │ │ ├calendar.js │ │ │ ├WdatePicker.js │ │ │ ├<lang> │ │ │ │ └zh-cn.js │ │ │ ├<skin> │ │ │ │ ├datePicker.gif │ │ │ │ ├WdatePicker.css │ │ │ │ ├<default> │ │ │ │ │ ├datepicker.css │ │ │ │ │ └img.gif │ │ │ │ ├<ext> │ │ │ │ │ ├datepicker.css │ │ │ │ │ ├dateselect.gif │ │ │ │ │ ├glass-bg.gif │ │ │ │ │ ├hd-sprite.gif │ │ │ │ │ ├img.gif │ │ │ │ │ ├left-btn.gif │ │ │ │ │ ├left-btn2.gif │ │ │ │ │ ├right-btn.gif │ │ │ │ │ └right-btn2.gif │ │ ├<skin> │ │ │ ├datePicker.gif │ │ │ ├WdatePicker.css │ │ │ ├<default> │ │ │ │ ├datepicker.css │ │ │ │ └img.gif │ │ │ ├<ext> │ │ │ │ ├datepicker.css │ │ │ │ ├dateselect.gif │ │ │ │ ├glass-bg.gif │ │ │ │ ├hd-sprite.gif │ │ │ │ ├img.gif │ │ │ │ ├left-btn.gif │ │ │ │ ├left-btn2.gif │ │ │ │ ├right-btn.gif │ │ │ │ └right-btn2.gif ├<tongji> │ ├<360Spider> │ ├<Baiduspider> │ ├<Bytespider> │ ├<Googlebot> │ ├<hour> │ ├<Sogou> │ ├<Yisouspider>
本站所有内容仅限用于学习和研究目的,程序仅供本地断网测试,转载请说明出处!
站群SEO » 零度站群蜘蛛统计程序
站群SEO » 零度站群蜘蛛统计程序