ip-api.com
ip-api.com is a service that tells which country an IP address belongs to. Easy Chat Room uses it to fill the Country column of the IP logs.
How it is used
When Enable IP Logging is on in Settings > IP Access, your server sends the visitor's IP address to the GeoIP API Endpoint for each logged login and stores the country code it gets back. Nothing is sent while IP logging is off.
The endpoint is set in Settings > Registration, GeoIP API Endpoint. The default is http://ip-api.com/json/. Easy Chat Room adds the IP address at the end and reads the countryCode field of the answer.
Notes
- The free ip-api.com service is for non-commercial use, has a rate limit and works over plain HTTP. For a commercial site, use ip-api.com's paid service or another service with the same answer format, and enter its address as the endpoint.
- The visitor's IP address goes to an outside service. Mention it in your privacy policy.