Why does Chromium connect to Google on startup?
I installed Chromium on Ubuntu from the official repositories. I
- disabled everything in the "Privacy" section
- am not logged in
- set my default search to duckduckgo
- set my first page to an empty tab
Then I closed Chromium, launched Wireshark, started a capture and opened Chromium again. After a few seconds I saw an https connection to 173.194.40.83, which is a Google IP.
Why does Chromium connect to Google at every startup? Unfortunately it's an SSL connection so I can't see what is being sent. Is there any way to see the unencrypted content of that traffic?
Solution 1:
The page searchdomaincheck returns your preferred Google domain. For me, visiting it returns https://www.google.com/
normally, but https://www.google.com.py/
in a temporary profile and incognito mode.
This is its main function, although I fail to see why it is needed if you're not using the Google search engine. To make this possible, Chromium has to be sending your Google cookies.
The request to searchdomaincheck is made by the GoogleURLTracker class, which says in its comments:
// This object is responsible for checking the Google URL once per network
// change, and if necessary prompting the user to see if they want to change to
// using it. The current and last prompted values are saved to prefs.
A "network change" will be detected, e.g., by the function OnIPAddressChanged()
.
I'm desperately trying not to behave tinfoilhattish here, but this sounds like a cheap way to associate a tracking cookie with an IP address.
According to List of Chromium Command Line Switches, the command-line switch --google-search-domain-check-url
should be able to stop this behavior.
Try invoking Chromium as follows:
chromium-browser --google-search-domain-check-url=localhost