A simple APIs for retrieving country related information from a given IP address. As well as providing an API that other modules can use for their purpose, ip2cc is also able to hook into nodes and comments to provide additional information about the poster, such as country code, country flag (icon), network name, and autonomous system number. This 'work' uses the IP-to-Country Database provided by WebHosting.Info (http://www.webhosting.info), available from http://ip-to-country.webhosting.info.
Redirecting users based on IP address:
If you are looking to redirect users to a particular site version based on their IP address, you may want to take a look at IP to Locale.
Requirements
Additional data such as Country name, number and iso2 and iso3 country codes are available if the Countries API module is installed.
As of 6.x-1.2: If you use the IP to Country Node contrib module that is included with this module (to add country flags to nodes and comments), you must download and install the Country Icons module which is now used to provide the flags.
The DB cron module allows you to create and manage a set of SQL queries. Each query is run at a regular interval using the cron system, and you can specify a different interval for each query.