so something like this
if (!strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot'))
{
if(!isset($_COOKIE['cookiead']))
{
$refer = $_SERVER['REQUEST_URI'];
setcookie("cookiead",1, time()+86400, "/" , $host);
setcookie("refer",$refer, time()+3600, "/" , $host);
Header("Location: http://" . $host . "/cookieadd.php");
}
}
or should i go with this
if (strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Mozilla'))
{
if(!isset($_COOKIE['cookiead']))
{
$refer = $_SERVER['REQUEST_URI'];
setcookie("cookiead",1, time()+86400, "/" , $host);
setcookie("refer",$refer, time()+3600, "/" , $host);
Header("Location: http://" . $host . "/cookieadd.php");
}
}
if i choose to enter the searchengines in how would i do that in an array?
EDIT:
ok i tried mozilla and it doesnt work but search engine one (top does so i guess i just need to know how to place a list of the search engines in an array)