If you don't mind blocking everything hosted on GCP as well:
> dig TXT +short _netblocks{,2,3}.google.com | tr ' ' '\n' | egrep "(ip4:|ip6:)"
Gives you a full list of all of Google's IP blocks. You can just blackhole those.
> dig TXT +short _netblocks{,2,3}.google.com | tr ' ' '\n' | egrep "(ip4:|ip6:)"
Gives you a full list of all of Google's IP blocks. You can just blackhole those.
whois -h whois.radb.net '!gAS15169'Another method is using GeoIP's ASN database, but they also run many ASNs so it would require a little effort to ensure you have them all
I tried .apple.com, .yahoo.com, etc. and got nothing.