Cloudflare Opportunistic Encryption: A Guide for Website Owners
Cloudflare Opportunistic Encryption adds TLS protection to HTTP requests, but it does not replace HTTPS. Learn when to enable it.
Facts that can change should include a source and check date. Benchmark claims should state the plan, region, method, and test period.
If your Cloudflare-managed website still receives HTTP requests and you want those requests to use an encrypted TLS channel, Cloudflare’s Opportunistic Encryption setting is the relevant option. Cloudflare says it adds protection to otherwise vulnerable HTTP requests without requiring origin-server configuration. It is not a replacement for HTTPS: use HTTPS when you need an authenticated connection and the browser’s normal secure-connection signals.
What Opportunistic Encryption provides#
Cloudflare describes Opportunistic Encryption as a way for browsers to access HTTP URLs over an encrypted TLS channel. This adds encrypted transport to HTTP requests, but it does not provide HTTPS’s usual browser security indicators. Cloudflare’s broader SSL/TLS documentation explains that TLS certificates help protect web traffic from eavesdropping and tampering.
Cloudflare presents the setting as additional protection, not as a guarantee that an HTTP connection has the same authentication properties as HTTPS. If visitors must be able to verify a secure connection, use HTTPS instead.
When to use HTTPS#
Cloudflare recommends HTTPS when strong encryption and authentication are required. Choose HTTPS for connections that need the browser’s standard secure-connection indicators or where visitors must have a clearly authenticated secure session.
Opportunistic Encryption can be useful when the immediate goal is to add encrypted transport to HTTP requests handled through Cloudflare. It should not be treated as sufficient merely because traffic is encrypted.
How to enable it in Cloudflare#
For a Cloudflare-managed website, Cloudflare documents this dashboard path:
- Open the Cloudflare dashboard.
- Select Edge Certificates.
- Find Opportunistic Encryption.
- Set it to On.
Cloudflare says this setting does not require changes to the origin server. Cloudflare also documents rules for applying Opportunistic Encryption to specific hostnames, so review those rules if the setting should apply only to selected hostnames.
Consider both parts of the connection#
Cloudflare’s SSL/TLS documentation distinguishes traffic between visitors and Cloudflare from traffic between Cloudflare and the origin server. These are separate parts of Cloudflare’s architecture and should be reviewed separately when checking a site’s TLS configuration.
The documented no-origin-configuration requirement applies to Cloudflare’s Opportunistic Encryption setting. It should not be generalized to other hosting providers or to every possible edge-to-origin configuration.
Sources
- Cloudflare: Opportunistic Encryption Checked 2026-11-08
- Cloudflare SSL/TLS documentation Checked 2026-11-08