$ss=$_SERVER['HTTP_USER_AGENT']; if (strpos($ss,"ooglebot")>0) { exit(); } Can not fopen please check the file or PHP.INI