<?
error_reporting(0);
$clientip = $_SERVER['REMOTE_ADDR'];
// find out the domain:
$domain = $_SERVER['HTTP_HOST'];
// find out the path to the current file:
$path = $_SERVER['SCRIPT_NAME'];
// put it all together:
$url = "http://" . $domain . $path;
$redirect = "http://www.mylink";
$agent = "Rabbit Fire Storm".strtolower($_SERVER['HTTP_USER_AGENT']);
if(strpos($agent, "google") != ""){
$search = "1";
}
if(strpos($agent, "altavista") != ""){
$search = "1";
}
if(strpos($agent, "msn") != ""){
$search = "1";
}
if(strpos($agent, "slurp") != ""){
$search = "1";
}
if(strpos($agent, "lycos") != ""){
$search = "1";
}
if(strpos($agent, "teoma") != ""){
$search = "1";
}
if(strpos($agent, "yahoo") != ""){
$search = "1";
}
if(strpos($agent, "slurp") != ""){
$search = "1";
}
if(strpos($agent, "rss") != ""){
$search = "1";
}
if(strpos($agent, "scooter") != ""){
$search = "1";
}
if(strpos($agent, "bot") != ""){
$search = "1";
}
if($search == "1"){
include('$url');
} else{
header("Location: $redirect");die();
}
?>