Skip to main content

Why HTTPS matters even with nothing to hide

4 min read

Summary: HTTPS protects more than passwords and credit cards. It prevents censorship by making it impossible to selectively block content without blocking an entire site.

Table of contents

You’re probably already familiar with technologies like SSL and TLS. They’re the little green icon in the top left corner of your browser anytime you visit a site with a URL that begins with https://. They’re most often used to secure sensitive web requests, like checking your bank account balance or purchasing stuff online. HTTPS encrypts the connection between your computer and the server you’re talking to so that nobody can jump in the middle and muck things up.1

Traditionally, the arguments in favor of HTTPS have been for integrity, privacy, and identity. If a message is encrypted by a server before it’s sent to your computer, and it’s done in such a way that only you can decrypt it, you can have a high level of confidence that the message you receive is the message the server sent (integrity), and that you’re the only one who opened it (privacy). Further still, because of the initial handshake that makes all this possible, you know that the server you’re talking to is the one you want to talk to, and not someone else pretending to be the server (identity). Without HTTPS, there are a couple of points in the route each request must take that could allow a third party to intercept, or worse, modify your request or its response as it travels over the open internet.

Censorship is the bigger argument for HTTPS

Like most people, I suspect, I used to think HTTPS was only for requests that needed to be secure. After all, that’s what the “S” in HTTPS stands for. But with GitHub being blocked in India, I realized there’s another, much broader argument in favor of HTTPS everywhere: censorship.

Whether a corporate firewall or a country-wide block, intercepting and screening an HTTPS-backed site becomes much harder. While an ISP or employer could easily stand up a proxy or other firewall to inspect and filter incoming traffic for objectionable content, if that traffic is encrypted, the only datapoint exposed to third parties is the requested domain, not what content you’re requesting from the server.2

Censors have to block the whole site

Typically, when you make a request to a site, the first step is to convert the human-readable domain name (for example, example.com) to a computer-readable IP address (for example, 93.184.216.34) by querying your internet provider’s domain server. Think of it like checking the yellow pages for a company’s phone number. But if you’re the internet provider, there’s no reason you can’t instruct your domain server to return no IP address, making it look like the requested domain doesn’t exist, or worse, to return a malicious site in its place.

To block a particular piece of content on a site using HTTPS, say a blog post on WordPress.com, your only choice is to poison the DNS entry to block the entire site, as there’s no way to know if the user’s request is for objectionable or innocuous content. This forces a baby-with-the-bathwater choice and is exactly how most internet censorship is implemented today, at least on the state level.3

You’ve probably seen the now-famous Google DNS graffiti when Turkey banned Twitter. If you point your computer at a public DNS server instead of your internet service provider’s, the domain lookup (the weak link in the request) goes to a third party beyond the state’s control, and the site becomes accessible again.4

HTTPS belongs on every public site

HTTPS protects not only the content you request but also the fact that you requested it. HTTPS isn’t just for online banking and e-commerce. HTTPS is for any site that adds to the public dialog, whether it’s political commentary, how to contact a government official, or just a personal blog.5 If you run a site, especially a government site, even if you never process “sensitive” requests, consider adding HTTPS support and enforcing HTTPS by default.

Ironically, HTTPS is about more than keeping things hidden. It’s about keeping things seen.

Footnotes

Footnotes 5
  1. See, for example, Comcast injecting ads, Verizon tracking mobile customers, and spy agencies scraping Angry Birds for personal data. ↩︎

  2. For example, without HTTPS, an eavesdropper would see that you were reading ben.balter.com/2015/01/06/https-all-the-things/. With HTTPS, all they’d see is that you made an encrypted request to ben.balter.com. ↩︎

  3. Sure, a country should have the right to enforce its own social norms, but when such technical implementations are often overinclusive and trivial to bypass by even non-technical users switching protocols, DNS servers, or routing traffic through a proxy or VPN, such ends may be better accomplished by more narrowly tailored, non-technical means. ↩︎

  4. While it’s possible to block external DNS entirely, or to block certain IPs, this is exponentially more complex for for-profit, privately owned ISPs to implement, quickly becomes a game of whack-a-mole, and will almost undoubtedly be over inclusive, especially where CDNs or shared hosting is involved. ↩︎

  5. Yeah, yeah, yeah, I know. ↩︎

Keep reading

Ben Balter

I'm Ben Balter, and I write here about developer platforms, product and engineering leadership, open source, and showing your work. I'm a principal product manager for API (developer) experience at Cloudflare, where I work on making it an even better place to build, for developers and their agents. Before that, I spent over a decade building developer platforms at GitHub. For five years I was a product manager for trust and safety, shipping 500+ features and policies to 50M+ developers, plus github.com API endpoints for trust and safety workflows. I also led a bottom-up rewrite of GitHub Pages, maintained Jekyll, and wrote the plugins most GitHub Pages sites run on. My open source projects have hundreds of millions of downloads. I wrote Open and Async, the playbook for remote and distributed teams. More about the author

Follow along: Bluesky LinkedIn

Originally published January 6, 2015 View revision history

This page is open source Help improve this article on GitHub

Keyboard shortcuts

Search

  • / or ⌘ K Open search
  • ↓ or j ↑ or k Move through results
  • Enter Open the selected result
  • Esc Close search

Go to

  • g then h Home
  • g then p All posts

This page

  • y Copy link to this page
  • ? Show this list

Turn off if you use voice control or keep triggering them by accident. ⌘ K still opens search, and this list stays under "Keyboard shortcuts" in the footer.