HTTP Security Headers Auditor avatar

HTTP Security Headers Auditor

Pricing

Pay per usage

Go to Apify Store
HTTP Security Headers Auditor

HTTP Security Headers Auditor

Bulk-check URLs for HTTP security headers. Grades sites A+ through F based on HSTS, CSP, XFO, XCTO, Referrer-Policy, and Permissions-Policy presence.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Richard P

Richard P

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Categories

Share

An Apify Actor that bulk-checks URLs for HTTP security headers.

Purpose

Scans a list of URLs and grades each one (A+ through F) based on the presence of six key security headers:

HeaderShort NamePenalty if Missing
Strict-Transport-SecurityHSTS-15 points
Content-Security-PolicyCSP-15 points
X-Frame-OptionsXFO-15 points
X-Content-Type-OptionsXCTO-10 points
Referrer-PolicyRP-10 points
Permissions-PolicyPP-10 points

Grading Scale

GradeScore RangeHeaders Present
A+100All 6
A90–995 of 6
B80–894 of 6
C65–793 of 6
D50–642 of 6
F0–490–1 of 6

Input

FieldTypeDefaultDescription
urlsarray["https://example.com", "https://httpbin.org"]List of URLs to check
followRedirectsbooleantrueFollow HTTP redirects
timeoutinteger15Timeout per request (seconds, max 60)

Output

Each dataset item contains:

  • url — the URL that was checked
  • statusCode — HTTP status code
  • grade — letter grade (A+ through F)
  • score — numeric score (0–100)
  • hasHsts, hasCsp, hasXfo, hasXcto, hasRp, hasPp — booleans per header
  • headersPresent — list of security header names found
  • headersMissing — list of security header names not found
  • issues — list of warnings or errors
  • checkedAt — ISO 8601 timestamp

Local Development

# Install dependencies
pip install -r requirements.txt
# Run with local Apify storage
python3 -m my_actor

Deployment

Deploy to Apify Console or use the Apify CLI:

apify login
apify push