HTTP Security Headers Auditor
Pricing
Pay per usage
Go to Apify Store
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
Maintained by CommunityActor 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:
| Header | Short Name | Penalty if Missing |
|---|---|---|
| Strict-Transport-Security | HSTS | -15 points |
| Content-Security-Policy | CSP | -15 points |
| X-Frame-Options | XFO | -15 points |
| X-Content-Type-Options | XCTO | -10 points |
| Referrer-Policy | RP | -10 points |
| Permissions-Policy | PP | -10 points |
Grading Scale
| Grade | Score Range | Headers Present |
|---|---|---|
| A+ | 100 | All 6 |
| A | 90–99 | 5 of 6 |
| B | 80–89 | 4 of 6 |
| C | 65–79 | 3 of 6 |
| D | 50–64 | 2 of 6 |
| F | 0–49 | 0–1 of 6 |
Input
| Field | Type | Default | Description |
|---|---|---|---|
urls | array | ["https://example.com", "https://httpbin.org"] | List of URLs to check |
followRedirects | boolean | true | Follow HTTP redirects |
timeout | integer | 15 | Timeout per request (seconds, max 60) |
Output
Each dataset item contains:
url— the URL that was checkedstatusCode— HTTP status codegrade— letter grade (A+ through F)score— numeric score (0–100)hasHsts,hasCsp,hasXfo,hasXcto,hasRp,hasPp— booleans per headerheadersPresent— list of security header names foundheadersMissing— list of security header names not foundissues— list of warnings or errorscheckedAt— ISO 8601 timestamp
Local Development
# Install dependenciespip install -r requirements.txt# Run with local Apify storagepython3 -m my_actor
Deployment
Deploy to Apify Console or use the Apify CLI:
apify loginapify push