My Digital ContributionPosts RSS Comments RSS

Country Block

Country Block is a bash script that will download the country zone files from, extract the ip address ranges and put them into hosts.deny. You can list “safe” countries which will then be ignored and not inserted into the hosts.deny file. Special thanks to the folks at who provide this awesome free service. Check them out at

Latest Release: 0.2

Download Link

One Response to “Country Block”

  1. Donnaon Mar 2nd 2008 at 9:47 pm

    There is another website that provides even better services. At you can get .htaccess allow and deny files for more than 240 countries, plus you can get Access Control Lists in CIDR or Netmask format, and they have a searchable IP database.

Leave a Reply