Block hosts
Use--block to intercept everything except the matched hosts. Separate multiple patterns with commas.
Allow hosts
Use--allow to intercept only the matched hosts. Everything else passes through untouched.
Priority
Allow takes priority over block. If a host matches both an allow pattern and a block pattern, httpmon intercepts it.Wildcard matching
Patterns use* as a wildcard on the hostname. The port is stripped before matching.
| Pattern | Matches |
|---|---|
*.ads.com | tracker.ads.com, cdn.ads.com |
api.example.* | api.example.com, api.example.io |
*.internal | service.internal, db.internal |
Common examples
Block analytics and ads:

