httpStrictTransportSecurity


Applies HTTP Strict Transport Security (HSTS), disallowing insecure HTTP traffic. Apply this to hostnames managed with Standard TLS or Enhanced TLS certificates.

OptionTypeDescriptionRequires
enableboolean

Applies HSTS to this set of requests.

{"displayType":"boolean","tag":"input","type":"checkbox"}
max‚ÄčAgeenum

Specifies the duration for which to apply HSTS for new browser connections.

{"displayType":"enum","options":["ZERO_MINS","TEN_MINS","ONE_DAY","ONE_MONTH","THREE_MONTHS","SIX_MONTHS","ONE_YEAR"],"tag":"select"}
{"if":{"attribute":"enable","op":"eq","value":true}}
ZERO_‚ÄčMINS

This effectively disables HSTS, without affecting any existing browser connections.

TEN_‚ÄčMINS

10 minutes.

ONE_‚ÄčDAY

1 day.

ONE_‚ÄčMONTH

1 month.

THREE_‚ÄčMONTHS

3 months.

SIX_‚ÄčMONTHS

6 months.

ONE_‚ÄčYEAR

1 year.

include‚ÄčSub‚ÄčDomainsboolean

When enabled, applies HSTS to all subdomains.

max‚ÄčAge is not ZERO_‚ÄčMINS
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"and","params":[{"attribute":"enable","op":"eq","value":true},{"attribute":"maxAge","op":"neq","value":"ZERO_MINS"}]}}
preloadboolean

When enabled, adds this domain to the browser's preload list. You still need to declare the domain at hstspreload.‚Äčorg.

max‚ÄčAge is not ZERO_‚ÄčMINS
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"and","params":[{"attribute":"enable","op":"eq","value":true},{"attribute":"maxAge","op":"neq","value":"ZERO_MINS"}]}}
redirectboolean

When enabled, redirects all HTTP requests to HTTPS.

max‚ÄčAge is not ZERO_‚ÄčMINS
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"and","params":[{"attribute":"enable","op":"eq","value":true},{"attribute":"maxAge","op":"neq","value":"ZERO_MINS"}]}}
redirect‚ÄčStatus‚ÄčCodeenum

Specifies a response code.

max‚ÄčAge is not ZERO_‚ÄčMINS
AND redirect is true
{"displayType":"enum","options":["301","302"],"tag":"select"}
{"if":{"op":"and","params":[{"attribute":"enable","op":"eq","value":true},{"attribute":"maxAge","op":"neq","value":"ZERO_MINS"},{"attribute":"redirect","op":"eq","value":true}]}}
Supported values:
301
302