security_headers_check
Checks HTTP security response headers for presence, correctness, and information leakage. Identifies missing or misconfigured CSP, HSTS, X-Frame-Options, and more, with actionable recommendations.
Instructions
Check HTTP security response headers: analyze presence and correctness of CSP, X-Content-Type-Options, X-Frame-Options, HSTS, Referrer-Policy, and detect information leakage via X-Powered-By/Server.
中文详情:
用途:检查 HTTP 安全响应头部,分析 CSP、X-Content-Type-Options、X-Frame-Options、HSTS、Referrer-Policy 等头部的存在性和配置正确性,检测 X-Powered-By/Server 等信息泄露
何时使用:上线前安全头部合规检查时;HTTPS/HSTS 配置验证时;点击劫持防护(X-Frame-Options)验证时;信息泄露排查时
输出:{ ok: boolean, url: string, headers: object, missing: array, misconfigured: array, infoLeakage: array, score: number, recommendations: array }
参数:
url (string, 必填):目标 URL
错误:URL 不可达抛出 'Request failed';非 HTTP(S) URL 抛出 'Invalid url'
示例:{"url":"https://example.com"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 目标 URL(必填) |