From this page you can directly download lists of IP addresses for selected countries.

Using the form you can select the country and the format of the IP address list.

Since these lists can be used to block access from whole counties, I provide a number of formats including a simple list of IP ranges, a format that can be used with iptables, another for ipset and a fourth that can be used by Peerblock.

Simply select the country and the format below to download an IP list.

Output Format:

IP list