Preparing for system design interviews?  Try bugzed.com →

Express HTTPS Redirect Middleware

JSON →
library 1.0.0 ·javascript abandoned
verified Jun 17, 2026

express-force-https is an Express.js middleware designed to automatically redirect all incoming HTTP requests to their HTTPS equivalent. First published over a decade ago, its current (and only) stable version is 1.0.0. The middleware specifically checks if a request is already secure; if not, it issues a redirect. A key feature is its built-in exemption for `localhost` requests, preventing redirects during local development. Due to its age and lack of updates, it is considered abandoned and may not be suitable for modern Express applications, especially those deployed behind reverse proxies or load balancers which require specific `X-Forwarded-Proto` header handling. Alternative, more actively maintained solutions are generally recommended for production environments.

total hits 26
actors 6 distinct systems
last hit 18d ago Bingbot
ByteDance
7
GPTBot
4
Amazonbot
4
Script
1
Search engines
1
Humans
5

top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇨🇦 Canada · MY