if ( isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/^(curl|wget)/i', $_SERVER['HTTP_USER_AGENT']) ) { echo $_SERVER['REMOTE_ADDR']; die(); } ?>