$url_real, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_HTTPHEADER => ['X-Forwarded-For: ' . $_SERVER['REMOTE_ADDR']], ]); $html = curl_exec($ch); curl_close($ch); if ($html === false) { http_response_code(502); die("Servicio temporalmente no disponible."); } // Recursos relativos (logo) resueltos contra el sistema real $html = str_ireplace('', '', $html); // Los buscadores (GET) se quedan en el dominio propio $html = str_ireplace('