Created
March 26, 2026 11:55
-
-
Save willcl-ark/f1fbe15fd807486911058656c580b9a7 to your computer and use it in GitHub Desktop.
ban /16's belonging to bitprojects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Disconnect from sybil bitprojects nodes | |
| # See https://willcl-ark.github.io/dnsseedrs/#prefix-table | |
| # The banlist starts below. | |
| # This file is a script! Never run a script without verifying the file contents first. | |
| # An attacker could put a 'bitcoin-cli sendall <ATTACKER ADDRESS>' in here. | |
| # In an attempt to stop you from running this as script I'm adding an 'exit' in here. | |
| echo "You just got your funds stolen." | |
| exit -1 | |
| # ----------------------- | |
| for prefix in \ | |
| 123.100.0.0/16 \ | |
| 103.246.0.0/16 \ | |
| 203.11.0.0/16 \ | |
| 184.174.0.0/16 \ | |
| 216.107.0.0/16 \ | |
| 45.40.0.0/16 \ | |
| 89.106.0.0/16 \ | |
| 103.47.0.0/16 \ | |
| 206.206.0.0/16 \ | |
| 174.140.0.0/16 \ | |
| 173.46.0.0/16 \ | |
| 66.163.0.0/16 | |
| do | |
| bitcoin-cli setban "$prefix" add 315360000 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment