What is the best way to block specific URL for testing?

babakgh picture babakgh · Jan 18, 2013 · Viewed 10.6k times · Source

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?

Answer

EricLaw picture EricLaw · Jan 18, 2013

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.