GlossaryHSTS – HTTP Strict Transport Security

April 25, 2024

Description

HTTP Strict Transport Security (HSTS) is an essential security mechanism designed to enforce secure HTTPS connections between web browsers and servers. In essence, HSTS instructs browsers to communicate with a site exclusively over HTTPS, reducing the risk of certain cyberattacks such as man-in-the-middle and SSL stripping. Understanding the basics of HSTS and its role in web security helps users better protect their online activities.

Recommended Actions

Enabling HSTS on web servers requires specific configuration steps tailored to your environment. Whether you use Apache, Nginx, IIS, or another platform, implementing HSTS usually involves adjusting server settings to include the appropriate HSTS directives. In addition, sites can further enhance security by submitting to the HSTS preload list to ensure browsers enforce HSTS for their domains by default.

Example:
HSTS

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

  • max-age=31536000: Specifies the number of seconds the browser should remember the HSTS policy. In this example, it’s one year (60 seconds × 60 minutes × 24 hours × 365 days).
  • includeSubDomains: Indicates that the HSTS policy also applies to all subdomains of the current domain.
  • preload: Signals that the site should be included in browsers’ HSTS preload list, meaning the policy is applied by default even for first-time visitors.
    This header ensures that all connections to the site and its subdomains use HTTPS for one year and that the site is eligible for the HSTS preload list for additional protection.
Contact

E-mail: office@checkfix.io

Phone: +43 660 77 24 524

secinto

secinto GmbH

Poststraße 3

8530 Deutschlandsberg

Austria

E-mail: office@checkfix.com

*Studie KPMG zur Cybersecurity in Österreich 2023