简体   繁体   English

如何在Charles Proxy中阻止localhost流量?

[英]How to block localhost traffic in charles proxy?

I have set up charles proxy on a windows PC. 我已经在Windows PC上设置了Charles代理。 I am using it to monitor network traffic from an Android device. 我正在使用它来监视来自Android设备的网络流量。 However, there is also traffic from the localhost (windows PC) that gets captured even when browser is closed (due to background applications and services). 但是,即使关闭浏览器(由于后台应用程序和服务),本地主机(Windows PC)也有流量被捕获。 How do I block that traffic from being captured by Charles proxy? 如何阻止该流量被Charles代理捕获?

This problem comes up because CharlesProxy changes the whole proxy system settings on Windows when it starts. 由于CharlesProxy启动时会更改Windows上的整个代理系统设置,因此出现此问题。 By what it's said in the documentation ( here ) I think you can change this behaviour in CharlesProxy configuration, this means: make Charles to not modify the system proxy when it starts. 按照文档( 在此处 )中的说法,我认为您可以在CharlesProxy配置中更改此行为,这意味着:使Charles在启动时不修改系统代理。

Anyways, I guess you are asking for this because too many requests appear on the main view. 无论如何,我猜您是在问这个问题,因为主视图上出现了太多请求。 If this is the case, I would strongly recommend you to use the Focused Hosts option, in the View menu. 如果是这种情况,我强烈建议您使用“ 查看”菜单中的“ 聚焦主机”选项。 By focusing hosts you can avoid unwanted http requests to bother you in the monitor panel ( here ). 通过集中主机, 可以避免不必要的http请求打扰您在监视器面板( 此处 )中。 This will make CharlesProxy to group all unwanted http requests to a " Others " item on the Structure view panel. 这将使CharlesProxy将所有不需要的HTTP请求分组到“ 结构”视图面板上的“ 其他 ”项目。

To focus hosts you can right-click on a request and select "Focus" or you can manage all the focused hosts in the Focused Hosts item from the View menu. 要聚焦主机,可以右键单击请求并选择“聚焦”,也可以在“ 查看”菜单中的“ 聚焦主机”项中管理所有聚焦主机

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM