Difference between revisions of "F5 Big IP HSTS"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | set it for a redirect | ||
+ | ``` | ||
+ | HTTP::respond 301 Location "https://www.example.com[HTTP::uri]" Strict-Transport-Security "max-age=31536000" | ||
+ | |||
+ | default { HTTP::respond 301 Location "https://www.example.com[HTTP::uri]" Strict-Transport-Security "max-age=31536000"; persist none } | ||
+ | ``` | ||
+ | |||
+ | |||
+ | |||
https://hstspreload.org/ | https://hstspreload.org/ | ||
Revision as of 07:33, 2 March 2022
set it for a redirect
HTTP::respond 301 Location "https://www.example.com[HTTP::uri]" Strict-Transport-Security "max-age=31536000" default { HTTP::respond 301 Location "https://www.example.com[HTTP::uri]" Strict-Transport-Security "max-age=31536000"; persist none }
https://support.f5.com/csp/article/K68657325
nmap -p 443 --script http-security-headers 10.x.x.y
NGINX Example -
# Security headers add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; add_header X-Frame-Options DENY; add_header X-Content-Type-Options nosniff; add_header Content-Security-Policy "default-src 'self' www.google-analytics.com ajax.googleapis.com www.google.com google.com gstatic.com www.gstatic.com connect.facebook.net facebook.com;"; add_header X-XSS-Protection "1; mode=block"; add_header Referrer-Policy "origin";
https://serverfault.com/questions/874936/adding-hsts-to-nginx-config