





|
if (strstr($_SERVER['HTTP_USER_AGENT'], 'Yandex')){ $bot='Yandex';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Googlebot')){$bot='Google';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Mediapartners-Google')){$bot='Mediapartners-Google (Adsense)';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Slurp')){$bot='Hot Bot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebCrawler')){$bot='WebCrawler search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ZyBorg')){$bot='Wisenut search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'scooter')){$bot='AltaVista';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'StackRambler')){$bot='Rambler';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Aport')){$bot='Aport';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'lycos')){$bot='Lycos';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebAlta')){$bot='WebAlta';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'yahoo')){$bot='Yahoo';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'msnbot')){$bot='MSN';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ia_archiver')){$bot='Alexa';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'FAST')){$bot='AllTheWeb';}
if($bot !=""){
$tdiff = 3600 * 0; // เปลี่ยนจาก 0 เป็น 7 ถ้า Server นอก (GMT) หรือเพิ่มลดได้ตามแต่ Time Zone อยู่ที่ได (GMT -12 ถึง GMT +13)
$file = "bot/bot".$bot.".txt";
$day = date("d/m/Y",time() + $tdiff);
$time = date("H:i:s",time() + $tdiff);
$ip = $_SERVER['REMOTE_ADDR'];
$fh = fopen($file, "w");
fwrite($fh, "$day|$time|$bot|$ip");
fclose($fh);
}
$month[1] = "ม.ค.";
$month[2] = "ก.พ.";
$month[3] = "มี.ค.";
$month[4] = "เม.ย.";
$month[5] = "พ.ค.";
$month[6] = "มิ.ย.";
$month[7] = "ก.ค.";
$month[8] = "ส.ค.";
$month[9] = "ก.ย.";
$month[10] = "ต.ค.";
$month[11] = "พ.ย.";
$month[12] = "ธ.ค.";
?>
$file = "bot/botGoogle.txt";
if(file_exists($file)) {
$fh = fopen($file, 'r+');
$s = filesize($file);
if($s == 0) {
$out = "- บอทGoogleยังไม่ได้มาเก็บข้อมูล
";
}else{
$contents = fread($fh, $s);
fclose($fh);
$info = explode("|",$contents);
$day = explode("/",$info[0]);
$m = number_format($day[1]);
$tm = explode(":",$info[1]);
$agent = $info[2];
$ip = $info[3];
$out = "- บอท
";
if($day[0] >= date('d',time())){
$out .= " มา วันนี้";
}else{
$out .=" มา เมื่อวันที่ ".$day[0]." ".$month[$m]." ". ($day[2]+543-2500);
}
$out .= " เวลา ". $tm[0]. ".".$tm[1]." น. ";
}
echo $out;
}
$file = "bot/botYahoo.txt";
if(file_exists($file)) {
$fh = fopen($file, 'r+');
$s = filesize($file);
if($s == 0) {
$out = "- บอทYahooยังไม่ได้มาเก็บข้อมูล
";
}else{
$contents = fread($fh, $s);
fclose($fh);
$info = explode("|",$contents);
$day = explode("/",$info[0]);
$m = number_format($day[1]);
$tm = explode(":",$info[1]);
$agent = $info[2];
$ip = $info[3];
$out = "- บอท
";
if($day[0] >= date('d',time())){
$out .= " มา วันนี้";
}else{
$out .=" มา เมื่อวันที่ ".$day[0]." ".$month[$m]." ". ($day[2]+543-2500);
}
$out .= " เวลา ". $tm[0]. ".".$tm[1]." น. ";
}
echo $out;
}
$file = "bot/botAlexa.txt";
if(file_exists($file)) {
$fh = fopen($file, 'r+');
$s = filesize($file);
if($s == 0) {
$out = "- บอทAlexaยังไม่ได้มาเก็บข้อมูล
";
}else{
$contents = fread($fh, $s);
fclose($fh);
$info = explode("|",$contents);
$day = explode("/",$info[0]);
$m = number_format($day[1]);
$tm = explode(":",$info[1]);
$agent = $info[2];
$ip = $info[3];
$out = "- บอท
";
if($day[0] >= date('d',time())){
$out .= " มา วันนี้";
}else{
$out .=" มา เมื่อวันที่ ".$day[0]." ".$month[$m]." ". ($day[2]+543-2500);
}
$out .= " เวลา ". $tm[0]. ".".$tm[1]." น. ";
}
echo $out;
}
$file = "bot/botHotBot.txt";
if(file_exists($file)) {
$fh = fopen($file, 'r+');
$s = filesize($file);
if($s == 0) {
$out = "- บอทHotBotยังไม่ได้มาเก็บข้อมูล
";
}else{
$contents = fread($fh, $s);
fclose($fh);
$info = explode("|",$contents);
$day = explode("/",$info[0]);
$m = number_format($day[1]);
$tm = explode(":",$info[1]);
$agent = $info[2];
$ip = $info[3];
$out = "- บอท
";
if($day[0] >= date('d',time())){
$out .= " มา วันนี้";
}else{
$out .=" มา เมื่อวันที่ ".$day[0]." ".$month[$m]." ". ($day[2]+543-2500);
}
$out .= " เวลา ". $tm[0]. ".".$tm[1]." น. ";
}
echo $out;
}
$file = "bot/botMSN.txt";
if(file_exists($file)) {
$fh = fopen($file, 'r+');
$s = filesize($file);
if($s == 0) {
$out = "- บอทMSNยังไม่ได้มาเก็บข้อมูล
";
}else{
$contents = fread($fh, $s);
fclose($fh);
$info = explode("|",$contents);
$day = explode("/",$info[0]);
$m = number_format($day[1]);
$tm = explode(":",$info[1]);
$agent = $info[2];
$ip = $info[3];
$out = "- บอท
";
if($day[0] >= date('d',time())){
$out .= " มา วันนี้";
}else{
$out .=" มา เมื่อวันที่ ".$day[0]." ".$month[$m]." ". ($day[2]+543-2500);
}
$out .= " เวลา ". $tm[0]. ".".$tm[1]." น. ";
}
echo $out;
}
$file = "bot/botYandex.txt";
if(file_exists($file)) {
$fh = fopen($file, 'r+');
$s = filesize($file);
if($s == 0) {
$out = "- บอทYandexยังไม่ได้มาเก็บข้อมูล
";
}else{
$contents = fread($fh, $s);
fclose($fh);
$info = explode("|",$contents);
$day = explode("/",$info[0]);
$m = number_format($day[1]);
$tm = explode(":",$info[1]);
$agent = $info[2];
$ip = $info[3];
$out = "- บอท
";
if(date('d',time()) >= $day[0]){
$out .= " มา วันนี้";
}else{
$out .=" มา เมื่อวันที่ ".$day[0]." ".$month[$m]." ". ($day[2]+543-2500);
}
$out .= " เวลา ". $tm[0]. ".".$tm[1]." น. ";
}
echo $out;
}
?>
|
ดาวน์โหลดแบบที่1 >>






|
// Original Script Download From www.thaiseoboard.com
// Bot Detect Modified By TheeWay
// TheeWay ThaiProNo Admin : http://www.thaiprono.org/webboard/index.php
if (strstr($_SERVER['HTTP_USER_AGENT'], 'Yandex')){ $bot='Yandex';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Googlebot')){$bot='Google';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Mediapartners-Google')){$bot='Mediapartners-Google (Adsense)';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Slurp')){$bot='Hot Bot search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebCrawler')){$bot='WebCrawler search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ZyBorg')){$bot='Wisenut search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'scooter')){$bot='AltaVista';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'StackRambler')){$bot='Rambler';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Aport')){$bot='Aport';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'lycos')){$bot='Lycos';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebAlta')){$bot='WebAlta';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'yahoo')){$bot='Yahoo';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'msnbot')){$bot='msnbot/1.0';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ia_archiver')){$bot='Alexa search engine';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'FAST')){$bot='AllTheWeb';}
if($bot !=""){
$tdiff = 3600 * 0; // เปลี่ยนจาก 0 เป็น 7 ถ้า Server นอก (GMT) หรือเพิ่มลดได้ตามแต่ Time Zone อยู่ที่ได (GMT -12 ถึง GMT +13)
$file = "bots10.txt";
$day = date("d/m/Y",time() + $tdiff);
$time = date("H:i:s",time() + $tdiff);
$ip = $_SERVER['REMOTE_ADDR'];
$fh = fopen($file, "a");
fwrite($fh, "$day|$time|$bot|$ip\n");
fclose($fh);
}
$month[1] = "มกราคม";
$month[2] = "กุมภาพันธ์";
$month[3] = "มีนาคม";
$month[4] = "เมษายน";
$month[5] = "พฤษภาคม";
$month[6] = "มิถุนายน";
$month[7] = "กรกฎาคม";
$month[8] = "สิงหาคม";
$month[9] = "กันยายน";
$month[10] = "ตุลาคม";
$month[11] = "พฤศจิกายน";
$month[12] = "ธันวาคม";
$file = "bots10.txt";
// อ่านค่าเวลาจาก Server และแสดงเวลา Server
$stdiff = 3600 * 0; // เปลี่ยนจาก 0 เป็น 7 ถ้า Server นอก (GMT) หรือเพิ่มลดได้ตามแต่ Time Zone อยู่ที่ได (GMT -12 ถึง GMT +13)
$stime = date("H:i:s",time()+$stdiff);
echo "เวลาที่เซอร์เวอร์ : ".$stime." น. ";
if(file_exists($file)) {
$fh = fopen($file, "r");
$s = filesize($file);
if($s == 0) {
$out = "บอทยังไม่ได้มาเก็บข้อมูล";
}else{
echo "บอท 10 ตัวล่าสุดที่เข้ามาเก็บข้อมูล คือ ";
// Read entries file into an array.
$text = file($file);
// How many entries we have.
$lines = count($text);
// เปลี่ยน เลข 5 เป็นเลขอื่น ถ้าต้องการให้แสดงมากกว่า 5 ตัว
for ($i=$lines-1;$i>=$lines-10;$i--)
{
$info = explode("|",$text[$i]);
$day = explode("/",$info[0]);
$m = number_format($day[1]);
$tm = explode(":",$info[1]);
$agent = $info[2];
$ip = $info[3];
$out = "".$agent." ( $ip) ";
if(date('d',time()) == $day[0]){
$out .= " วันนี้";
}else{
$out .=" เมื่อวันที่ ".$day[0]." ".$month[$m]." ". ($day[2]);
}
$out .= " เวลา ". $tm[0]. ".".$tm[1]." น. ";
echo $out;
}
}
fclose($fh);
}
?> |
ดาวน์โหลดแบบที่2 >>






|
- บอท Google (66.249.71.4) มา เมื่อวันที่ 22 พฤศจิกายน 2566 เวลา 20.40 น.- บอท Alexa search engine (54.162.155.109) มา เมื่อวันที่ 01 พฤศจิกายน 2563 เวลา 20.42 น.- บอท Hot Bot search (119.76.152.219) มา เมื่อวันที่ 31 พฤษภาคม 2562 เวลา 15.22 น.- บอท msnbot1.0 (40.77.167.86) มา เมื่อวันที่ 07 พฤษภาคม 2560 เวลา 16.20 น.- บอท Yahoo (202.239.5.115) มา เมื่อวันที่ 21 พฤศจิกายน 2561 เวลา 19.02 น.- บอท Yandex (213.180.203.200) มา เมื่อวันที่ 27 พฤศจิกายน 2566 เวลา 14.57 น. |
ดาวน์โหลดแบบที่3 >>






|
|
ล่าสุด |
^เนื่องจากบอทรุ่นนี้มีความยาวไปเรื่อยๆจึงใช้ภาพแทน^ |
ดาวน์โหลดแบบที่4>>






|
if (strstr($_SERVER['HTTP_USER_AGENT'], 'Yandex')){ $bot='Yandex';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Googlebot')){$bot='Google';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Mediapartners-Google')){$bot='Mediapartners-Google (Adsense)';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Slurp')){$bot='Hot Bot search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebCrawler')){$bot='WebCrawler search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ZyBorg')){$bot='Wisenut search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'scooter')){$bot='AltaVista';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'StackRambler')){$bot='Rambler';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Aport')){$bot='Aport';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'lycos')){$bot='Lycos';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebAlta')){$bot='WebAlta';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'yahoo')){$bot='Yahoo';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'msnbot')){$bot='msnbot1.0';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ia_archiver')){$bot='Alexa search engine';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'FAST')){$bot='AllTheWeb';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Teoma')){$bot='Ask';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Baiduspider')){$bot='Baidu';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Gigabot')){$bot='Gigabot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'AdsBot-Google')){$bot='Google-Adwords';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'gsa-crawler')){$bot='Google-SA';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Googlebot-Image')){$bot='Google-Image';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ia_archiver-web.archive.org')){$bot='InternetArchive';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'omgilibot')){$bot='Omgili';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Speedy Spider')){$bot='Speedy Spider';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Y!J')){$bot='Yahoo JP';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'link validator')){$bot='DeadLinksChecker';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator')){$bot='W3C Validator';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'W3C_CSS_Validator')){$bot='W3C CSSValidator';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'FeedValidator')){$bot='W3C FeedValidator';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'W3C-checklink')){$bot='W3C LinkChecker';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'W3C-mobileOK')){$bot='W3C mobileOK';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'P3P Validator')){$bot='W3C P3PValidator';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Bloglines')){$bot='Bloglines';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Feedburner')){$bot='Feedburner';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Snapbot')){$bot='SnapBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'psbot')){$bot='Picsearch';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Websnapr')){$bot='Websnapr';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'asterias')){$bot='Asterias';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], '192.comAgent')){$bot='192bot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ABACHOBot')){$bot='AbachoBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'abcdatos')){$bot='Abdcatos';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Acoon')){$bot='Acoon';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Accoona')){$bot='Accoona';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'BecomeBot')){$bot='BecomeBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'BlogRefsBot')){$bot='BlogRefsBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Daumoa')){$bot='Daumoa';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'DuckDuckBot')){$bot='DuckDuckBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Exabot')){$bot='Exabot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Furlbot')){$bot='Furl';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'FyberSpider')){$bot='FyperSpider';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'GeonaBot')){$bot='Geona';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Girafabot')){$bot='GirafaBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'GoSeeBot')){$bot='GoSeeBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ichiro')){$bot='Ichiro';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'LapozzBot')){$bot='LapozzBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WISENutbot')){$bot='Looksmart';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'MJ12bot/v2')){$bot='Majestic12';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'MLBot')){$bot='MLBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'msrbot')){$bot='MSRBOT';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSR-ISRCCrawler')){$bot='MSR-ISRCCrawler';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'NaverBot')){$bot='Naver';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Yeti')){$bot='Naver';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'noxtrumbot')){$bot='NoxTrumBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'OmniExplorer_Bot')){$bot='OmniExplorer';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'OnetSzukaj')){$bot='OnetSzukaj';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Scrubby')){$bot='ScrubTheWeb';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'SearchSight')){$bot='SearchSight';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Seeqpod')){$bot='Seeqpod';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ShablastBot')){$bot='Shablast';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'SitiDiBot')){$bot='SitiDiBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'silk/1.0')){$bot='Slider';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Sogou')){$bot='Sogou';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Sosospider')){$bot='Sosospider';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'SurveyBot')){$bot='SurveyBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Touche')){$bot='Touche';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'appie')){$bot='Walhello';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'wisponbot')){$bot='Wisponbot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'yacybot')){$bot='YacyBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'YodaoBot')){$bot='YodaoBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Charlotte')){$bot='Charlotte';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'DiscoBot')){$bot='DiscoBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'EnaBot')){$bot='EnaBot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Gaisbot')){$bot='Gaisbot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'kalooga')){$bot='Kalooga';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ScoutJet')){$bot='ScoutJet';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'TinEye')){$bot='TinEye';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'twiceler')){$bot='Twiceler';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'GSiteCrawler')){$bot='GSiteCrawler';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'HTTrack')){$bot='HTTrack';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Wget')){$bot='Wget';}
if($bot !=""){
$tdiff = 3600 * +07;
$file = "bots90.txt";
$day = date("d/m/Y",time() + $tdiff);
$time = date("H:i:s",time() + $tdiff);
$ip = $_SERVER['REMOTE_ADDR'];
$fh = fopen($file, "w");
fwrite($fh, "$day|$time|$bot|$ip");
fclose($fh);
}
$month[1] = "January";
$month[2] = "Febuary";
$month[3] = "March";
$month[4] = "April";
$month[5] = "May";
$month[6] = "June";
$month[7] = "July";
$month[8] = "August";
$month[9] = "September";
$month[10] = "October";
$month[11] = "November";
$month[12] = "December";
$file = "bots90.txt";
if(file_exists($file)) {
$fh = fopen($file, 'r+');
$s = filesize($file);
if($s == 0) {
$out = "No Bots";
}else{
$contents = fread($fh, $s);
fclose($fh);
$info = explode("|",$contents);
$day = explode("/",$info[0]);
$m = number_format($day[1]);
$tm = explode(":",$info[1]);
$agent = $info[2];
$ip = $info[3];
$out = "Bots Visited = ".$agent ." ($ip) ";
if(date('d',time()) == $day[0]){
$out .= " Today";
}else{
$out .="Day ".$day[0]." ".$month[$m]." ". ($day[2]+543);
}
$out .= " Time ". $tm[0]. ".".$tm[1]." s.";
}
echo $out;
}
?> |
ดาวน์โหลดแบบที่5 บอท90ตัว >>
|
if (strstr($_SERVER['HTTP_USER_AGENT'], 'Yandex')){ $bot='Yandex';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Googlebot')){$bot='Google';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Mediapartners-Google')){$bot='Mediapartners-Google (Adsense)';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Slurp')){$bot='Hot Bot';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebCrawler')){$bot='WebCrawler search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ZyBorg')){$bot='Wisenut search';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'scooter')){$bot='AltaVista';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'StackRambler')){$bot='Rambler';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Aport')){$bot='Aport';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'lycos')){$bot='Lycos';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebAlta')){$bot='WebAlta';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'yahoo')){$bot='Yahoo';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'msnbot')){$bot='MSN';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ia_archiver')){$bot='Alexa';}
else if (strstr($_SERVER['HTTP_USER_AGENT'], 'FAST')){$bot='AllTheWeb';}
if($bot !=""){
$tdiff = 3600 * 0; // เปลี่ยนจาก 0 เป็น 7 ถ้า Server นอก (GMT) หรือเพิ่มลดได้ตามแต่ Time Zone อยู่ที่ได (GMT -12 ถึง GMT +13)
$file = "bots.txt";
$day = date("d/m/Y",time() + $tdiff);
$time = date("H:i:s",time() + $tdiff);
$ip = $_SERVER['REMOTE_ADDR'];
$fh = fopen($file, "w");
fwrite($fh, "$day|$time|$bot|$ip");
fclose($fh);
}
$month[1] = "มกราคม";
$month[2] = "กุมภาพันธ์";
$month[3] = "มีนาคม";
$month[4] = "เมษายน";
$month[5] = "พฤษภาคม";
$month[6] = "มิถุยายน";
$month[7] = "กรกฎาคม";
$month[8] = "สิงหาคม";
$month[9] = "กันยายน";
$month[10] = "ตุลาคม";
$month[11] = "พฤศจิกายน";
$month[12] = "ธันวาคม";
$file = "bots.txt";
if(file_exists($file)) {
$fh = fopen($file, 'r+');
$s = filesize($file);
if($s == 0) {
$out = "บอทยังไม่ได้มาเก็บข้อมูล";
}else{
$contents = fread($fh, $s);
fclose($fh);
$info = explode("|",$contents);
$day = explode("/",$info[0]);
$m = number_format($day[1]);
$tm = explode(":",$info[1]);
$agent = $info[2];
$ip = $info[3];
$out = "บอทตัวล่าสุดที่เข้ามาเก็บข้อมูล คือ ".$agent ." ($ip) ";
if(date('d',time()) == $day[0]){
$out .= " วันนี้";
}else{
$out .=" เมื่อวันที่ ".$day[0]." ".$month[$m]." ". ($day[2]+543);
}
$out .= " เวลา ". $tm[0]. ".".$tm[1]." น.";
}
echo $out;
}
?> |
ดาวน์โหลดแบบที่6 แบบเดี่ยว >>
|