Hi Hank,

On Mon, Jun 06, 2011 at 01:18:09AM -0700, Hank A. Paulson wrote:
> I recently found this resource:
> http://www.countryipblocks.net/
> on the day they say they are closing due to lack of donations. :(

Too bad, I found they were very open and had a large number of lists in
various formats. Maybe it's one reason why too few people were paying.
There's hardly a place for more than one such providers unfortunately.
I still don't understand why such lists are not provided by network
registries :-(

> I thought other hap users might be interested in this use case and will 
> hopefully think about donating, too.

I agree with you. I have relayed your call on the main page too.

> For one site targeting users in several countries au, nz, etc. to be able 
> to do per-country stats, I am add a header based on the ip:
> 
>         acl ipcc_au src -f /etc/haproxy/au_ips.txt
>         acl ipcc_nz src -f /etc/haproxy/nz_ips.txt
> 
>         reqadd X-Country:\ au if ipcc_au
>         reqadd X-Country:\ nz if ipcc_nz
> 
> With haproxy and these lists, it is fast and easy to add the country info to
> requests.
> 
> Is anyone else doing something similar?

Yes, I've already helped off-list several subscribers to do similar things.
The most common need is to select the proper datacenter depending on the
continent, which involves very little lists to manage. The ability to map
keys to data from a file is still in the roadmap, but this requires the
work on patterns to be done first. Once done, it will be even easier, you'd
only have to load all your IP:country map file and perform the operation
once.

> Or other sources for this or other similar types of info?

As Hervé pointed it, Maxmind offers lists too, though they need some
processing first. Haproxy does not yet handle IP ranges, only CIDRs
because there was no such need due to the convenient lists provided
by Country IP Blocks. Maybe I should implement the ranges though,
it's easy enough even to be done in -stable.

Regards,
Willy


Reply via email to