Security headers
Analysis of fourteen HTTP security headers for your monitors. HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and the cross-origin headers, with a 0-100 score and an A+ to F grade.
UptimeWarden HTTP and HTTPS monitors don't only check status codes, they also analyse the security headers in the response. A misconfigured header (a missing HSTS, for example) can go unnoticed for days; security header analysis closes that gap.
The first answer: "Is my site unsafe?"
The page answers that question first. The first line says your sites work and how many of them are missing the key browser protections; when all are set, it says every site has them. The line below says plainly what that means: nothing is broken; these are extra protections that reduce the risk of attacks such as clickjacking. Three protections are the key ones: HTTPS only (Strict-Transport-Security), script restrictions (Content-Security-Policy) and framing protection (X-Frame-Options).
Grades and the header-by-header detail come after that answer: sites missing a key protection are listed first, worst grade first, then all sites with their grades ("All sites, worst first"), and the collapsed header reference sits at the bottom. If nothing has been scanned yet, the first line reads "No sites scanned yet" and tells you to add an HTTPS monitor; your site is then scanned daily.
The fourteen headers we analyse
UptimeWarden scores fourteen headers. Most of the score comes from the classic five and the modern four below; the additional five add small amounts. The full points table is in the How grading works window on the page.
The classic five
Strict-Transport-Security (HSTS). Tells browsers "only call this domain over HTTPS." We evaluate max-age (one year or longer is recommended), includeSubDomains, and preload.
Content-Security-Policy (CSP). The strongest defence against XSS. We check that the header is present, flag unsafe-inline and unsafe-eval, and recognise the report-only variant.
X-Frame-Options. Clickjacking protection. We validate DENY and SAMEORIGIN.
X-Content-Type-Options, nosniff is required; it blocks MIME-sniffing attacks.
Referrer-Policy. Limits referrer information sent to third-party sites (no-referrer, same-origin, strict-origin, strict-origin-when-cross-origin, and so on).
The modern four
Permissions-Policy. Restricts browser API access (camera, microphone, geolocation, and so on).
Cross-Origin-Embedder-Policy (COEP). Blocks cross-origin resources from being embedded without opt-in.
Cross-Origin-Opener-Policy (COOP). Blocks cross-origin window.opener leaks.
Cross-Origin-Resource-Policy (CORP). Resource isolation against Spectre-class cross-origin reads.
The additional five
Content-Security-Policy-Report-Only. Reports CSP violations without enforcing the policy.
X-XSS-Protection. The XSS filter of older browsers.
Expect-CT. Certificate Transparency expectation.
Report-To. The endpoint browsers send reports to.
NEL (Network Error Logging). Reporting of network errors.
These headers add small bonuses when present; when they are missing, only Expect-CT is penalised, and only in Strict mode.
Standard vs Strict modes
The same set of headers is scored at two strictness levels; you pick one of the two profiles in the dashboard:
| Mode | Target audience | Penalty for missing modern headers |
|---|---|---|
| Standard | Blogs, portfolios, personal sites | None (missing = 0 points) |
| Strict | Banking, finance, enterprise apps | Between -6 and -12 points for each of the modern four, -4 points for Expect-CT |
Score and grade
Each analysis produces a 0-100 numeric score and a letter grade:
| Score | Grade |
|---|---|
| 90 or above | A+ |
| 80-89 | A |
| 65-79 | B |
| 45-64 | C |
| 25-44 | D |
| Below 25 | F |
If HTTPS is not enforced, the score starts with a -20 penalty (HSTS is meaningless over HTTP anyway). Each header then applies a mode-specific delta.
Scan progress and filters
The progress of a scan started with "Scan now" is honest: the page cannot see which step an agent is on, so it never shows a made-up percentage. It says "Starting security scans…", then "Running security scans…", then "Waiting for agents to report results…"; when results arrive it ends with "Scan complete.", and when it stops waiting with "Stopped waiting for results.". The progress bar does not pretend either; it only shows that a scan is running.
Filters always leave a way out. If the search, monitor or grade filter leaves no site, the empty state offers "Show all sites"; if nothing has been scanned yet, it offers "Scan now". A "Show all sites" button also appears below the header whenever a filter is active.
"Write the config for your server"
Whenever a site is missing a header, its "View fixes" panel includes "Write the config for your server"; when nothing is missing, the section does not appear. Pick your server (nginx, Apache, Caddy, Express, Next.js, IIS or Cloudflare) and copy the rule-based configuration, built from the scan in your browser. It uses the recommended value for each missing header.
With AI on, "Write config with AI" tailors the same configuration to your site: the model takes your site's address, the headers it already sends (which the configuration must not touch) and HTTPS enforcement into account, and says in one sentence what to check before deploying. The answer is checked against the scan: it must set every missing header and no other security header. An answer that does not match is not used, and the rule-based configuration stays.
- AI writes only when you ask; it draws on your account's monthly AI credits and needs your AI processing consent. Asking again for the same site, server and scan is served from cache and costs nothing extra.
- If the feature is off, consent is missing or the monthly credits are used up, the rule-based configuration stays as it is.
- The AI-written configuration carries the same one-line note as every other AI-written text in the product: it says the text was written by AI, that sensitive values are masked before sending, and how much AI you have used this month (PII Redaction).
Note: UptimeWarden never changes your server for you; it writes the configuration for you to apply.
Plan tier
Security header analysis is available on every plan, including Free. See Subscription Plans.
API access
curl -H "Authorization: Bearer $UPTIMEWARDEN_TOKEN" \
"https://app.uptimewarden.online/api/v1/security/monitors/{id}/analysis"
Requires the security:analysis:read scope. The response is wrapped as { success: true, data: { ... } } and returns the monitor's latest analysis; data contains monitorPublicId, url, analysisMode, overallGrade, score, analysisData (the detailed scan result), latest, and analyzedAt. If the monitor has no analysis yet, it returns 404.
A new scan can't be started through the API: POST /api/v1/security/monitors/{id}/analyze returns 501. Scans run daily and with "Scan now" on the page.
Compliance use cases
- PCI DSS 4.0: continuous validation of required HTTP headers.
- OWASP ASVS L2/L3: security header requirements.
- SOC 2: production configuration controls.
- KVKK / GDPR: mandatory HTTPS and HSTS on endpoints handling personal data.