Burp Suite User Forum

Create new post

Proxy Match and Replace

gu | Last updated: Feb 21, 2019 10:18AM UTC

hey ! im trying to add automatically "referer" header to intercepted http Request. for some reasons its not working, this is the filter i created in Match and Replace section : Type : Request header Match: ^Referer.*$ Replace: www.mywebsite.com note : the intercepted Request does not have "Referer" header , therefore i need to create one and not replacing the existing . thanks!

Liam, PortSwigger Agent | Last updated: Feb 21, 2019 11:09AM UTC

You can't change the message in Proxy History or Site Map as they are a record of the traffic that Burp observed. You could try running two instances of Burp and configure one instance as an upstream proxy with a match and replace rule making the desired changes: - https://support.portswigger.net/customer/portal/articles/2363078-burp-suite-options-upstream-proxy-servers Please let us know if you need any further assistance.

Burp User | Last updated: Feb 21, 2019 11:53AM UTC

hey again, this is what im trying to do! im using burp Proxy listener to intercept my HTTP request but i cant find a way to automatically change headers in the Request before forwarding it. if im doing it manually this works perfect but i want to do it for every Request and therefore im trying to know why the "Match and Replace" option does not work for me.

Liam, PortSwigger Agent | Last updated: Feb 21, 2019 01:17PM UTC

Have you tried testing the match and replace rule in Burp Repeater?

Nikolaos | Last updated: Feb 26, 2020 09:06PM UTC

Hi, you can use the "Custom Parameter Handler" plugin from the BApp shop. In this way you won't need 2 burp apps running. Keep in mind that the order of the plugin matters in some cases. If you are using Logger++ move it down on the list as the last item that you will load otherwise it might not show you correct info from the requests.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.