http_headers_audit
Audit a web server's HTTP security response headers and assign a letter grade. Get per-header findings and recommendations to identify missing or weak security protections.
Instructions
Audit a web server's HTTP security response headers and grade them.
Inspects headers such as Content-Security-Policy, Strict-Transport-Security (HSTS), X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and the COEP/COOP/CORP isolation headers. Returns a letter grade plus per-header findings with recommendations.
Args: host: Hostname or IP to audit, e.g. "example.com". port: TCP port. Defaults to 443 when use_ssl is True, else 80. use_ssl: Connect over HTTPS (default True). timeout: Per-connection network timeout in seconds.
Returns: A structured dict with: grade, score, the observed headers, and a findings list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| timeout | No | ||
| use_ssl | No |