Security Headers Checker — HSTS, CSP, Framing, Nosniff by URL avatar

Security Headers Checker — HSTS, CSP, Framing, Nosniff by URL

Pricing

from $0.80 / 1,000 page processeds

Go to Apify Store
Security Headers Checker — HSTS, CSP, Framing, Nosniff by URL

Security Headers Checker — HSTS, CSP, Framing, Nosniff by URL

Check declared HTTP security headers: HSTS, CSP, framing, nosniff, referrer and permissions policy. $0.001 per page; start extra; usage included; failures uncharged.

Pricing

from $0.80 / 1,000 page processeds

Rating

0.0

(0)

Developer

Logan Parker

Logan Parker

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

Check seven declared HTTP security header families without returning raw values for agent pipelines that need bounded factual results without publisher profiles, raw personal text or credentials. Agents can call and pay through Apify MCP for $0.001 per page; start is extra, usage is included and failed results are uncharged.

Example result

Example record for the example task http-security-headers-example, as this Actor returned it on 2026-11-02 in a run of its production image; the record is kept unchanged with the release.

{
"https": true,
"hstsPresent": true,
"hstsMaxAgeSeconds": 31556952,
"hstsIncludeSubdomains": false,
"cspPresent": false,
"cspReportOnlyPresent": false,
"frameOptions": "SAMEORIGIN",
"nosniff": false,
"referrerPolicy": null,
"permissionsPolicyPresent": false,
"url": "input-1",
"ok": true
}

How to use it

Start a run in Apify Console, by API or from an agent with an input like this one — it is the input Apify runs every day to test this Actor:

{"urls": ["https://docs.apify.com"]}
FieldTypeMeaning
urlsarrayOne result per input position; see Limits for supported values.

Events and prices

EventTitleCharged whenFREE / BRONZESILVERGOLD / PLATINUM / DIAMOND
headers-checkedPage processedOne supported input with a readable result written to the dataset.$0.001$0.0009$0.0008

Platform usage is not passed through. Apify's automatic actor-start event remains $0.00005 per started GB (one GB or less counts once). The synthetic dataset-item event is absent. Charge limits stop further paying work; unprocessed inputs receive uncharged errors. Completed readable pending events are settled on abort.

Worked cost example: ten successful page processed events cost $0.01 at list, plus actor start. Failures are not included in that count.

Call it from an agent

Through Apify's MCP server (https://mcp.apify.com) use call-actor:

{
"actor": "hermeskd/http-security-headers",
"input": {
"urls": [
"https://docs.apify.com"
]
},
"callOptions": {
"maxTotalChargeUsd": 0.01,
"timeout": 600
},
"waitSecs": 30
}

Then call get-dataset-items with the returned defaultDatasetId. Dedicated tool URL: https://mcp.apify.com?tools=hermeskd/http-security-headers

Output fields

FieldMeaning
urlOne-based input reference (input-1, input-2, ...); never the supplied value.
okTrue for a returned result; a failure is never charged.
httpsWhether the final response URL uses HTTPS.
hstsPresentHSTS header is present; presence is not effective enforcement.
hstsIncludeSubdomainsValid HSTS declaration includes includeSubDomains.
cspPresentEnforcing Content-Security-Policy header is present, without validating its policy.
cspReportOnlyPresentReport-only CSP header is present; it does not enforce a policy.
nosniffX-Content-Type-Options is exactly nosniff, case insensitive.
permissionsPolicyPresentPermissions-Policy is present, without validating its policy.
hstsMaxAgeSecondsParsed HSTS max-age when valid, otherwise null; zero disables HSTS.
frameOptionsDENY, SAMEORIGIN, other or absent; other includes unsupported or malformed values without a validity verdict.
referrerPolicyLast recognized Referrer-Policy token, otherwise null.
errorFailure, always uncharged.

Limits and run time

1–20 public HTTP(S) URLs. Shared robots, blocked-host, private-address and redirect guards; at most 1 MB of body data per page. Inspects the final successful response, without rendering or subresources. Only the first separate HSTS field is parsed; max-age accepts one or more digits after quoted-string unescaping, including leading zeroes. An unrepresentable integer produces an uncharged source_invalid result. Header presence and bounded tokens only: no security grade, TLS certificate validation, CSP effectiveness assessment, raw headers, cookies, URL output or compliance verdict. Arbitrary source pages must allow automated access in their terms.

The default run timeout is 600 seconds. Fix-round local production-image measurements at 128 MB and one CPU: three cold processes took 6.90–7.99 seconds; peak typical RSS 81.7 MiB; the ten-result benchmark took 16.15 seconds. Images were locally available; actual Apify startup, billed costs and production floor remain unverified.

Errors

CodeMeaning
http_errorThe source answered an unsuccessful HTTP status.
download_failedThe request or connection failed within its bounded deadline.
source_invalidThe source response is malformed or outside the documented supported shape.
not_foundThe requested technical record is unavailable.
robots_disallowedrobots.txt forbids fetching the URL; no request was made to it.
blocked_hostThe host is on the deny-list or resolves to a private or local address; no request was made.
too_largeThe response exceeded the size cap.
timeoutThe input did not finish within the run's time budget.
invalid_inputThe run input passed the input schema but cannot be used; the message names the field.
internal_errorUnexpected internal failure; private exception details are excluded.
charge_limit_reachedThe run reached its maximum total charge; this input was not processed.

No failure record is charged. A run fails only when all input outcomes are Actor-side failures; caller errors and a mixture of caller/Actor failures do not fail the run.

Sources and terms

Only process content you have the right to process. URL fetches obey HermesBot robots-group selection, the shared deny-list, public-address checks on connections and redirects, honest identity, deadlines and rate limits. No caller credentials, cookies, CAPTCHA solving, residential proxies or evasion. RFC 6797 HSTS, RFC 9110 HTTP fields, CSP Level 3, Referrer Policy and WHATWG Fetch were read on 2026-11-02. The public smoke source is Apify documentation (Apache-2.0) and its robots policy allows access. Caller sources remain subject to terms and robots.

Not affiliated

Not affiliated with or endorsed by the source publishers or Apify.

Changelog

  • 1.0 (2026-11-02) — 2026-11-02: first factory-built version..