Skip Navigation
ASN Script to block all Google IP addresses for most UNIX systems
  • 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.

  • deGoogle @discuss.tchncs.de lincoln @discuss.tchncs.de
    ASN Script to block all Google IPs

    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.

    Terminal:

    Download:

    curl -O https://notabug.org/maloe/ASN_IPFire_Script/raw/master/asn_ipfire.sh chmod +x asn_ipfire.sh

    Run:

    ./asn_ipfire.sh --add "Google,Facebook,Twitter,Oracle,Acxiom"

    If it is to be used with iptables then --iptables must be used instead of --add.

    For AfWall use --afwall.

    Any major company can be selected by typing in the appropriate name as shown here.

    At the end the output file will be generated.

    0
    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.

    Terminal:

    Download:

    curl -O https://notabug.org/maloe/ASN_IPFire_Script/raw/master/asn_ipfire.sh chmod +x asn_ipfire.sh

    Run:

    ./asn_ipfire.sh --add "Google,Facebook,Twitter,Oracle,Acxiom"

    If it is to be used with iptables then --iptables must be used instead of --add.

    For AfWall use --afwall.

    Any major company can be selected by typing in the appropriate name as shown here.

    When the script is finished an output file will appear. This can then be used.

    3
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)LI
    lincoln @discuss.tchncs.de
    Posts 2
    Comments 6
    Moderates