Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 963
babakgh Avatar asked Jan 18 '13 11:01

babakgh


People also ask

How do I block specific requests?

Right-click on the request in the Network panel and select Block Request URL. A new Request blocking tab pops up in the Drawer, which lets you manage blocked requests.

What is network request blocking?

Chrome DevTools network request blocking allows you to see how your page behaves when a particular script, stylesheet, or other resource isn't available. After you identify third-party scripts that you suspect affect performance, measure how your load time changes by blocking the requests to those scripts.


1 Answers

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.

like image 146
EricLaw Avatar answered Nov 09 '22 06:11

EricLaw