Skip to content

Instantly share code, notes, and snippets.

@bebeal
Last active January 1, 2026 01:51
Show Gist options
  • Select an option

  • Save bebeal/288acb8147eb194abdb5d71a5b442933 to your computer and use it in GitHub Desktop.

Select an option

Save bebeal/288acb8147eb194abdb5d71a5b442933 to your computer and use it in GitHub Desktop.
Block google chrome updates
#!/bin/bash
HOSTS_FILE="/etc/hosts"
ENTRIES=(
"127.0.0.1 update.googleapis.com"
"127.0.0.1 tools.google.com"
"127.0.0.1 dl.google.com"
"127.0.0.1 edgedl.me.gvt1.com"
"127.0.0.1 clients2.google.com"
"127.0.0.1 clients4.google.com"
)
for entry in "${ENTRIES[@]}"; do
if ! grep -qF "$entry" "$HOSTS_FILE"; then
echo "$entry" | sudo tee -a "$HOSTS_FILE" > /dev/null
fi
done
echo "Done"
@bebeal
Copy link
Author

bebeal commented Oct 18, 2025

The above will force their reach out to their update server to fail
Screenshot 2025-10-17 at 7 54 07 PM

@bebeal
Copy link
Author

bebeal commented Oct 18, 2025

Because they did this:
Screenshot 2025-10-17 at 3 17 12 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment