3

I am using free edition of Burp Suite to analyze some requests. Suppose, website is https://www.example.com.

Now, there is a javascript file in https://www.example.com/templates/scripts/xyz.js. I want to prevent this file from loading while intercepting the requests.

Is there any way in Burp, so that I can drop this resource file?

2
  • 1
    Intercept the server response and remove the contents of the JavaScript file from the response.
    – void_in
    Commented Apr 15, 2016 at 4:36
  • Can't you just drop the request for the file? Click 'Drop' instead of 'Forward'?
    – Mark Koek
    Commented May 31, 2016 at 7:41

1 Answer 1

1

You need to add a "match and replace" rule. Under Proxy > Options > Match and Replace, click the Add button, and fill in the necessary fields so that if the request body contains that URL, Burp will remove it from the request.

enter image description here

enter image description here

You could also remove all JavaScript resources by ticking the Remove all JavaScript field under Response Modification.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .