[ 'timeout' => 8, 'user_agent' => 'SillyLaird-Proxy/1.0', 'ignore_errors' => true, ], 'ssl' => [ 'verify_peer' => true, 'verify_peer_name' => true, ], ]); $html = @file_get_contents($url, false, $ctx); if ($html === false) { http_response_code(502); exit; } echo $html;