HTTP响应头检测

See the HTTP status code, full redirect chain and response headers for any URL, and get a security headers grade with fixes.

重定向链

2 个请求
#状态URL时间
1 301 Moved Permanently http://github.com 7 ms
2 200 OK https://github.com/ 28 ms

安全响应头

5/6B
  • Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
    强制浏览器在今后访问时使用 HTTPS(HSTS)。
  • Content-Security-Policy: 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/; c...
    限制可以加载哪些脚本、样式和框架;防御 XSS 的最强手段。
  • X-Content-Type-Options: nosniff
    设置为 'nosniff',以阻止浏览器猜测内容类型。
  • X-Frame-Options: deny
    通过控制谁可以将页面嵌入框架来防止点击劫持(也可使用 CSP frame-ancestors)。
  • Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
    控制通过 Referer 请求头向其他网站发送多少 URL 信息。
  • Permissions-Policy
    关闭网站未使用的强大浏览器功能(摄像头、地理位置等)。
HTTP/3: 未声明 (Alt-Svc 中没有 h3) · 服务器: github.com

响应头

https://github.com/ · 140.82.114.4
DateSat, 17 Oct 2026 18:59:55 GMT
Content-Typetext/html; charset=utf-8
content-languageen-US
VaryX-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, X-GitHub-Client-Version, Accept-Language, Sec-Fetch-Site,Accept-Encoding, Accept, X-Requested-With
ETagW/"6174ed000598465e664e18bc5bda8e26"
Cache-Controlmax-age=0, private, must-revalidate
Strict-Transport-Securitymax-age=31536000; includeSubdomains; preload
X-Frame-Optionsdeny
X-Content-Type-Optionsnosniff
X-XSS-Protection0
Referrer-Policyorigin-when-cross-origin, strict-origin-when-cross-origin
Content-Security-Policydefault-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 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://production-copilot-host.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-tSjmyPUky1KbRZ0fw9VUil3wFEbeM82rtbJDygGJAXw='; 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/
Servergithub.com
Content-Encodinggzip
Accept-Rangesbytes
Set-Cookie_gh_sess=UvPsELsy%2BxIM6IZkSx7BkB12xPdChOismy2XpnbI0hQm5rSjT2Nv2AMfIMg3MkuO7LptM7y%2F%2BYt%2F1VhFNcybW1tL4ljtSpSUtUr7TuNqYclv2KymPmNCH2BtkU2xrumGGz4ARk210LfaLIej18W8Gxery1um7WPH0aEixwCRSXDNRoEF4Zb7%2B5guEwwQdk8W5AOnJGaIx48b%2BzgJeeOPeSneepydFeSvo4Zq0e1YPdx0kRm6JGlfooWnjjGgWbu9KEjdHuEb4YJbhq0IEZjang%3D%3D--GZXLrkxHiStUgjLg--ur9epWIFrV9NaBZfUXFz7w%3D%3D; path=/; HttpOnly; secure; SameSite=Lax
Set-Cookie_octo=GH1.1.576836802.1792263599; expires=Sun, 17 Oct 2027 18:59:59 GMT; domain=.github.com; path=/; secure; SameSite=Lax
Set-Cookielogged_in=no; expires=Sun, 17 Oct 2027 18:59:59 GMT; domain=.github.com; path=/; HttpOnly; secure; SameSite=Lax
X-GitHub-Request-Id2680:13FCE6:40B840:52FC27:6AD3C5AF
x-github-edge-regioniad
Transfer-Encodingchunked

这个 HTTP 响应头检测工具能显示什么

输入任意 URL,我们就会从服务器上像浏览器一样请求它,并且不会自动跟随重定向。这样我们就能向您展示重定向链中的每一跳及其状态码和响应时间,随后是最终页面完整的响应头和安全响应头评分。

HTTP 状态码速查表

状态码含义SEO 说明
200 OK页面正常加载。可被收录。
301 Moved Permanently(永久移动)永久重定向。传递排名信号;用于域名迁移和 HTTP→HTTPS。
302 / 307 临时重定向临时移动。搜索引擎会保留原始 URL 的收录。
308 Permanent Redirect(永久重定向)与 301 类似,但保留请求方法。按 301 处理。
304 Not Modified(未修改)缓存副本仍然有效。重复访问时属于正常情况。
403 Forbidden(禁止访问)访问被拒绝,通常是防火墙或机器人防护所致。可能会阻止爬虫。
404 Not Found(未找到)此 URL 下没有页面。随着时间推移会从索引中消失。
410 Gone(已删除)被有意删除。比 404 更快地从索引中移除。
500 / 502 / 503服务器或上游错误。持续出现 5xx 错误会损害抓取。

重定向最佳实践

  • 把重定向链控制在一跳之内:http://example.com 应当直接跳转到 https://www.example.com/,而不是经过两三个中间 URL。
  • 永久移动请使用 301 或 308,这样搜索引擎才会传递排名信号。
  • 避免重定向循环以及 HTTPS→HTTP 的混合跳转。

推荐的安全响应头

Strict-Transport-Security: max-age=31536000; includeSubDomains
Content-Security-Policy: default-src 'self'; frame-ancestors 'self'
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=()

只有在每个子域名都支持 HTTPS 之后才添加 HSTS,并且先在 Content-Security-Policy-Report-Only 模式下推出 CSP。TLS 方面请用我们的 SSL证书检测检查。

常见问题

为什么网站在我的浏览器里能正常打开,我却看到 403?

有些网站会用机器人防护拦截自动化请求,或来自云数据中心的请求。

可以检查哪些端口?

公网地址上的 80、443、8080 和 8443 端口。出于安全考虑,私有地址和内部地址会被屏蔽。

更新于

评论

暂无评分

登录后即可为此工具评分。

分享技巧、提出问题,或说说这个工具对您是否有用。

还没有评论,来分享您的使用体验吧。

已复制到剪贴板