Picto thématique

Rule n° 194 - Pages using HTTPS have a strict transport header.

According to Wikipedia, which we refuse to paraphrase here : "HTTP Strict Transport Security (HSTS) is a security policy mechanism proposed for HTTP, allowing a web server to declare to a compatible user agent (such as a web browser) that it must interact with it using a secure connection (such as HTTPS)". In short, this means that your server is configured to communicate with the user only in an encrypted manner. This is therefore an extra level of security compared to using HTTPS. Not only does the server talk in HTTPS, but it refuses to talk in any other way.

#Basics #Development #Security

Goal

  • Improve exchange security.
  • Preventing the risk of attacks.

Implementation

Use the HTTP Strict Transport Security header and its max-age parameter on each page to specify that the browser must convert all HTTP requests into HTTPS requests.

Control

Check that for each page the server sends the HTTP Strict Transport Security header with the max-age parameter specifying the duration during which the browser must convert all HTTP requests into HTTPS requests

By Opquast - Read the license


Discover Opquast training and certification

The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.

Opquast training has already allowed over 19,000 web professionals to have their skills certified. Train your teams, contact us

We offer a 1 hour free discovery module.