ASN Script to block all Google IP addresses for most UNIX systems
This is the ASN script by Mike Kuketz and maloe. It is used to block the IP address spaces of Google and other companies. Originally it was developed for IPFire. However, it also works with AFWall and iptables.
I also have a modified version for macOS pf if anyone needs it.
Talking about this from a practical standpoint (because in theory avoiding these companies is a very good idea), how would one work with this? No google access = no Google services + no Internet traffic from any Google IP. Same with Microsoft and Amazon. With how much traffic that flows out from these cloud providers, one would be looking at a very limited Internet of one were to implement this.
It depends on the use case. I have had good experience blocking Google completely. It is more difficult with Microsoft and especially Cloudflare. You can choose the companies freely, which means that it does not have to be all of them.