I am using your code on one of the sites that i manage.
It occurred to me that there is no point in doing the ip lookup when a bot is crawling your site for a number of reasons.
The crawlers are usually always shown as US IP addresses
The crawlers don't set cookies so every page request will be a new IP request.
I think it would save a lot of lookups and also increase the perceived speed of the website to the search bots if the lookup was ignored or set to US whenever a bot request was made.
Am working on a mod to the default class now
