How to use it
Build and check a Strict-Transport-Security header, with preload requirements and nginx or Apache snippets. Set the HSTS lifetime and optional subdomain or preload flags, then review the header.
Example
Input: max-age=31536000; includeSubDomains
Output: Strict-Transport-Security: max-age=31536000; includeSubDomainsLimits and behavior
- Only send HSTS over HTTPS; preload enrollment has additional browser-maintained requirements.
- A long lifetime can make configuration mistakes persist.