Thursday, April 24, 2025
HomeCloudflareCloudflare Shifts to HTTPS-Only for APIs, Closing All HTTP Ports

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

Published on

SIEM as a Service

Follow Us on Google News

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.

- Advertisement - Google News

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.

Latest articles

Blue Shield Exposed Health Data of 4.7 Million via Google Ads

Blue Shield of California has disclosed a significant data privacy incident affecting up to...

Microsoft Offers $30,000 Bounties for AI Security Flaws

Microsoft has launched a new bounty program that offers up to $30,000 to security...

The Human Firewall: Strengthening Your Weakest Security Link

Despite billions spent annually on cybersecurity technology, organizations continue to experience breaches with alarming...

WhatsApp Launches Advanced Privacy Tool to Secure Private Chats

WhatsApp, the world’s leading messaging platform, has unveiled a major privacy upgrade called "Advanced...

Resilience at Scale

Why Application Security is Non-Negotiable

The resilience of your digital infrastructure directly impacts your ability to scale. And yet, application security remains a critical weak link for most organizations.

Application Security is no longer just a defensive play—it’s the cornerstone of cyber resilience and sustainable growth. In this webinar, Karthik Krishnamoorthy (CTO of Indusface) and Phani Deepak Akella (VP of Marketing – Indusface), will share how AI-powered application security can help organizations build resilience by

Discussion points


Protecting at internet scale using AI and behavioral-based DDoS & bot mitigation.
Autonomously discovering external assets and remediating vulnerabilities within 72 hours, enabling secure, confident scaling.
Ensuring 100% application availability through platforms architected for failure resilience.
Eliminating silos with real-time correlation between attack surface and active threats for rapid, accurate mitigation

More like this

Blue Shield Exposed Health Data of 4.7 Million via Google Ads

Blue Shield of California has disclosed a significant data privacy incident affecting up to...

Microsoft Offers $30,000 Bounties for AI Security Flaws

Microsoft has launched a new bounty program that offers up to $30,000 to security...

The Human Firewall: Strengthening Your Weakest Security Link

Despite billions spent annually on cybersecurity technology, organizations continue to experience breaches with alarming...