World CIDR Tools

Last data update: April 3, 2006 — Next data update: July 1, 2006


We are finding more geographic diversity lately in spam origination. World CIDR tools are designed to help administrators create geographical blacklists and IPTables rules. The tarball includes the following files:

world.cidr

A single CIDR by country file for RBLDNSD. Use by removing the countries and data you want mail from or create different return codes for accepted and blacklisted countries.

cidr.index

The country index. Suitable for creating a PHP array.

cidr.delim

Tab delimited data file suitable for MySQL data load. For example:

mysql> create database worldcidr;
mysql> use worldcidr;
mysql> create table cidr (country varchar(32), ip_range varchar(24));
mysql> LOAD DATA LOCAL infile 'cidr.delim' INTO TABLE cidr;

Having this data in a database facilitates the creation of a custom RBLDNSD zone or creating IPtables rules with a little bit of sql.

range.delim

Tab delimited range format data file suitable for MySQL data load to three columns; Country, IP-range-start, IP-range-end.

Download