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

1 Comment

  1. Donna

    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 Comment

Your email address will not be published. Required fields are marked *