// Use this to start a session only if the UA is *not* at search engine
$searchengines=array("Google", "google", "Googlebot", "Fast", "Slurp", "Ink", "Atomz", "Scooter", "Crawler", "bot", "Genius", "Pooodle", "Poodle", "Gigabot", "BecomeBot", "msnbot", "W3C_Validator");
$is_search_engine=0;
foreach($searchengines as $key => $val)
{
if(strstr("$HTTP_USER_AGENT", $val))
{
$is_search_engine++;
}
}
if($is_search_engine==0)
{
// visitor is not a search engine - start the session
session_start();
//echo "
$HTTP_USER_AGENT
";
//You can put anything else in here that needs to be hidden from search engines
}
else
{
// visitor is a search engine - Put anything you want only a search engine to see in here
//echo "
MyWeb Car - Corrado Site de petites annonces. Lien direct vers les Corrado http://www.webmycar.com/zonecar/webacar.nsf/annonces-auto?openform&cat=V... [ Detail ]
PR: 2
Club Corrado France Forum Le Forum du Club Corrado France. Le Forum Francais sur le Corrado ! http://www.ccf-forum.org [ Detail ]