HTTP Header Inspector: Security Headers Grade avatar

HTTP Header Inspector: Security Headers Grade

Pricing

from $0.49 / 1,000 inspected urls

Go to Apify Store
HTTP Header Inspector: Security Headers Grade

HTTP Header Inspector: Security Headers Grade

Check the response headers of many URLs in bulk: security header grade (HSTS, CSP, X-Frame-Options, cookies and more) plus caching, compression and server info. One HEAD or GET per URL, no crawling. Empty input runs a free demo.

Pricing

from $0.49 / 1,000 inspected urls

Rating

0.0

(0)

Developer

Actor Factory

Actor Factory

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

Check the security, caching and compression headers of a list of URLs

For web teams, agencies and security reviewers who need a quick look at response headers across many pages. Give it URLs and get one dataset row per URL: an A to F grade, a 0 to 100 score, every check with its reason, and the headers that matter. It sends one HEAD request per URL (GET only if the server refuses HEAD), never reads the page body and never crawls. $0.0007 per graded URL ($0.70 per 1,000); the $5 monthly free credit covers about 7,000 URLs. Leave the input empty for a free demo.

Output example (one row per URL; shortened):

{"url": "https://example.com", "finalUrl": "https://example.com/", "statusCode": 200, "grade": "C", "score": 71,
"checks": {"strict-transport-security": {"status": "absent", "value": null, "reason": "No Strict-Transport-Security header.", "scored": true},
"x-content-type-options": {"status": "pass", "value": "nosniff", "reason": "nosniff is set.", "scored": true}},
"headers": {"server": "nginx", "content-type": "text/html; charset=UTF-8"}, "error": null}

Who it is for and what problem it solves

  • Pre-launch checks for a website. Before a release or a migration, see which pages are missing HSTS, a Content-Security-Policy, clickjacking protection or safe cookie flags, in one table instead of opening browser dev tools page by page.
  • First pass of a security review. Compare dozens of hosts or subdomains by grade and spot the ones that need a closer look. This is a header check, not a vulnerability test (see below).
  • CDN and cache checks. See Cache-Control, ETag, Last-Modified, Content-Encoding (gzip, br) and the Content-Type charset for a list of URLs, and whether the server or framework announces itself through Server or X-Powered-By.
  • http to https. For http:// URLs, check that the first hop redirects to https://, and with which status code.

What it checks

Scored checks (weights add up to 100; checks that do not apply are left out of the score):

CheckPointsPassWarnFail / absent
https-redirect (http URLs only, first hop)10301 or 308 to https302, 303 or 307 to httpsno redirect, or stays on http
strict-transport-security (https only)15max-age of 180 days or moreshorter max-agemissing, max-age=0 or unreadable
content-security-policy20set, no unsafe-inline or unsafe-evalcontains one of them, or report-onlymissing
clickjacking-protection10X-Frame-Options DENY or SAMEORIGIN, or CSP frame-ancestors (not *)ALLOW-FROMmissing, other value or frame-ancestors *
x-content-type-options10nosniffmissing or other value
referrer-policy8no-referrer, same-origin, strict-origin, strict-origin-when-cross-originorigin, origin-when-cross-origin, no-referrer-when-downgrademissing, or unsafe-url
permissions-policy5setonly the old Feature-Policymissing
cross-origin-opener-policy4same-origin or same-origin-allow-popupsunsafe-nonemissing
cross-origin-resource-policy3same-origin, same-site or cross-originother valuemissing
cookies (only if Set-Cookie is sent)10all have Secure, HttpOnly and SameSitemissing HttpOnly or SameSiteany cookie without Secure
server-disclosure5no version number in Server, no X-Powered-Byversion number or X-Powered-By shown

Each pass earns the full points, each warn half, each fail or absent none. Score = points earned / points possible x 100, and the grade is A from 90, B from 80, C from 70, D from 55, E from 40, otherwise F.

Information checks (shown in checks with scored: false, not part of the score): cache-control, etag, last-modified, content-encoding (gzip, br, zstd, deflate) and content-type-charset. HEAD answers from some servers leave out Content-Encoding; choose GET to see it.

The grade is a guide, not a security audit

The grade only reflects which response headers a URL sends. It is a rough first look, not a vulnerability scan or penetration test, and a high grade does not mean a site is secure or a low grade that it is vulnerable. Some headers do not suit every site, and the weights are a simple rule of thumb. The Actor makes no attempt to find or exploit weaknesses.

How it works

  • Input: urls (a list; a missing scheme is filled in as https://) and/or datasetIds plus urlField to read URLs from datasets. Duplicates are removed. Up to 10,000 URLs per run.
  • Method: HEAD by default. If a server answers HEAD with 405 or 501, the same URL is requested once with GET. With GET chosen, the body is still not read: the connection is closed after the headers.
  • Redirects: followed up to 5 hops (followRedirects, on by default). The headers are graded on the final response; the http to https check looks at the first hop only. A chain longer than 5 hops, or a loop, gives too_many_redirects or redirect_loop and no grade.
  • Other options: userAgent, timeoutSecs (default 15), concurrency (default 10, up to 30).
  • Polite by design: at most 2 requests per second to the same host and 2 connections at a time. Many URLs on one host take proportionally longer.
  • One request per URL: no retries, no robots.txt or sitemap lookups, no crawling.
  • Set a maximum cost per run to cap spend: when it is reached the run stops cleanly and the status message and SUMMARY (stoppedAtChargeLimit, notInspected) say how many URLs were left.

Safe by design

  • Internal addresses are never contacted. Hostnames are resolved and anything that points to localhost, private ranges, link-local (such as 169.254.169.254) or similar is refused, also at every redirect hop. Such rows have error: "blocked_private_address".
  • Cookie values are never stored. Set-Cookie is shown as [REDACTED] with only the number of cookies; the cookie check reads names and flags, not values. No cookies are sent back.
  • Logs contain run counts only, no URLs or header values.

Pricing

$0.0007 per URL that answered and was graded (any HTTP status counts; a 404 page is graded too). Not charged: URLs with no answer (timeouts, DNS failures), invalid URLs, URLs blocked by the internal-address guard, redirect chains that fail, and the free demo. Store discounts apply automatically: BRONZE -10%, SILVER -20%, GOLD -30%. On the Apify Free plan the $5 monthly credit covers about 7,000 URLs.

Input

{ "urls": ["https://example.com", "http://example.org"], "method": "HEAD", "followRedirects": true, "concurrency": 10 }

Output fields

url, finalUrl, statusCode, grade, score, checks (per check: status pass, warn, fail or absent; value; reason; scored), headers (selected response headers), method (HEAD or GET actually used), redirectCount, elapsedMs, error, and _demo on demo rows. When no answer is graded, grade, score and checks are null and error is e.g. dns_failure, timeout, connection_error: ..., invalid_url, blocked_private_address, too_many_redirects or redirect_loop. Rows are written as they finish; use index to restore the input order. Run totals are saved as SUMMARY in the key-value store.

Notes

Only inspect sites you are allowed to contact. The Actor sends a normal request to each URL you list and nothing else. Known limit: the internal-address check happens just before connecting; a DNS server that changes its answer between the check and the connection (DNS rebinding) is not covered.

FAQ

Does a good grade mean the site is secure? No. It means the URL sends the headers this tool looks for. It is not a vulnerability scan.

Why is a header "absent" and not "fail"? absent means the header is not sent; fail means it is sent with a harmful or invalid value. Both earn no points.

Why did HSTS or cookies show "not applicable"? HSTS counts only on https responses, and the cookie check only when the response sets cookies. Those checks are left out of the score instead of lowering it.

Why is Content-Encoding missing with HEAD? Some servers leave it out for HEAD. Use method: GET; the body is still not read.

Does it check every page of a site? Only the URLs you list. It does not follow links.

Can I test a site behind a login or on my internal network? No. Internal addresses are blocked and no credentials are sent.

More tools from the same developer

  • Redirect Checker — full redirect chain for each URL, hop by hop, with loop detection
  • Bulk URL Status Checker — bulk HTTP status and redirect-chain checker for URL lists
  • SSL Certificate Expiry Checker — SSL/TLS certificate expiry dates, issuer and validity for many hosts, soonest first
  • Bulk HTTP Request Runner — send many HTTP requests (GET/POST/...) from a list and collect status, headers and body
  • SEO Audit Tool — on-page SEO audit for URL lists and sitemaps: title, meta description, h1, canonical, noindex, robots.txt, issues and a 0-100 score