Queries the http://www.hostip.info/ api to get the country / state information based on the user's ip or specific ip passed to it.

By default, it shows the Country/State information on the user profile page. You can show / hide this information thorugh the setting from Admin->Configuration->Hostip Settings page.

It saves the Country/State information in session variable, hostip_data, to improve the performance. This way call will be made once for a given user.

You can turn off the above setting and then just call the hostip_get_iptocountry_info() function to get the country related information where ever you need it. IP address is an optional parameter for this function.

Sponsorship

Project information

Releases