This plugin would figure out location by matching his IP address to IP addresses database.
Furthermore, for sites using qTranslate X for multilanguage, it can set the language of the site upon the user's first visit, using country-based rules that you set up in the plugin options.
Normally qTranslate X offers automatic setting of language based on the language, but in many countries localisation is not as popular and lot of people use english language browsers, so this method is not reliable and some people would prefer to set the language based on the user's country..
It also does its best to recognize robots, crawlers and content fetchers run for regular site visitors..
Future verions will also provide tool for geolocation, using GPS and WiFi data ..
Activate the plugin through 'Plugins WordPress...
The connection timeout is set to 2 seconds for CURLOPT CONNECTTIMEOUT and 4 seconds for CURLOPT TIMEOUT, so that the page loading time is not delayed when the servers are not responding.
If you experience timeouts often write on GitHub or WordPress support forums and the limits will be reconsidered...
The plugin also uses the session to store the information, so that IP database is queried only upon the first page load...
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Read more