如何禁用谷歌Chrome的未请求连接?

时间:2022-10-03 00:04:40

When chrome is sitting idle in the background, I still see that it sending and receiving packets. How can I disable all unrequested connections of Google Chrome. Firefox is nice enough to tell us all the unrequested connections it makes and how to disable them.

当chrome在后台闲置时,我仍然看到它发送和接收数据包。如何禁用谷歌Chrome的所有未请求连接。Firefox很好地告诉我们它所建立的所有未请求的连接以及如何禁用它们。

2 个解决方案

#1


0  

From http://peter.sh/experiments/chromium-command-line-switches/ (hooray Google whackamole):

从http://peter。sh /实验/ chromium-command-line-switches /(万岁谷歌whackamole):

Try --disable-background-networking?

尝试——disable-background-networking ?

#2


3  

I am a Google Chrome user who has some experience with this kind of stuff and I'm currently using version 35.0.1916.153. I was looking for a way to stop Chrome's unsolicited chatter and over a period of a day I came up with the following hacks that turned out successfully rendering Chrome virtually silent. This method is easy and ethical and provided by Google's own internal control code. This article is of my own writing and your free to copy it and pass it along if this web servers TOS allows it. You could simply send a link of this page as well.

我是一个谷歌Chrome用户,对这类东西有一些经验,我目前正在使用35.0.1916.153版本。我一直在寻找一种方法来阻止Chrome不请自来的喋喋不休,在一天的时间里,我想出了下面的一些技巧,这些技巧最终成功地让Chrome保持了沉默。这种方法简单、道德,由谷歌自己的内部控制代码提供。这篇文章是我自己写的,如果这个web服务器TOS允许的话,您可以*地复制和传递它。你也可以简单地发送这个页面的链接。

The goal here is to reduce unwanted background traffic that Google Chrome performs on a continuous basis to and from it's own remote servers by default.

这里的目标是减少谷歌Chrome在默认情况下对自己的远程服务器进行的不需要的后台流量。

It is a fact that Google insists on sending and receiving unsolicited background traffic without giving the user a way to go offline. I have applied some developer settings that are available from the source code via command line switches. I also disabled all but one users advanced privacy level setting via chrome://settings/

谷歌坚持发送和接收未经请求的后台流量,而不给用户一条下线的途径,这是事实。我已经应用了一些可以通过命令行开关从源代码中获得的开发人员设置。除了一名用户外,我还通过chrome://settings/禁用了所有高级隐私级别设置

Please be aware the following discussion is applying advanced settings to Google Chrome that may interfere with it's normal function. Google provides Chrome the use of background channels to communicate with between themselves and your browser. For example it may effect things like automatic sign-on's too Google accounts and/or component updates you have set up. If you accept the potential issues or have no need for such things in exchange for reduced background traffic then you could try using the tips discussed below. Run your own tests if you don't like the results reverse the process.

请注意下面的讨论是对谷歌Chrome进行高级设置,这可能会干扰它的正常功能。谷歌为Chrome提供了使用后台通道与浏览器之间进行通信的功能。例如,它可能会影响您设置的自动登录的谷歌帐户和/或组件更新。如果您接受了潜在的问题,或者不需要这些东西来换取减少后台流量,那么您可以尝试使用下面讨论的技巧。如果不喜欢结果,请运行您自己的测试。

Note that having extensions or loaded web content not considered to the browser as "background tasking" will create a level of normal network activity at any time during your session. This is normal. Be aware of other installed services and applications that are associated with Chrome. You may desire to deal with those as separate issues not discussed in this article.

注意,在会话期间,如果浏览器不将扩展或加载的web内容视为“后台任务”,则会在任何时候创建一个正常的网络活动级别。这是正常的。注意与Chrome相关的其他已安装服务和应用程序。您可能希望将这些作为本文中未讨论的独立问题来处理。

My results were a 99% total reduction in the amount of background traffic that Chrome uses upon start up and while it sat idle in an "empty session" for the remainder of the day. I observed a very small amount of traffic. Actually only three connections that contained a 7 KB streamed blob of Google SSL certificate verification exchange data to clients2.google.com, a 3 KB streamed blob of an HTTP/1.1 GET /chrome/crlset/xxxx/crl-set-delta-xxxx-xxxxxxxxxxxxxxxxxx.crx.data request from www.gstatic.com and finally a 2 KB streamed blob of an HTTP/1.1 POST /service/update2 request to clients2.google.com. 12 KB total traffic the entire session was observed. This exchange may indeed repeat itself over an unspecified amount of time within the same session. I chose not to investigate deeming it insignificant for my situation.

我的结果是,Chrome在启动时所使用的后台流量总共减少了99%,而在当天剩下的时间里,它一直处于“空会话”状态。我观察到少量的交通。实际上,只有三个连接包含一个7 KB的谷歌SSL证书验证交换数据流到clients2. Google . .com,一个3 KB的HTTP/1.1 GET /chrome/crlset/xxxx/crl-set- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx .crx流。来自www.gstatic.com的数据请求,最后是一个2 KB的HTTP/1.1 POST /service/update2请求流到clients2.google.com。观察整个会话的总通信量为12 KB。在同一会话中,这种交换可能会在不确定的时间内重复发生。我决定不去调查,认为这对我的处境无关紧要。

Ok so you may or may not know how to apply command switches to an application that is being launched to run. For those who don't please read carefully.

好的,所以您可能知道也可能不知道如何将命令开关应用到正在启动以运行的应用程序。对于那些不喜欢阅读的人,请仔细阅读。

Use the command switches listed below applied "after the target path" of the chrome.exe beginning with two dashes --followed-by-the-name-of-the-switch. Putting a single-dash between the breaks within the name of the switch if not already present and a space after the path and in between each switch. It is entered in a command prompt at run time. Or you can add this at the end of the target path from Google Chrome's shortcut (properties/shortcut tab). Which is what you use to launch Chrome using Windows 7 (your path to target may differ so apply corrections as needed). Entered within the tab "Target:" window is the following single line example path to launch Chrome.

使用下面列出的命令开关应用“在目标路径之后”的chrome。exe以两个破折号开头——按开关的名称。在开关的名称中(如果还没有出现的话)的断点之间加上一个单破折号,在路径之后和每个开关之间加上一个空格。在运行时输入命令提示符。或者你可以在目标路径的末尾添加这个,从谷歌Chrome的快捷方式(属性/快捷方式标签)。这就是你使用Windows 7启动Chrome的方法(你的目标路径可能会有不同,所以在需要的时候应用修正)。在“Target:”选项卡中输入的窗口是启动Chrome的单行示例路径。

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-background-networking --disable-component-extensions-with-background-pages --dns-prefetch-disable

“C:\程序文件(x86)\谷歌\ \程序\ Chrome浏览器。exe”——disable-background-networking——disable-component-extensions-with-background-pages dns-prefetch-disable

Switch definitions for testing Google Chrome--

切换测试谷歌Chrome的定义—

--disable-background-networking (This switch disables several subsystems which run network requests in the background. This is normally for use when doing network performance testing to avoid noise in the measurements. This is not default and may interfere with normal browser function.)

-disable-background-networking(此交换机禁用几个在后台运行网络请求的子系统。这通常用于进行网络性能测试时,以避免测量中的噪音。这不是默认设置,可能会干扰正常的浏览器功能。

--disable-component-extensions-with-background-pages (This switch disables default component extensions with background pages. This is normally useful for performance tests where these pages may interfere with performance results. This is not default and may interfere with normal browser function.)

-disable-component-extension -with-background-pages(此开关禁用带有后台页面的默认组件扩展)。这对于性能测试通常很有用,因为这些页面可能会影响性能结果。这不是默认设置,可能会干扰正常的浏览器功能。

--dns-prefetch-disable (Disables prefetching of DNS information. Can reduce unwanted network traffic when not expecting it. This is not default and may effect performance.)

——DNS -prefetch-disable(禁用DNS信息的预取)。在不期望的情况下可以减少不必要的网络流量。这不是默认的,可能会影响性能。

Further settings to apply if you want to reduce background traffic:

如果您想要减少后台流量,需要进一步设置:

Access Chromes browser Settings via chrome://settings/ in the address bar or from the control panel to disable the following. (Please note that disabling these settings may reduce security and functionality.)

通过chrome:// Settings /在地址栏中或从控制面板中访问Chromes浏览器设置,以禁用以下选项。(请注意,禁用这些设置可能会降低安全性和功能。)

(-Settings)

(设置)

(-Show Advanced Settings)

(显示高级设置)

(-Privacy)

(隐私)

(Google Chrome may use web services to improve your browsing experience. You may optionally disable these services.)

(谷歌Chrome可以使用web服务来改善您的浏览体验。您可以选择性地禁用这些服务。

Disable -- [ ] Use a web service to help resolve navigation errors

禁用——[]使用web服务来帮助解决导航错误

Disable -- [ ] Use a prediction service to help complete searches and URLs typed in the address bar or the app launcher search box

禁用——[]使用预测服务来帮助完成在地址栏或应用程序启动程序搜索框中键入的搜索和url

Disable -- [ ] Predict network actions to improve page load performance

Disable——[]预测网络动作,提高页面加载性能

Disable -- [ ] Send suspicious downloaded files to Google

禁用——[]将可疑的下载文件发送到谷歌

Disable -- [ ] Enable phishing and malware protection

禁用-[]启用网络钓鱼和恶意软件保护。

Disable -- [ ] Use a web service to help resolve spelling errors

禁用—[]使用web服务来帮助解决拼写错误。

Disable -- [ ] Automatically send usage statistics and crash reports to Google

禁用——[]自动向谷歌发送使用统计信息和崩溃报告

Enable -- [x] Send a "Do Not Track" request with your browsing traffic

启用——[x]用你的浏览流量发送一个“不跟踪”请求

Hope you find this answer useful,

希望你觉得这个答案有用,

Rob

罗伯

#1


0  

From http://peter.sh/experiments/chromium-command-line-switches/ (hooray Google whackamole):

从http://peter。sh /实验/ chromium-command-line-switches /(万岁谷歌whackamole):

Try --disable-background-networking?

尝试——disable-background-networking ?

#2


3  

I am a Google Chrome user who has some experience with this kind of stuff and I'm currently using version 35.0.1916.153. I was looking for a way to stop Chrome's unsolicited chatter and over a period of a day I came up with the following hacks that turned out successfully rendering Chrome virtually silent. This method is easy and ethical and provided by Google's own internal control code. This article is of my own writing and your free to copy it and pass it along if this web servers TOS allows it. You could simply send a link of this page as well.

我是一个谷歌Chrome用户,对这类东西有一些经验,我目前正在使用35.0.1916.153版本。我一直在寻找一种方法来阻止Chrome不请自来的喋喋不休,在一天的时间里,我想出了下面的一些技巧,这些技巧最终成功地让Chrome保持了沉默。这种方法简单、道德,由谷歌自己的内部控制代码提供。这篇文章是我自己写的,如果这个web服务器TOS允许的话,您可以*地复制和传递它。你也可以简单地发送这个页面的链接。

The goal here is to reduce unwanted background traffic that Google Chrome performs on a continuous basis to and from it's own remote servers by default.

这里的目标是减少谷歌Chrome在默认情况下对自己的远程服务器进行的不需要的后台流量。

It is a fact that Google insists on sending and receiving unsolicited background traffic without giving the user a way to go offline. I have applied some developer settings that are available from the source code via command line switches. I also disabled all but one users advanced privacy level setting via chrome://settings/

谷歌坚持发送和接收未经请求的后台流量,而不给用户一条下线的途径,这是事实。我已经应用了一些可以通过命令行开关从源代码中获得的开发人员设置。除了一名用户外,我还通过chrome://settings/禁用了所有高级隐私级别设置

Please be aware the following discussion is applying advanced settings to Google Chrome that may interfere with it's normal function. Google provides Chrome the use of background channels to communicate with between themselves and your browser. For example it may effect things like automatic sign-on's too Google accounts and/or component updates you have set up. If you accept the potential issues or have no need for such things in exchange for reduced background traffic then you could try using the tips discussed below. Run your own tests if you don't like the results reverse the process.

请注意下面的讨论是对谷歌Chrome进行高级设置,这可能会干扰它的正常功能。谷歌为Chrome提供了使用后台通道与浏览器之间进行通信的功能。例如,它可能会影响您设置的自动登录的谷歌帐户和/或组件更新。如果您接受了潜在的问题,或者不需要这些东西来换取减少后台流量,那么您可以尝试使用下面讨论的技巧。如果不喜欢结果,请运行您自己的测试。

Note that having extensions or loaded web content not considered to the browser as "background tasking" will create a level of normal network activity at any time during your session. This is normal. Be aware of other installed services and applications that are associated with Chrome. You may desire to deal with those as separate issues not discussed in this article.

注意,在会话期间,如果浏览器不将扩展或加载的web内容视为“后台任务”,则会在任何时候创建一个正常的网络活动级别。这是正常的。注意与Chrome相关的其他已安装服务和应用程序。您可能希望将这些作为本文中未讨论的独立问题来处理。

My results were a 99% total reduction in the amount of background traffic that Chrome uses upon start up and while it sat idle in an "empty session" for the remainder of the day. I observed a very small amount of traffic. Actually only three connections that contained a 7 KB streamed blob of Google SSL certificate verification exchange data to clients2.google.com, a 3 KB streamed blob of an HTTP/1.1 GET /chrome/crlset/xxxx/crl-set-delta-xxxx-xxxxxxxxxxxxxxxxxx.crx.data request from www.gstatic.com and finally a 2 KB streamed blob of an HTTP/1.1 POST /service/update2 request to clients2.google.com. 12 KB total traffic the entire session was observed. This exchange may indeed repeat itself over an unspecified amount of time within the same session. I chose not to investigate deeming it insignificant for my situation.

我的结果是,Chrome在启动时所使用的后台流量总共减少了99%,而在当天剩下的时间里,它一直处于“空会话”状态。我观察到少量的交通。实际上,只有三个连接包含一个7 KB的谷歌SSL证书验证交换数据流到clients2. Google . .com,一个3 KB的HTTP/1.1 GET /chrome/crlset/xxxx/crl-set- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx .crx流。来自www.gstatic.com的数据请求,最后是一个2 KB的HTTP/1.1 POST /service/update2请求流到clients2.google.com。观察整个会话的总通信量为12 KB。在同一会话中,这种交换可能会在不确定的时间内重复发生。我决定不去调查,认为这对我的处境无关紧要。

Ok so you may or may not know how to apply command switches to an application that is being launched to run. For those who don't please read carefully.

好的,所以您可能知道也可能不知道如何将命令开关应用到正在启动以运行的应用程序。对于那些不喜欢阅读的人,请仔细阅读。

Use the command switches listed below applied "after the target path" of the chrome.exe beginning with two dashes --followed-by-the-name-of-the-switch. Putting a single-dash between the breaks within the name of the switch if not already present and a space after the path and in between each switch. It is entered in a command prompt at run time. Or you can add this at the end of the target path from Google Chrome's shortcut (properties/shortcut tab). Which is what you use to launch Chrome using Windows 7 (your path to target may differ so apply corrections as needed). Entered within the tab "Target:" window is the following single line example path to launch Chrome.

使用下面列出的命令开关应用“在目标路径之后”的chrome。exe以两个破折号开头——按开关的名称。在开关的名称中(如果还没有出现的话)的断点之间加上一个单破折号,在路径之后和每个开关之间加上一个空格。在运行时输入命令提示符。或者你可以在目标路径的末尾添加这个,从谷歌Chrome的快捷方式(属性/快捷方式标签)。这就是你使用Windows 7启动Chrome的方法(你的目标路径可能会有不同,所以在需要的时候应用修正)。在“Target:”选项卡中输入的窗口是启动Chrome的单行示例路径。

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-background-networking --disable-component-extensions-with-background-pages --dns-prefetch-disable

“C:\程序文件(x86)\谷歌\ \程序\ Chrome浏览器。exe”——disable-background-networking——disable-component-extensions-with-background-pages dns-prefetch-disable

Switch definitions for testing Google Chrome--

切换测试谷歌Chrome的定义—

--disable-background-networking (This switch disables several subsystems which run network requests in the background. This is normally for use when doing network performance testing to avoid noise in the measurements. This is not default and may interfere with normal browser function.)

-disable-background-networking(此交换机禁用几个在后台运行网络请求的子系统。这通常用于进行网络性能测试时,以避免测量中的噪音。这不是默认设置,可能会干扰正常的浏览器功能。

--disable-component-extensions-with-background-pages (This switch disables default component extensions with background pages. This is normally useful for performance tests where these pages may interfere with performance results. This is not default and may interfere with normal browser function.)

-disable-component-extension -with-background-pages(此开关禁用带有后台页面的默认组件扩展)。这对于性能测试通常很有用,因为这些页面可能会影响性能结果。这不是默认设置,可能会干扰正常的浏览器功能。

--dns-prefetch-disable (Disables prefetching of DNS information. Can reduce unwanted network traffic when not expecting it. This is not default and may effect performance.)

——DNS -prefetch-disable(禁用DNS信息的预取)。在不期望的情况下可以减少不必要的网络流量。这不是默认的,可能会影响性能。

Further settings to apply if you want to reduce background traffic:

如果您想要减少后台流量,需要进一步设置:

Access Chromes browser Settings via chrome://settings/ in the address bar or from the control panel to disable the following. (Please note that disabling these settings may reduce security and functionality.)

通过chrome:// Settings /在地址栏中或从控制面板中访问Chromes浏览器设置,以禁用以下选项。(请注意,禁用这些设置可能会降低安全性和功能。)

(-Settings)

(设置)

(-Show Advanced Settings)

(显示高级设置)

(-Privacy)

(隐私)

(Google Chrome may use web services to improve your browsing experience. You may optionally disable these services.)

(谷歌Chrome可以使用web服务来改善您的浏览体验。您可以选择性地禁用这些服务。

Disable -- [ ] Use a web service to help resolve navigation errors

禁用——[]使用web服务来帮助解决导航错误

Disable -- [ ] Use a prediction service to help complete searches and URLs typed in the address bar or the app launcher search box

禁用——[]使用预测服务来帮助完成在地址栏或应用程序启动程序搜索框中键入的搜索和url

Disable -- [ ] Predict network actions to improve page load performance

Disable——[]预测网络动作,提高页面加载性能

Disable -- [ ] Send suspicious downloaded files to Google

禁用——[]将可疑的下载文件发送到谷歌

Disable -- [ ] Enable phishing and malware protection

禁用-[]启用网络钓鱼和恶意软件保护。

Disable -- [ ] Use a web service to help resolve spelling errors

禁用—[]使用web服务来帮助解决拼写错误。

Disable -- [ ] Automatically send usage statistics and crash reports to Google

禁用——[]自动向谷歌发送使用统计信息和崩溃报告

Enable -- [x] Send a "Do Not Track" request with your browsing traffic

启用——[x]用你的浏览流量发送一个“不跟踪”请求

Hope you find this answer useful,

希望你觉得这个答案有用,

Rob

罗伯