How to generate HAR files
This article is about AdGuard for Android, a multifunctional ad blocker that protects your device at the system level. To see how it works, download the AdGuard app
HAR files are processed in accordance with the AdGuard Privacy Policy.
What are HAR files?
The HAR (HTTP ARchive) format is a JSON-formatted archive file for logging of a web browser's interaction with a site. The specifications of HAR format define archival data for HTTP transactions that a browser uses to export detailed information about the web pages it loads. More detailed description of HAR file format and its specification you can find at softwareishard.com website.
How to generate HAR files
Sometimes we need to analyze it to block specific ads that are difficult to reproduce for some reason. To get HAR files, follow these steps:
- Open AdGuard and go to Settings (⚙ icon in the lower right corner).
- Tap General →Advanced → Low-level settings.
- Scroll down and activate Capture HAR in the Filtering section.
- Open the app and perform the necessary actions to reproduce the problem.
- Turn Capture HAR off.
- Go back to Advanced.
- Tap Export logs and system info → Allow (if necessary) → Save.
Send the generated file with the logs to the AdGuard support service.
Our support team will process your ticket much faster if you specify the HelpDesk ticket number or the GitHub issue number in your message.
How to analyze HAR files
Here are some sources that we can recommend to analyze HAR files:
- HTTP Archive Viewer master is a HAR analyzer tool, visualizes HTTP Archive (HAR) log files created by HTTP tracking tools.
- Fiddler is a web debugging proxy, lets you capture, inspect, monitor all HTTP(S) traffic between your computer and the Internet, mock requests, and diagnose network issues.