You are here: Re: [PHP] searchbot script « PHP « IT news, forums, messages
Re: [PHP] searchbot script

Posted by Marco Tabini on 07/17/05 18:11

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация