What this solution does
The module determines the country by IP address and the city (Russia only). It relies on up-to-date RIPE NCC and IpGeoNames (RU-CENTER) databases. Data is stored in dedicated tables within the 1C-Bitrix database, enabling near-instant IP identification. Additional caching of current query results further reduces processing time.
To retrieve data, call the method RuHelp\GeoIP::GetData('XXX.XXX.XXX.XXX') in the code, where the placeholder represents the IP address to check.
In the product settings on the Geolocation page, the handler 'RuHelp.GeoIP' appears in the handlers list and can be added to retrieve data.
If the Web Analytics module is active, an additional data source becomes available in its settings for the 'Country and City' parameters.
The location display component is located in the 'Services' group of installed 1C-Bitrix components.
A background agent is created to load data. When running on cron, it executes daily at a random time between 07:35 and 07:55. If the system uses hit agents, the agent is created but its activity is disabled. To load data, you must manually configure the execution of the RuHelp\GeoIP::LoadData() function or switch the system to cron and activate the agent.
General iT can install and configure this module and check how it works on your website.