Thank you for your comment.
Maybe it is not clear to you the purpose of this package. In that case, we wish to apologize.
To clarify, this package just uses a tool supplied by the Tor project to find the IP range of a given IP address.
Then it can generate shell script commands to use with the Linux iptables command to block the IP range associated with a given IP address.
The determination of the user country based on the user IP address uses a data file provided with this package that was generated by the geoip-db-tool from the Tor project.
You can look at that file here:
Is this explanation of what this class does better for you?