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?

  • 1
    Intercept the server response and remove the contents of the JavaScript file from the response. – void_in Apr 15 '16 at 4:36
  • Can't you just drop the request for the file? Click 'Drop' instead of 'Forward'? – Mark Koek May 31 '16 at 7:41
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.