23

I am observing a website with Google Chrome and Fiddler version 4.4.

The page is using AJAX to update its data. I want to block a specific URL to test what will happen if it doesn't work.

What is the easiest way to block the URL?

Brian Rogers
  • 142
  • 2
  • 9
babakgh
  • 269
  • 1
  • 2
  • 12

1 Answers1

37

What would you like to have happen?

Go to the AutoResponder tab. Tick Enable Automatic Responses and Unmatched requests pass through. Click the Add button. In the top box, enter http://example.com/yourURLisHere. In the box below it, select either 404_Plain.dat or choose *drop or *reset. The first returns a 404. The second just drops the connection if it sees the target URL. The third sends a TCP/IP RST packet if it sees the target URL.

EricLaw
  • 56,563
  • 7
  • 151
  • 196
  • thanks @ericlaw. its Perfect. and how I could hide it from session list? actually I used **302_Redirect.dat** and check **Hide Redirects** in Filters tab. is there any other way that I missed? – babakgh Jan 19 '13 at 00:56
  • To hide the request from the session list, you'd probably want to create another rule for the same URL, with the ActionText set to *flag:ui-hide=1 and make sure that this rule appears EARLIER in the list than the one that returns the response. – EricLaw Jan 21 '13 at 17:14
  • Is there a way to block requests containing a specific text in it? – Bells Nov 13 '15 at 04:58
  • 1
    @bells: If you think that's a different question than the question above, then please ask a new question on StackOverflow (and explain) rather than making a comment. – EricLaw Nov 13 '15 at 16:39