This article outlines a streamlined, expert workflow for capturing a HAR file in Chrome to detect WAF blocking patterns, while ensuring accuracy by excluding target domains from VPN inside Timus and routing them through the internet to eliminate VPN IP reputation noise.
Capture a HAR File in Google Chrome
Open Chrome
Go to the target site
Press F12 → DevTools
Select Network tab
Enable Preserve log
Refresh page (F5)
Right‑click any request → Save all as HAR with content
Save as
filename.har
Detect WAF‑Blocked Status Codes (Run PowerShell as Administrator)
Get-Content "filename.har" | ConvertFrom-Json |
Select-Object -ExpandProperty log -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty entries -ErrorAction SilentlyContinue |
Where-Object { $_.response.status -in 403,429,502 } |
ForEach-Object {
[PSCustomObject]@{
Status = $_.response.status
URL = $_.request.url
}
} | Sort-Object URL -UniqueWAF Blocking Interpretation
| Status | Likely WAF Behavior |
|---|---|
| 403 | Access denied / rule block |
| 429 | Rate‑limit or security challenge |
| 502 | Edge failed to reach origin (possible shield block) |
Timus Split‑Tunnel Configuration for Target Domains
Go to Timus Manager → Agent Configuration → Agent Profile.
Edit the existing default profile or create a new one.
In the Source section, select the relevant target users (e.g.,
Users → All users).Navigate to the Windows and macOS tabs and ensure Enforce Local DNS Responder is enabled as shown in the image below:
Go to Timus Manager → Agent Configuration → Tunnel Configuration.
Add the domains from your PowerShell output, using only the main domain.
For example, if the URL is
test.reddit.com, add it as*.reddit.comusing a wildcard, which covers all the subdomains based on the main domain.Set the routing option to Through Internet | Domain as shown in the image below:
After completing the configuration, click Save.
Note: After making changes to the Split Tunnel, advise users to reconnect to the Timus VPN to ensure the new settings take effect and to fetch the latest data faster.
Updated
Comments
0 comments
Please sign in to leave a comment.