SudoSecurity

Security headers checker

Grade a site's HTTP security headers: CSP, HSTS, framing, referrer and cookies.

What this checks

We request the page the way a browser would (following up to five redirects) and read the response headers only. Pages aren't stored. The grade weighs the headers that stop real attacks:

Setting headers in nginx

add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
add_header Content-Security-Policy "default-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'" always;