HTTPS and security headers check

Check HTTPS and security headers: HTTP URLs, mixed content, missing HSTS, insecure forms and subresources, plus a header grade for a single URL.

What it does

Per URL

security-check sends one ordinary GET request. It reads the response headers, the cookie flags and the http-to-https redirect. Six security headers give a score from 0 to 100 and a grade from A to F, and version-disclosing headers are noted. headers-check shows the full header set instead.

  • HSTS, CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy
  • Cookie flags: Secure and SameSite
  • Whether http redirects to https
  • Optional path probe, off by default

Across a crawl

On a crawl, each page is checked for http resources on an https page, forms that submit to http, http links and missing security headers. The findings are per page, with the URL that causes them.

  • Mixed content and insecure subresources
  • Forms that submit to an http:// action
  • http:// internal links on https pages
  • Missing HSTS, CSP, X-Content-Type-Options, X-Frame-Options and Referrer-Policy

Exposed paths

With the probe flag, security-check also asks whether service paths such as .git or .env answer. This is a deliberate extra step, and it is off by default, because even a read-only request to another site should be a choice. It is not a penetration test.

  • Off by default
  • Run only with --probe-paths
  • Only for sites you are allowed to test

Three steps, one saved scan

  1. Read one URL's response

    security-check sends a single GET request and reads the response headers, the cookie flags and the http-to-https redirect.

  2. Score six security headers

    HSTS, CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy give a 0-100 score and an A-F grade.

  3. Flag mixed content across a crawl

    On a crawl, each page is checked for http resources, insecure form targets and missing or repeated security headers.

Checks in this feature

CheckWhat it meansSeverityEvidence
FORM_URL_INSECUREA form submits to an http:// action, so the data it sends is not encryptedCriticalForm action URL on the page
HTTP_URLThe URL is served over http instead of httpsImportantPage URL
MIXED_CONTENTAn https page loads a resource over httpImportantPage URL and the http resource URL
INSECURE_SUBRESOURCEAn https page loads an image, script or stylesheet over httpImportantResource URL and the linking page
MISSING_HSTSThe page sends no Strict-Transport-Security headerTipResponse headers of the page
MISSING_CSPAn HTML page sends no Content-Security-Policy headerTipResponse headers of the page
MISSING_X_FRAME_OPTIONSThe page has neither X-Frame-Options nor a CSP frame-ancestors directiveTipResponse headers of the page
DUPLICATE_SECURITY_HEADERA security header is sent more than once on the same responseTipHeader name and the response that repeats it
Also in the check registry
HTTP_LINK_ON_HTTPSMISSING_X_CONTENT_TYPE_OPTIONSMISSING_REFERRER_POLICY

One command

bash
spiderhead security-check --url https://example.com/

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • A page URL for security-check
  • A crawl for the page-level checks
  • Permission to test the site if you use --probe-paths

Limits

  • It checks that a header is present, not whether its value is strong
  • One URL gives one response: other pages can send other headers
  • It is not a penetration test or a vulnerability scan
  • Permissions-Policy is graded by security-check but not reported as a crawl finding

Questions

Does it change anything on my site?
No. security-check sends ordinary GET requests and reads what the site already sends. Probing for paths such as .git or .env is off by default and runs only with --probe-paths.
How is the grade calculated?
Each header adds points: HSTS 20, CSP 20, X-Content-Type-Options 15, X-Frame-Options 15, Referrer-Policy 15, Permissions-Policy 15. 90 or more is A, 75 B, 60 C, 40 D, 20 E, and anything lower is F. A CSP frame-ancestors directive counts for X-Frame-Options.
Does it check the header values?
No. It checks that each header is present. A weak CSP that is present still gets full points.
Does one command run every check on this list?
No. security-check covers one URL. The page-level checks in this list come from a crawl, and they appear per page in the crawl results.
Can I look at the headers of a saved crawl?
Yes. headers-analyze reads the redacted response headers kept in a saved scan, without sending any request, and reports security-header findings.

Try it on your own site