Join our Newsletter — 33% off our NHI Course
Home› Guides› HAR Files for Beginners: What to Check Before…
Guide Authentication

HAR Files for Beginners: What to Check Before You Send a Browser Log to Support

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 10 min read
On this page

A HAR file is a recording of everything your browser sent and received while a web page loaded.

This guide is for anyone a support team has asked to "send us a HAR file". You do not need to be technical. If you or your staff ever send these files to suppliers, you should know what may be inside them.

In short

  • Support teams ask for HAR files because they show exactly what went wrong between your browser and a website.
  • A full HAR file can also hold your session cookies, which may let someone use your account without your password.
  • Chrome saves a cleaned-up ("sanitised") version by default, which leaves out the main cookie and sign-in details.
  • Before sending, record only the problem, use the sanitised export, share it through the support portal and sign out afterwards.

What you will learn

  • Explain what a HAR file is and why support teams ask for one.
  • Spot the parts of a HAR file that could give away your account.
  • Check that you are sending a sanitised copy.
  • Ask support how they will store and delete your file.
Browser recording (HAR file)
a file that lists every request your browser made and every reply it got.
Signed-in pass (session cookie)
a small value your browser shows a site to prove you already signed in.
Cleaned copy (sanitised export)
a HAR file with the main sign-in details removed before it is saved.

What is a HAR file?

Think of sending a photo of your desk to a repair shop, to show them a broken lamp. The photo helps. But your house keys and bank card are lying on the desk too.

A HAR file works the same way. HAR stands for HTTP Archive. It is a text file that lists each request your browser sent to a website and each reply it got back.[3] Support teams use it to see where a page failed.

The problem is that the recording can also catch your session cookie, the value that tells the site you are already signed in. It can also catch other sign-in details sent in the background.

Where the comparison stops working: a photo of a key cannot open your door. A copied session cookie can sometimes be used just as it is, until the session ends or is cancelled.[1]

Why does it matter?

This is not just a theory. In October 2023, Okta said an attacker used a stolen credential to get into its support case system. The attacker could see files some customers had uploaded. Okta noted that HAR files can hold cookies and session tokens.[1] Cloudflare said attackers used a session token from one such support ticket to reach its systems.[4]

If you contact a supplier's help desk

What could happen: your HAR file sits in their ticket system for years, with a session that may still work.

Check this: send a sanitised copy, and sign out of the site once you have sent it.

Next: Session Tokens and Cookies for Beginners

If you run IT for a small business

What could happen: an admin sends a full HAR file of your admin console to a vendor by email.

Check this: agree a rule that HAR files are sanitised and sent only through the vendor's portal.

Next: How to Revoke All Sessions for a Compromised User

If you work on a support team

What could happen: your ticket system becomes a store of live customer sessions that attackers want.

Check this: give customers clear steps, clean files when they arrive and delete them when the case closes.

Next: HAR Files and Session Token Leakage Guide

What does it look like?

A HAR file is long and hard to read. Here is a small, made-up piece of one, from a fictional booking site.

Example only. All values are made up.

"request": {
  "method": "GET",
  "url": "https://booking.example.com/account",        (1)
  "headers": [
    { "name": "Cookie",
      "value": "session=FAKE-SESSION-0000-EXAMPLE" },   (2)
    { "name": "Authorization",
      "value": "Bearer EXAMPLE-TOKEN-0000-FAKE" }      (3)
  ]
}
  1. The page you visited. Useful to support, and usually harmless.
  2. In a real file, this line would contain your session cookie. Whoever has a valid one may be able to act as you.
  3. In a real file, this line would contain an access token, another kind of pass that proves you are signed in.

Why this is risky: lines 2 and 3 are the parts an attacker wants. Support rarely needs them to fix your problem.

The safer way: use the sanitised export, which leaves out the Cookie, Set-Cookie and Authorization headers.[2] Okta's advice is to remove all credentials, cookies and session tokens from a HAR file before you share it.[1]

How does it work?

Here is how to send a HAR file with less risk. These steps follow Chrome, but other browsers are similar.

  1. Record only the problem. Open the browser's developer tools (a built-in panel for inspecting web pages), go to the Network tab and repeat just the broken step. Avoid signing in while recording, if you can.
  2. Save the sanitised copy. In Chrome, the normal export, labelled "Export HAR (sanitized)", is sanitised by default. The full version needs a setting turned on, so leave that setting off.[2]
  3. Check for other secrets. Sanitising removes the main headers, but sign-in details can sit in other places, such as web addresses. If unsure, ask support whether they offer a cleaning tool.
  4. Send it the agreed way. Upload it to the support portal, not by email or chat, so fewer copies exist.
  5. End the session. Sign out of the site afterwards. A proper sign out asks the site to cancel the session, so a copied cookie should no longer give access.
  6. Tidy up. Delete the file from your downloads folder and ask support to delete it when the case is closed.
Step diagram titled Sending a HAR file more safely. Five boxes in a row joined by arrows. Step 1, Record only the problem, not your sign-in. Step 2, Export the sanitised copy, which leaves out cookies and sign-in headers. Step 3, Check for other secrets, such as tokens in web addresses. Step 4, Upload through the support portal, not email or chat. Step 5, Sign out and delete your copy, so the session ends. A green bar says a clean file plus a cancelled session leaves little for anyone to reuse.
Figure 1. Five steps that make a HAR file far less useful to anyone who gets hold of it.
Before and after diagram titled What is inside the file. Left panel, labelled Full export: the pages you visited, error messages, timings, plus your session cookie and sign-in token. Right panel, labelled Sanitised export: the pages you visited, error messages and timings, with the Cookie, Set-Cookie and Authorization headers left out. A note says other secrets, such as tokens inside web addresses, may still be present, so check before sending.
Figure 2. The sanitised export keeps what support needs and drops the main sign-in details.

A worked example

Imani Jensen manages the office for a small fictional travel firm. Their online booking tool keeps freezing on the payment page.

She contacts the tool's help desk. A support agent, Hugo Quist, replies: "Please send us a HAR file of the problem."

Imani has never heard of a HAR file. She searches and finds it is a recording of what her browser does. She thinks of the desk photo. She wants the broken lamp in the shot, not her keys.

She opens the developer tools in Chrome. She is already signed in, so she does not record the sign-in. She starts the recording, clicks the payment button once and stops it.

She saves the file with the normal export, which Chrome sanitises by default. She uploads it through the help desk portal rather than replying by email.

Then she signs out of the booking tool and deletes the file from her downloads folder. She asks Hugo to delete the file once the case is closed. He agrees and notes it on the ticket.

Hugo replies the next morning. The file showed a payment request timing out, which was all he needed. Two days later the vendor fixes the bug. Imani adds a line to the office's IT notes: "HAR files: sanitised, portal only, sign out afterwards."

Myths and mistakes

What people thinkWhat is true
A HAR file only shows technical errors.A full file can also hold cookies and tokens that keep you signed in.[1]
The support company is trusted, so it is fine.Support systems can be broken into too. Okta's support system was.[1]
Sanitised means every secret is gone.The main sign-in headers are removed. Secrets in other places may remain, so check.
Closing the browser ends the risk.Press sign out, so the site cancels the session on its side.
Emailing the file is the same as uploading it.Email makes more copies in more places. Use the support portal.

What can I do this week?

  • Search your email and downloads folder for files ending in .har, then delete the old ones you no longer need.
  • Sent a full HAR file lately? Sign out of that site on every device, so old sessions end.
  • Write a short team rule: sanitised export, portal upload, sign out afterwards.
  • Ask your main suppliers how long they keep support files.

Checklist

  • I record only the broken step, not my sign-in.
  • I use the sanitised export.
  • I look for other secrets before sending, or ask support for a cleaning tool.
  • I upload through the support portal, not email or chat.
  • I sign out of the site after sending the file.
  • I delete my copy and ask support to delete theirs when the case closes.
  • Our team has a written rule for sharing HAR files.

Common questions

Why do support teams ask for HAR files?

Because the file shows exactly what your browser asked for and what the website sent back. That lets support see failed requests, slow responses and error messages they cannot reproduce themselves. It saves a lot of back-and-forth, which is why it is a common request.

Is it safe to send a HAR file?

It can be, with care. Use the sanitised export, record only the problem, upload it through the support portal and sign out afterwards. Those steps remove the main sign-in details and cancel the session, so a copy is much less useful to anyone else.

Can I read a HAR file myself?

Yes. It is a plain text file, so a text editor can open it, though it is long. You can search it for words such as "cookie", "token" or "authorization" to see whether sign-in details are still inside before you share it.

I already sent a full HAR file. What now?

Sign out of that site on every device, or use its "sign out of all devices" option, so any copied session ends. Change your password if the file was recorded during sign-in. Then ask support to delete the file. See Hacked Account Recovery for Beginners if you notice anything odd.

Where next?

Ready for the detail? Read the practitioner guide: HAR Files and Session Token Leakage Guide. It goes further into what sanitised exports miss, how support teams can clean files on arrival and how to respond to a leaked file.

Also useful:

Related NHI Mgmt Group resources: Session Token Theft Response Playbook · How to Revoke All Sessions for a Compromised User · Token and Session Security Guide

Key terms

HAR file
A text file that records every request a browser made to a website and every reply it received.
Session
The signed-in state a site keeps for you after you prove who you are.
A small piece of data a site stores in your browser, often used to keep you signed in.
Bearer token
A pass that works for whoever holds it, without further proof of who they are.
Sanitised export
A HAR file saved with the main cookie and sign-in headers left out.
Session hijacking
Taking over someone's signed-in session, usually with a copied cookie or token, without needing their password.

Sources and further reading

  1. Tracking Unauthorized Access to Okta's Support System. Okta Security, Okta, 20 October 2023. https://sec.okta.com/articles/2023/10/tracking-unauthorized-access-oktas-support-system, accessed 28 Nov 2026.
  2. Network features reference: Save all network requests to a HAR file. Chrome DevTools documentation, Google. https://developer.chrome.com/docs/devtools/network/reference#save-as-har, accessed 28 Nov 2026.
  3. HTTP Archive (HAR) format, historical draft (never published, abandoned). W3C Web Performance Working Group, 14 August 2012. https://webperfwg.org/specs/HAR/Overview.html, accessed 28 Nov 2026.
  4. How Cloudflare mitigated yet another Okta compromise. The Cloudflare Blog, Cloudflare, 20 October 2023. https://blog.cloudflare.com/how-cloudflare-mitigated-yet-another-okta-compromise/, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.