Home > Backend Development > PHP Tutorial > PHP method to obtain Google robot access footprints, google robot_PHP tutorial

PHP method to obtain Google robot access footprints, google robot_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 09:57:07
Original
1030 people have browsed it

How to get Google robot’s access footprint in php, google robot

This article describes the method of php’s getting Google robot’s access footprint. Share it with everyone for your reference. The details are as follows:

<&#63;php
$email = "test@test.com";
if(eregi("googlebot",$HTTP_USER_AGENT))
{
 if ($QUERY_STRING != "")
 {
  $url = "http://".$SERVER_NAME.$PHP_SELF.'&#63;'.$QUERY_STRING;
 } else {
  $url = "http://".$SERVER_NAME.$PHP_SELF;
 }
 $date = date("F j, Y, g:i a");
 mail($email,"[Googlebot] $url","$date - Google crawled $url");
}
&#63;>
Copy after login

I hope this article will be helpful to everyone’s PHP programming design.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/984625.htmlTechArticleHow to get the Google robot’s access footprint in php, google robot. This article describes the method of php to get the Google robot’s access footprint. Share it with everyone for your reference. The details are as follows:...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template