Re: searchbot script
| From: | Marco Tabini | Date: | Sun, 17 Jul 2005 15:11:34 +0000 |
| Subject: | Re: searchbot script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218833@lists.php.net to get a copy of this message | ||
You can--you need to check the signature of the visiting client and
determine whether it is a spider (for example, Google indexers are called
"googlebot"s). This is in $_SERVER['HTTP_USER_AGENT']. Here's a thread on
the subject:
http://news.php.net/php.general/217460
You can also use the browscap-related functionality to extract more
information from the user-agent string, although this is not always 100%
reliable:
http://ca.php.net/get-browser
Remember, however, that most search engines shun this practice and may drop
your site from their indices if you adopt it.
Marco
On 7/17/05 10:55 AM, "jenny mathew" <jennymat@gmail.com> wrote:
> hello group,
> is it possible to make write a program in php ,so that only search bots can
> see the output of that program.i mean to say that a program echoes a line at
> the footer which only search bots can see,it will be invisible to general
> visitors.