阻止特定URL进行测试的最佳方式是什么? [英] What is the best way to block specific URL for testing?

查看:306
本文介绍了阻止特定URL进行测试的最佳方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Chrome和Fiddler版本4.4观察网站。

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

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

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.

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

What is the easiest way to block the URL?

推荐答案

你想要发生什么?

转到AutoResponder选项卡。勾选启用自动回复不匹配的请求通过。点击添加按钮。在顶部框中,输入 http://example.com/yourURLisHere 。在下方的框中,选择 404_Plain.dat ,或选择 * drop *重置。第一个返回一个404.第二个只要删除连接,如果它看到目标URL。第三个发送TCP / IP RST数据包,如果它看到目标URL。

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.

这篇关于阻止特定URL进行测试的最佳方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆