
To show the content for California or New York visitors only.
Ip2location code#
Note: XX is a two-character ISO-3166 country code and YY is a ISO-3166-2 sub-division code.

Syntax to show content for specific country and region Only visitors from United States or Canada can view this line. To show the content for United States or Canada visitors only. Note: XX is a two-character ISO-3166 country code. Syntax to show content for specific country You are in Geo-targeting: Customize the post content with IP2Location Tag Get visitor’s location information with Variable Tagĭisplay visitor’s IP address, country name, region name and city name. If you are using the IP2Location IP geolocation web service, please visit IP2Location Web Service for details.
Ip2location update#
Alternatively, you can also manually download and update the BIN data file using the below links:īIN file download: IP2Location Commercial database | IP2Location LITE database (free edition) If you are using the BIN data, you can update the BIN data every month by using the wizard on the settings page for the most accurate result. This plugin supports both IP2Location IP geolocation BIN data and web service for IP geolocation lookup. Customize the page content based on country or region.Displays visitor’s’ information such as.This plugin provides a relatively easy way to detect visitors’ IP addresses and translate it into geolocation information, and then keep visitors better engaged with localized information or content that’s most relevant to them. Therefore, there is no definite answer whether you ought to use BIN or CSV, but you just need to try and decide which one works the best for you.IP2Location Tags helps you to serve specific content to website visitors based on geographic location for different countries and regions via IP address lookup. If you are doing an ad-hoc solution to analyze your traffics or data, using IP2Location BIN data file will save your time and hassle to set up a database for the processing. WordPress, you may consider using the IP2Location BIN data file for a cleaner setup. If you are building a plugin in an open source platform, e.g. For example, if you already have the relational or non-relational database in place, naturally, you should use the CSV format to set up the geolocation database for the lookup, and this will ease your data maintenance and management. It all depends on your project requirements, server architecture, platforms and many other factors. There is no absolute answer to this question. When should you use the BIN data file instead of the CSV data file?
Ip2location free#

As a result, you can have much faster query performance.
Ip2location install#

The other format is the IP2Location BIN data file format. One is the Comma Separated Values (CSV) file format which users can use to set up a relational or NoSQL database, such as SQL Server, MySQL, Oracle, MongoDB and so on, for geolocation lookup. IP2Location geolocation data comes in 2 different data file formats.
