Re: searchbot script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux