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。

相關工具