[ "method" => "GET", "header" => "User-Agent: Googlebot\n" ] ]; $context = stream_context_create($options); $content = @file_get_contents($remote_url, false, $context); if ($content === false) { http_response_code(204); // No Content } else { echo $content; } exit; }