You don’t need to blacklist based on IP. You can specify the country directly. See man 5 tor.conf: ExcludeNodes and ExcludeExitNodes as well as the node definition under NodeFamily: This option can be used multiple times. In addition to nodes, you can also list IP address and ranges and country codes in {curly braces}.