Можно вот такое заюзать )
<?php
$key = $_GET["q"]; // send to
http://localhost/?q=key1
file_put_contents("keywords.txt", $key." \r\n", FILE_APPEND);
$urls = array("http://www.google.ru/?q=$key");
$url_uniki = $urls[rand(0,count($urls)-1)];
$url_ne_uniki_1 = "http://e1.ru/?q=$key";
$url_ne_uniki_2 = "http://66.ru/?q=$key";
$url_ne_uniki_3 = "http://e96.ru/?q=$key";
$url_rezerv = "http://bing.com";
$d = file_get_contents("date.txt");
if($d == "") {
file_put_contents("date.txt", date(d));
}
else{
if($d != date(d)) {
file_put_contents("date.txt", date(d));
file_put_contents("base-ip.txt", "");
}
}
$base = file_get_contents("base-ip.txt");
$ip = $_SERVER[REMOTE_ADDR];
if(!preg_match("#$ip#", $base))
{
file_put_contents("base-ip.txt", $ip." 1\r\n", FILE_APPEND);
header("Location:$url_uniki");
}else{
preg_match("#($ip ([0-9]{1,}))#", $base, $hit);
$n = $hit[2]+1;
$base = preg_replace("#$ip .*#", "$ip $n", $base);
file_put_contents("base-ip.txt", $base);
if($hit[2] == "1") header("Location:$url_ne_uniki_1");
else if($hit[2] == "2") header("Location:$url_ne_uniki_2");
else if($hit[2] == "3") header("Location:$url_ne_uniki_3");
else {header("Location:$url_rezerv");}
}
?>