Thursday, October 22, 2026

Cloudflare Shifts to HTTPS-Only for APIs, Closing All HTTP Ports

Cloudflare has announced that it will shift its APIs to HTTPS-only connections, effectively closing all HTTP ports.

This strategic decision aims to protect sensitive data from being intercepted by unauthorized parties during transmission.

The change marks a crucial step forward in the company’s mission to safeguard users’ privacy and ensure the integrity of online communications.

Understanding the Risk of Cleartext HTTP

Cleartext HTTP poses a significant risk because it transmits data unencrypted, making it vulnerable to eavesdropping by network intermediaries such as ISPs, Wi-Fi hotspot providers, or malicious actors on shared networks.

Even if a server redirects HTTP requests to HTTPS, sensitive information such as API tokens might already have been transmitted in plaintext, exposing it to potential interception.

Initial plaintext HTTP request is exposed to the network before the server can redirect to the secure HTTPS connection.( source: cloudflare)
Initial plaintext HTTP request is exposed to the network before the server can redirect to the secure HTTPS connection.( source: cloudflare)

For instance, imagine a client making an initial HTTP request to access Cloudflare’s API. If this request includes a secret API key, the key could be exposed before the server has a chance to redirect or reject the request.

This highlights the need for a more proactive approach to security, one that prevents such exposures altogether.

Cloudflare’s Solution: Closing HTTP Ports

To address this risk, Cloudflare is taking a preventive approach by closing all HTTP ports used for plaintext communication on its API endpoint, api.cloudflare.com.

This means that any attempt to connect via HTTP will be rejected at the network level before any application-layer data is exchanged. By doing so, Cloudflare eliminates the window of opportunity for sensitive data to be exposed.

This change is not limited to just protecting sensitive client data; it also simplifies operational security. Without the need to continuously monitor and rotate compromised credentials, the overall security posture becomes more robust and efficient.

Challenges and Implementation

Implementing this change on a global scale required careful planning. Cloudflare faced two significant challenges: Firstly, there are still a considerable number of devices and software that rely on plaintext HTTP connections.

The transport layer carries the application layer data on top.
The transport layer carries the application layer data on top.( source: cloudflare)

Closing all HTTP ports entirely could disrupt services for these clients. Secondly, traditional socket management posed scalability issues, particularly when dealing with multiple IP addresses.

Cloudflare addressed these challenges using tools like Tubular, which allows flexible and efficient management of network endpoints.

Tubular’s ability to decouple sockets from specific IP addresses enabled Cloudflare to effectively manage traffic across its vast network without the historical limitations posed by the BSD Sockets API.

The company also leveraged Topaz to dynamically assign IP addresses for HTTPS-only interfaces, ensuring that API traffic was routed correctly.

Both TCP and QUIC transport layer handshakes are a pre-requisite for HTTPS application data exchange on the web.
Both TCP and QUIC transport layer handshakes are a pre-requisite for HTTPS application data exchange on the web.( source: cloudflare)

A new DNS policy was implemented to ensure that only secure IP addresses are returned for API-related queries, further reinforcing the HTTPS-only approach.

By moving to an HTTPS-only model for its APIs and closing all HTTP ports, Cloudflare is setting a strong precedent for securing online communications.

This proactive approach not only enhances security but also simplifies operations by reducing the need for continuous credential rotation.

As the Internet continues to evolve, such measures will become increasingly essential in protecting user privacy and ensuring the integrity of digital interactions.

Cloudflare’s initiative is a step towards a safer Internet, where security is not an added cost but a fundamental aspect of every online interaction.

With its commitment to providing free security features, Cloudflare aims to make a better Internet accessible to everyone.

Investigate Real-World Malicious Links & Phishing Attacks With Threat Intelligence Lookup - Try for Free

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Fortinet Releases Critical Security Updates for FortiOS, FortiManager, and FortiAnalyzer

Fortinet has announced coordinated security hardening updates for FortiOS,...

Samsung and Vizio Smart TVs Continue Sending Viewing Data Even After Users Opt Out

Samsung and Vizio smart TVs continued sending traffic consistent...

Hackers Used AI-Generated Scripts to Break Into Government Linux Servers and Hunt for Secrets

Hackers used apparently AI-generated scripts to compromise government Linux...

Hackers Use Fake App Updates to Replace Legitimate Banking Apps With Malicious Versions

Hirudo, an Android banking remote-access trojan (RAT) that can...

12 DevSecOps Platforms: The 2026 Buyer’s Verdict Guide

DevSecOps platforms sell one promise in several architectures: security...

Attackers Target Flowise AI Agents With Credential Theft, Prompt Injection and Workflow Hijacking

An attacker used an exposed Flowise AI orchestration server...

Hackers Exploit Siemens Software Center Vulnerability to Execute Malicious Code

Siemens has confirmed that the CVE-2026-110936 vulnerability, a DLL...

North Korean Hackers Use Post-Quantum Encryption to Conceal Malware in New Cyberespionage Campaign

North Korea-linked Lazarus Group used post-quantum cryptography in a...

Related Articles

Recent News