Toolshub
计算 · 在浏览器中运行

读 HAR,同时不把里面的令牌带出去

把浏览器 HAR 变成一份朴素的耗时、体积与失败报告,并在任何内容离开标签页之前剥掉会话令牌。

$24 买断 · 免费上限每文件 25 MB· 每天 5 次免费

文件
未选择文件

报告与净化后的 HAR 都用内存里的副本生成。

在本标签页内运行,不上传任何内容。

结果

免费档:每文件最多 25 MB,每次 1 个文件,每天 5 次。这件工具单件买断 $24,一次付款。对比价格。

正在使用免费额度。这件工具的买断是一次付款,不是订阅。

这页与别处不同之处

HAR 里通常躺着 Authorization 头、带 token 的查询参数和 Set-Cookie。这个页面先在内存里脱敏,再据此生成报告与净化版 HAR:敏感头部、疑似令牌的参数键、JSON 体内同名字段都会替换,报告里的 URL 也按同一规则处理。耗时字段缺失时保留为未知,而不是补零——补零会让瀑布图说谎。

一步同时产出可读报告与脱敏副本,缺失的耗时标为未知而不是零。

示例输入与输出

环节 情形 体积 说明
输入 预发环境登录流程导出的 capture.har 822 KB exported from devtools after signing in, so the Authorization header and a ?token= parameter are still in it
输出 report.html 与 sanitized.har 60 KB one self-contained page with the waterfall and the numbers, and a HAR whose token values now read [redacted]

这里写的是本页构建时对照的演示数字,不是对每个文件的承诺。

你可以自己核对什么

承诺 测试结果
按名字脱敏的表头,连没见过的也会处理。 带 X-Session 和 Cookie 的抓包,在 sanitized.har 里两个值都变成 [redacted]。
令牌不会留在任何输出里。 写进请求 URL 的会话令牌,在 sanitized.har 和 report.html 里都搜不到。

常见问题

以下问答目前仍为英文原文。

What exactly gets redacted?

Header values for authorization, cookie, set-cookie, proxy-authorization, x-api-key and similar names; query and JSON body values whose parameter name looks like a secret (key, sig, token, password, auth, session). Names are kept, values are replaced, so you can still see which request was authenticated.

Can I send the sanitised HAR anywhere?

The report tells you not to assume that. A fixed list of names cannot know what a particular service invented. Read the headers of the requests you keep before sharing, and prefer the report over the raw file when the reader only needs numbers.

Does it score performance like Lighthouse?

No. It reports measurements: how long each request took, how much was transferred, how much of the time was spent waiting for the server, which requests failed. A score needs a budget model, and this page would rather show you the number than grade it.

Why is a request time shown as unknown?

Because the HAR recorded -1 for that timing, which is what devtools writes when it could not measure the phase. Substituting zero would make a blocked request look instant, so the field stays unknown and the segment is not drawn.

Is the file uploaded?

No. It is parsed in this tab and the two files are built from the bytes already in memory. There is no request to any server, which is the point: a HAR is usually the last file you would hand to a third party.

价格

这件工具一次性 $24,只要工具还在就一直可用。一次付款,不是订阅。授权存在当前浏览器里,凭交易号可在别处恢复。

免费档:每次 1 个文件,每文件 25 MB,每天 5 次。买断:50 个文件,每文件 200 MB。

相关工具