阻止特定URL进行测试的最佳方法是什么?

时间:2022-08-27 23:14:38

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

我观察的是谷歌Chrome和Fiddler 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.

该页面使用AJAX来更新其数据。我想阻止一个特定的URL来测试如果它不起作用会发生什么。

What is the easiest way to block the URL?

阻止URL的最简单方法是什么?

1 个解决方案

#1


25  

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.

转到AutoResponder选项卡。勾选启用自动响应和不匹配的请求通过。单击“添加”按钮。在顶部框中,输入http://example.com/yourURLisHere。在它下面的框中,选择404_Plain.dat或选择* drop或* reset。第一个返回404.第二个只是在看到目标URL时断开连接。第三个发送TCP / IP RST数据包,如果它看到目标URL。

#1


25  

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.

转到AutoResponder选项卡。勾选启用自动响应和不匹配的请求通过。单击“添加”按钮。在顶部框中,输入http://example.com/yourURLisHere。在它下面的框中,选择404_Plain.dat或选择* drop或* reset。第一个返回404.第二个只是在看到目标URL时断开连接。第三个发送TCP / IP RST数据包,如果它看到目标URL。