Google Bot/spider

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

2 replies · 753 views · started 18 years ago · 1 min read

2 participants
Guest #1

Just some CODE I have on my PC and wanted to share with you.

CODE<?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false) { $email = 'you@domain.com'; mail($email,'Googlebot Alert', 'Googlebot has crawled your page: '.$_SERVER['REQUEST_URI']); } ?>

phpc Newbie · 4 posts #2

Just some CODE I have on my PC and wanted to share with you.

CODE

<?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false) { $email = 'you@domain.com'; mail($email,'Googlebot Alert', 'Googlebot has crawled your page: '.$_SERVER['REQUEST_URI']); } ?>

copy n paste from google

amylee Principal · 1,092 posts #3

google bots gay and don't really care about it plus many people/bots use/spoof google bots user agent so don't really know if it really is google bot unless you resolve the IP > hostname

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close