安全响应头
HSTS / CSP / 点击劫持等安全头,Cookie 标志与混合内容
github.com:6 项安全头缺 1 项(Permissions-Policy),混合内容 0 处,Cookie 3 个
针对 github.com 怎么做
- 缺 1 项安全头(Permissions-Policy):nginx 用 add_header 每项 1 行配置即可
HSTS
已设置
max-age=31536000; includeSubdomains; preload
CSP
已设置
default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net productionresultssa1.blob.core.windows.net productionresultssa2.blob.core.windows.net productionresultssa3.blob.core.windows.net productionresultssa4.blob.core.windows.net productionresultssa5.blob.core.windows.net productionresultssa6.blob.core.windows.net productionresultssa7.blob.core.windows.net productionresultssa8.blob.core.windows.net productionresultssa9.blob.core.windows.net productionresultssa10.blob.core.windows.net productionresultssa11.blob.core.windows.net productionresultssa12.blob.core.windows.net productionresultssa13.blob.core.windows.net productionresultssa14.blob.core.windows.net productionresultssa15.blob.core.windows.net productionresultssa16.blob.core.windows.net productionresultssa17.blob.core.windows.net productionresultssa18.blob.core.windows.net productionresultssa19.blob.core.windows.net productionresultssa30.blob.core.windows.net productionresultssa31.blob.core.windows.net productionresultssa32.blob.core.windows.net github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com wss://*.wps.githubcopilot.com wss://production-copilot-host.webpubsub.azure.com wss://production-copilot-host-centralus.webpubsub.azure.com wss://production-copilot-host-centralus-02.webpubsub.azure.com wss://production-copilot-host-westus.webpubsub.azure.com wss://production-copilot-host-westus3.webpubsub.azure.com wss://production-copilot-host-eastasia.webpubsub.azure.com wss://production-copilot-host-austriaeast.webpubsub.azure.com api.github.com/cmc_internal/api/ edge.fullstory.com rs.fullstory.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com www.youtube-nocookie.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com user-images.githubusercontent.com private-user-images.githubusercontent.com opengraph.githubassets.com repository-images.githubusercontent.com marketplace-screenshots.githubusercontent.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com explore-feed.github.com *.googleusercontent.com objects-origin.githubusercontent.com *.githubusercontent.com images.ctfassets.net/8aevphvgewt8/; manifest-src 'self'; media-src github.com user-images.githubusercontent.com secured-user-images.githubusercontent.com private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com assets.ctfassets.net/8aevphvgewt8/ videos.ctfassets.net/8aevphvgewt8/; script-src github.githubassets.com 'sha256-+GyWTppwx1Z6N80ATXyHRHVc8ohir1rSYt/+DJPqs6w='; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
X-Content-Type-Options
已设置
nosniff
X-Frame-Options
已设置
deny
Referrer-Policy
已设置
origin-when-cross-origin, strict-origin-when-cross-origin
Permissions-Policy
缺失
Cookie 数量
3
Secure 3 / HttpOnly 2 / SameSite 3
混合内容
0 处
页面里 http:// 明文加载的资源
目标:github.com · 看完整体检报告 · 换其它工具
使用说明
安全响应头回答一个问题:浏览器层面的防护有没有装齐。工具检查 HSTS、CSP、X-Content-Type-Options、Referrer-Policy、Permissions-Policy、X-Frame-Options 六项安全头,同时核对 Cookie 的 Secure/HttpOnly/SameSite 标志与页面混合内容。
怎么用:输入域名点「检测」。结果逐项列出安全头的有无与取值,缺失项给修复建议。
指标怎么看:缺 HSTS 意味着可被 SSL 剥离攻击降级到明文;缺 CSP 意味着 XSS 无防线;缺 X-Frame-Options 页面可被任意站点嵌入做点击劫持。Cookie 缺 Secure 会在 HTTP 泄露。混合内容(HTTPS 页引 HTTP 资源)浏览器会直接拦截。六项全绿才叫齐。
常见问题
安全头加了会不会弄坏网站?
CSP 是最容易误伤的(拦截未声明的外部脚本),建议先用 Report-Only 模式观察再收紧;其余头一般无副作用。
免费吗?
完全免费,免登录。每 IP 每天 3 个域名、每小时 30 次查询,结果缓存 24 小时。
这些头对搜索排名有影响吗?
Google 公开说过 HTTPS/安全是排序信号之一;安全头主要价值在防攻击,间接通过站点可信度影响表现。