Skip to content
thenetworktools
Sign in

tool / headers

Security Headers

Audit HTTP security headers.

try

Workflow & Diagnostics

How Security Headers works

Security headers tell browsers how to treat your site. Missing ones leave room for clickjacking, downgrade attacks and script injection.

1

Enter your website address.

2

See which headers are present.

3

Add the missing ones at your server or CDN.

Troubleshooting & Remediation

How to Read & Fix Results

How to read the result

  • ProblemStrict-Transport-Security, Content-Security-Policy or X-Content-Type-Options is missing on the response. Browsers then apply fewer protections.
  • WarningA header is present but weak, for example a very short HSTS max-age or a CSP that allows everything.
  • PassThe headers you chose are present with sensible values. This does not mean the site is secure overall.

How to fix issues

  1. 1Decide which headers fit your site. Start with X-Content-Type-Options: nosniff and Strict-Transport-Security once every page works over HTTPS.
  2. 2Add them at the web server, CDN or hosting settings. Example for nginx is shown below.
  3. 3Introduce Content-Security-Policy in report-only mode first, read what it would block, then enforce it.
  4. 4Re-run this check on the exact URL, because different paths and redirects can return different headers.

Common mistakes to avoid

  • •Turning on HSTS with a long max-age before all subdomains support HTTPS.
  • •Enforcing a strict CSP without testing. Scripts and fonts you rely on stop loading.
  • •Setting headers only on the home page and not on app or API routes.
  • •Copying a header list from the internet without understanding each one.

Example Nginx Security Headers Configuration

RFC Syntax
Reference ExampleRFC 1035 / BIND
add_header X-Content-Type-Options "nosniff" always;
add_header Strict-Transport-Security "max-age=31536000" always;
add_header Content-Security-Policy-Report-Only "default-src 'self'" always;

We make a normal request to the URL and read the response headers it returns. We do not test the page for vulnerabilities.

Next checks:Check the certificateCheck redirectsFull domain audit

Specifications & Scope

About Security Headers

01 / What it does
Security headers tell browsers how to treat your site. Missing ones leave room for clickjacking, downgrade attacks and script injection.
02 / How to use
1. Enter your website address. 2. See which headers are present. 3. Add the missing ones at your server or CDN.
03 / Good to know
Add HSTS only after all your subdomains serve HTTPS. A strict CSP can break scripts, so test it in report-only mode first.

Got Questions?

Frequently Asked Questions

A header that makes browsers always use HTTPS for your site.
Technical Reference & Standards

Tool Details & Usage Guide

RFC specifications, input expectations, outputs, and edge limitations.

Overview

Retrieves and analyzes HTTP response headers from a web server.

Inputs

  • Target: URL

Output Interpretation

  • Results: Scores security headers (HSTS, CSP, X-Frame-Options) and flags missing protections.

Examples & Limitations

  • Example Use Case: Auditing a web application for security best practices.
  • Limitation: Only analyzes the initial HTTP response.