HTTP响应头检测

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

重定向链

3 个请求
#状态URL时间
1 301 Moved Permanently http://wikipedia.org 3 ms
2 301 Moved Permanently https://wikipedia.org/ 27 ms
3 200 OK https://www.wikipedia.org/ 26 ms

安全响应头

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

响应头

https://www.wikipedia.org/ · 208.80.154.224
dateFri, 16 Oct 2026 10:47:14 GMT
cache-controls-maxage=86400, must-revalidate, max-age=3600
serverATS/9.2.15
etagW/"1dd55-65d54a13c8d00"
last-modifiedThu, 08 Oct 2026 13:58:44 GMT
content-typetext/html
content-encodinggzip
age63767
accept-rangesbytes
x-cachecp1114 miss, cp1114 hit/1593420
x-cache-statushit-front
strict-transport-securitymax-age=106384710; includeSubDomains; preload
report-to{ "group": "wm_nel", "max_age": 604800, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] }
nel{ "report_to": "wm_nel", "max_age": 604800, "failure_fraction": 0.05, "success_fraction": 0.0}
set-cookieWMF-Last-Access=17-Oct-2026;Path=/;HttpOnly;secure;Expires=Wed, 18 Nov 2026 00:00:00 GMT
set-cookieWMF-Last-Access-Global=17-Oct-2026;Path=/;Domain=.wikipedia.org;HttpOnly;secure;Expires=Wed, 18 Nov 2026 00:00:00 GMT
set-cookieGeoIP=US:VA:Dulles:39.04:-77.42:v4; Path=/; secure; Domain=.wikipedia.org
set-cookieNetworkProbeLimit=0.001;Path=/;Secure;SameSite=None;Max-Age=3600
set-cookieWMF-Uniq=2iEQmeMdwYKahS3UPvKpCwP8AAAAAFvdwigbz6Na5icrEGWZTfDzX0TCRQMtBJ1M;Domain=.wikipedia.org;Path=/;HttpOnly;secure;SameSite=None;Expires=Sun, 17 Oct 2027 00:00:00 GMT
x-client-ip57.151.44.82
content-length29250
x-request-id2ff186e2-7a09-4287-ba18-3ac34cbe4f56
x-analytics
server-timingcache;desc="hit-front", host;desc="cp1114",co_id;desc="575885534"

这个 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 端口。出于安全考虑,私有地址和内部地址会被屏蔽。

更新于

已复制到剪贴板