Host Redirector is a lightweight Burp Suite extension designed to seamlessly reroute traffic from one host to another. This is particularly useful for security researchers and developers who need to test production-level configurations against development or staging environments.
- Target Decoupling: Redirect request IP address and SNI (Subject Name Indication) while keeping the original
Hostheader.
This allows you to test backend servers directly without breaking application logic that relies on the hostname.
This is also ideal for testing WAF bypasses, Virtual Hosting configurations, or Origin-Server direct access.- You can optionally toggle "Update
HostHeader" if the destination requires it.
- You can optionally toggle "Update
- Granular Routing: Redirect requests selectively based on request path. Match with regex.
- HTTP/1.1 & HTTP/2 Support
- Transparent Proxying: Works across all Burp tools (Proxy, Repeater, Intruder, etc.).
You can also choose to enable/disable specific tools. - Configurable UI: Manage multiple redirection rules through a dedicated tab in the Burp Suite UI.
- Dynamic Redirection: Map any source hostname to a destination hostname.
Just before a request is sent out by Burp Suite, the extension checks the destination host against your configured rules. If a match is found, the extension:
- Changes the destination IP/domain of the socket.
- Uses the new hostname as SNI (Subject Name Indicator) during TLS handshake.
- Rewrites the HTTP Host header to match the new destination (if opted).
This is a 'find & replace' logic on theHostheader value. Hence, your port number and any other payload you have on theHostheader stays intact!
Simply download the extension, load it on your Burp Suite and enjoy!
There are several other methods for changing the host of the request. Different methods are compared below:
- Find & Replace Host Header:
You could use the native Match and Replace feature in Burp Suite to change the hostname.
| Which hostname will the server see? | |
|---|---|
| HTTP (Host Header) | ✅ New Hostname |
| TLS (SNI) | ❌ Original Hostname |
| TCP (IP Address) | ❌ Original IP Address |
- Change Hostname Resolution:
Another method is to change hostname resolution by editing/etc/hostsfile.
This can also be done by Hostname resolution overrides feature in Burp Suite.
| Which hostname will the server see? | |
|---|---|
| HTTP (Host Header) | ❌ Original Hostname |
| TLS (SNI) | ❌ Original Hostname |
| TCP (IP Address) | ✅ New IP Address |
- Using Host Redirector
| Which hostname will the server see? | |
|---|---|
| HTTP (Host Header) | ✅ New Hostname (Optional) |
| TLS (SNI) | ✅ New Hostname |
| TCP (IP Address) | ✅ New IP Address |
If you want to test how your production session cookies behave on a QA environment:
- Add
prod.app.comas the Source. - Add
qa.app.comas the Destination. - Browse
https://prod.app.comin your Burp-configured browser. - Burp will automatically fetch data from
qa.app.comwhile your browser still thinks it is communicating with production.
