{
  "id": 21906135,
  "title": "Why you should not stay on http:// (HSTS and always-on HTTPS)",
  "url": "https://urgent.news/2026/11/26/why-you-should-not-stay-on-http-hsts-and-always-on-https",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-26T01:59:07.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/masahirokurokawa/why-you-should-not-stay-on-http-hsts-and-always-on-https-5e74"
  },
  "original_language": "en",
  "account": "When a browser displays \"Not secure\" in the address bar, it indicates the site you're visiting is using the less secure http protocol. To enhance security, there are three steps to follow: serve the site over HTTPS, redirect any http requests to https, and implement HSTS (HTTP Strict Transport Security). HTTPS encrypts data, making it unreadable during transit, unlike http which sends data in plain sight. HSTS instructs browsers to only use HTTPS for a specified period, even if an http link is followed. This protects against unencrypted data being intercepted. HSTS only works if HTTPS is used initially, hence the redirect is crucial. To ensure always-on HTTPS, first set up a redirect from http to https, then apply HSTS. The order is important; without the redirect, following an http link will still go through the insecure entrance. HSTS can be added to your server's response headers, and some services like Cloudflare, Netlify, and Vercel have settings to enable it automatically. Testing is essential to ensure everything works correctly and that subdomains are also secured. Regular checks using tools like vuln can help maintain this security.",
  "summary": "Has your browser ever said \"Not secure\" in the address bar? If it says that when you open the site you published, the front door has no lock on it. The short version: there are three things to do. Serve the site over HTTPS. Send anyone who arrives on http:// to https://. Send HSTS. Only when all three are in place do you have always-on HTTPS. The difference between http and https Think of a…",
  "key_points": [
    "Serve site over HTTPS to enhance security.",
    "Implement HSTS to enforce HTTPS use.",
    "Redirect http to https for always-on HTTPS."
  ],
  "editors_take": "Implementing redirects alongside HSTS transforms web security by forcing browsers into encrypted connections, effectively closing the vulnerability window that allows unencrypted data to be intercepted during transit.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}