Follow

block-all-google.sh

This will block all Google services - GMail, YouTube, Google Play, ads, tracking and so on, both good and bad. It's worth noting that any sites that depend on Google to serve their content most likely will break, or at a minimum not function properly.

It works by adding all the downloaded Google IP ranges to the routing table, which get routed to localhost..

github.com/wesaphzt/block-all-

"Tested on Ubuntu 18.04 only.

Contacts third-party network services to retrieve proxies and IP ranges.

If you don't agree to their respective terms of service (ToS), don't use the script or modify it to suit your needs."

probably needs some further testing...

Show thread

@FuckOffGoogle Sounds great 👍 I'm already blocking Google using Cloud Firewall in Firefox but you never know which other apps are talking to them in the background.Unfortunately it doesn't seem to work on my computer 😢 Here's the result:
script set to block
running as root
check network interface connectivity
interface wlp0s19f2u2 online
pinging ipinfo.io
ipinfo.io ping success
pinging google
google ping success
downloading ip ranges to /root/AS15169
making changes to routing table
0 ip ranges processed
ping test google again
fail (google ping successful)
//done

@FuckOffGoogle

In order to block all Google IPs you've to use all ASN numbers - not only AS15169

AS15169
AS16591
AS19527
AS36384
AS36385
AS36492
AS41264
AS43515
AS45566
AS139070
AS139190
AS394699
AS395973
AS396982

@Wolfram @FuckOffGoogle also why is this routing to localhost? Plz don't do that, use a null route

Don't advertise tools like this unless you understand the consequences

@Wolfram @FuckOffGoogle Thanks for the list 👍 I think I'll have to check if my Cloudflare Firewall is still complete or if they have new ASNs...

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!