Skip to content

ChokeLive E29AHU

ChokeLive E29AHU

Enjoy HAM life. Experiment and Sharing

Support this website
by a small donation

  • Home
  • Satellite Telemetry
  • About Me

ส่ง email

แสดงสถานะการเยี่ยมชมของ google bot ล่าสุด

October 31, 2012 by chokelive

วันนี้ไปเจอ script น่าสนใจมาตัวหนึ่งครับ เป็น script เกียวกับการรายงานสถานะการเยี่ยมชมของ google bot ครั้งล่าสุด ซึ่ง script ตัวนี้จะทำให้เรารู้ว่า google bot เข้ามาเยี่ยมชมเว็บเราล่าสุดเมื่อไหร่ และยังสามารถส่งรายงานเข้าไปยัง email เราได้ด้วยครับ

พอดีไปเจอมาเป็น script สั้นๆ และดูน่าสนใจดีเลยเอามาแบ่งปันให้ดูกันครับ หรือถ้าใครอยากลองไปประยุกต์ใช้กับ bot ตัวอื่นๆ ก็น่าจะได้นะครับ โดยเปลี่ยนชื่อ bot ที่จะค้นหาเอาเองครับ

if(eregi(“googlebot”,$HTTP_USER_AGENT))
{
if ($QUERY_STRING != “”)
{$url = “http://”.$SERVER_NAME.$PHP_SELF.’?’.$QUERY_STRING;}
else
{$url = “http://”.$SERVER_NAME.$PHP_SELF;}
$today = date(“F j, Y, g:i a”);
mail(“you@youremail.com”, “Googlebot detected on http://$SERVER_NAME”, “$today – Google crawled $url”);
}

ที่มา : http://forums.seochat.com/google-optimization-7/googlebot-php-script-txt-log-285.html

Categories Make Money, SEO Tip, Software, Uncategorized Tags google, last visit, php script, ทำ seo, ส่ง email, เขียนโปรแกรม Leave a comment

ค้นหา

บทความล่าสุด

  • ขั้นตอนการขอ VUCC Satellite Award
  • VUCC Award กับการสะสม Grid ผ่านดาวเทียม
  • EME Earth-Moon-Earth SWL
  • CAS-5A Satellite
  • การเพิ่มหมายเลข call area ให้กับ callsign ใน LoTW
  • Pocke Keyer 2
  • SKCC Straight Key Sprint Asia (SKSA)
  • CW Standard Protocol version W6JIM
  • Basic CW QSO
  • Open Sleeve Dipole Antenna 15/10m
หมวดหมู่
  • Advance Computer (22)
  • Amateur Radio (36)
  • Diary (42)
  • Electronic (9)
  • Free Internet Service (17)
  • Hardware Gadget (28)
  • How does it work (9)
  • Listen Podcast (15)
  • Make Money (5)
  • Marathon (2)
  • New Technology (7)
  • Programing (14)
  • Raspberry Pi (3)
  • Robot (2)
  • SEO Tip (3)
  • Software (35)
  • Tutorial (29)
  • Uncategorized (166)
  • Watch Video (11)
  • ข่าวสารของ chokelive (16)
  • แนะนำเว็บไซต์ (17)
  • ไม่มีหมวดหมู่ (2)

© 2023 ChokeLive E29AHU • Built with GeneratePress