HTTPS-only mode

term

securityweb dev

Kept in this browser · My desk

A browser setting that tries HTTPS for every site and warns before loading a site over plain HTTP: Firefox's HTTPS-Only Mode (November 2020) and Chrome's 'Always Use Secure Connections' (2022).

It attacks the problem SSL stripping exploits, the plaintext first request, for every site rather than only those with HSTS. Google announced on 28 October 2025 that Chrome would enable the public-sites variant by default with version 154, saying many plaintext connections are invisible because HTTP sites immediately redirect to HTTPS. HSTS still takes precedence: it forbids any fallback, while HTTPS-first modes warn and then allow plaintext.

What it is. Mozilla introduced HTTPS-Only Mode in Firefox 83, first offered on 17 November 2020: 'When enabled, this new mode ensures that every connection Firefox makes to the web is secure and alerts you when a secure connection is not available'. Google launched Chrome's 'Always Use Secure Connections' in 2022 as an opt-in, in which, in its words, 'Chrome attempts every connection over HTTPS, and shows a bypassable warning to the user if HTTPS is unavailable'.

Why browsers moved. The Chrome Security Team's post 'HTTPS by default' (28 October 2025) argues from the attacker's side: 'attackers only need a single insecure navigation', and 'many plaintext HTTP connections today are entirely invisible to users, as HTTP sites may immediately redirect to HTTPS sites', which gives users 'no opportunity to see Chrome's Not Secure URL bar warnings'. That is the exact step SSL stripping attacks. Google's figures: HTTPS page loads in Chrome rose from 'around 30-45% in 2015' to 'the 95-99% range'; excluding private addresses (local IPs, single-label names, intranet shortlinks), Linux rose from 84% to nearly 97%, Windows from 95% to 98%, Android and Mac above 99%.

The plan and its status. Google said Chrome 147 (April 2026) would enable the public-sites variant for users of Enhanced Safe Browsing, and Chrome 154, 'in October 2026', for everyone, with warnings limited to new or not recently visited public sites; an experiment in Chrome 141 found the median user saw fewer than one warning a week. Chromium's guidance for site owners still described the change, when read on 23 November 2026, as one Chrome 'will start' in version 154; ChromiumDash lists Chrome 154's stable date as 22 September 2026. Whether the default shipped as announced was not established by the sources read.

How it relates to HSTS and the rest. Chromium's guidance: 'if a site has HSTS configured, Chrome does not try to fall back to HTTP', and 'HSTS takes precedence over Chrome's automatic HTTPS upgrades and Ask-before-HTTP warnings'. HTTPS records in DNS can also signal upgrades; Chrome has upgraded passive mixed content since Chrome 86 (2020). The W3C's upgrade-insecure-requests directive fixes a page's own subresources and explicitly does not replace HSTS. hstspreload.org draws the consequence for preloading: since browsers now upgrade navigations themselves, preloading 'only provides value when these upgrades fail in the presence of an active attacker', which is precisely the stripping case.

In practice and what goes wrong. Enterprises can allow HTTP for named hosts with the HttpAllowlist policy and enforce the setting with HttpsOnlyMode. The modes change stripping from silent to visible: a browser that tries HTTPS first never sends the plaintext request a stripping proxy needs, unless the attacker also blocks HTTPS, and then the user sees a warning; but the warning can be clicked through, so an HSTS site remains better protected. Private-network devices (routers, printers) without certificates are the main source of remaining warnings.

Why the default covers public sites only. Google's post explains the variant it chose: the largest remaining source of HTTP is 'insecure navigations to private sites' such as local IP addresses, single-label hostnames and intranet shortlinks, for which certificates are hard to get because 'private names are non-unique' and 'There is no single owner of 192.168.0.1 for a certification authority to validate'. Such navigations 'can only be abused by an attacker also on your local network', so the public-sites variant warns on public HTTP and spares private names, while a strict mode, enforceable by enterprise policy, warns on both. In all variants, a site the user visits regularly is not warned about again, which keeps the warning rate low but also means a plaintext site that a user habitually visits is never flagged.

Neighbours. HSTS and the preload list, SSL stripping, the HTTPS DNS record, upgrade-insecure-requests and mixed content, and TLS certificate validation.

Also known as: https-first mode, always use secure connections, https by default, ask-before-http, modo somente https

← Back to H Back to the glossary