WebHostServer.com (tm)

 
Making web hosting work for your business
 A FineE (tm) Web Property


Visit FineE.com with over 250 premium domains for sale
 

   

 Home    Domain News    Resources    Trademark Search    Webmaster Forums    Articles    About Us

 
     
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Web Hosting
Directory

 

 

Web Hosts
(ap-gl
)

Web Hosts
(hn-mi
)
Web Hosts
(my-y
a)
Web Hosts
(yo-zo
)
 
  Dedicated
Servers (ap-we)
Dedicated
Servers (yo-yo)
 
  DNS Hosting
 
  Email Hosting
 
  Free Hosting
 
  Shared
Hosting (ap-ho)
Shared
Hosting (in-po)
Shared
Hosting (st-yo)
 
  Server
Co-Location
 
  Unlimited Domain
Hosting Plans
and Virtual
Private Servers

 

  Microsoft
Windows
Hosting
 
  Web Hosting
Directories
 

Webmaster
Forums Directory

 
  Forums Home
Webmaster
Forums (ak-in)
Webmaster
Forums (ji-we)
Webmaster
Forums (we-we)
Domain Forums
 

 

 
 
 
 

 

Tracking Google and Googlebot Using PHP
by Mitch Keeler

No one alive can deny the force of Google and how powerful it has become in the Web design and Web hosting business. Many people work for hours and hours, days and days to make sure the Web site they have is ready for Google and it's Googlebot whenever it might come for a visit.

The problem most folks run into though is how do you know it is there? Some forum and blogging scripts come with better ways to track bots as they comb through your pages. What about everyone else though? Well this is where these scripts come in. All you need is to be able to parse PHP through your Web site and you too can track the Googlebot even better.

I am not totally sure who wrote these PHP scripts up first, but I have not seen it talked about many places at all. Hopefully this will a handy tool for you to use

Easy Version

With this version of the script you need to replace the "yourdomainname.com" with your own domain name and replace "you@youremail.com" with your E-mail address.

<?
if(eregi("googlebot",$HTTP_USER_AGENT))
{
mail("you@youremail.com", "Googlebot detected on yourdomainname.com", "Google has crawled yourdomainname.com");
}
?>

Expert Version

This version is a little more advanced. Here all you need to do is replace "you@youremail.com" with your E-mail address. The script will do the rest of the work. It will let you know which page date and time it was crawled as well.

<?
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");
}
?>

Hopefully this will be of some use to people working on their Web sites who want to keep a better eye on where the Googlebot is looking at.

 

About The Author

Mitch Keeler is a guy who likes to help people out in his own charismatic and odd way. Instead of showing somebody how to do something, he much more enjoys having people see the problem and the solution through his own eyes. Mitch has worked as an article and content writer for various Web sites around the globe.

Mitch Keeler is also a former Customer Service Director and Customer Service Manager for a large Web hosting company. Please feel free to contact Mitch or look over his impressive resume of accomplishments

www.mitchkeeler.com

Articles by Mitch Keeler

 

 

 

 

     
 

 

 

 

 

 
 

 

Webmaster
Articles

 
  Articles Home
Author Directory
Articles by Title
(00-20)
Articles by Title
(21-a)
Articles by Title
(b-c)
Articles by Title
(d-f)
Articles by Title
(g-howm)
Articles by Title
(hown-in)
Articles by Title
(io-l)
Articles by Title
(m-r)
Articles by Title
(s-theh)
Articles by Title
(thei-u)
Articles by Title
(v-webs)
Articles by Title
(webt-z)
 
 

Home  Link to Us  Legal  Privacy  Contact Us  About Us
Copyright ©  2003 - 2006 Aspen Investments Inc. Articles included in this site are Copyright © by
 the respective authors and used with permission.  All rights reserved