Geolocation IP Detection free WordPress plugin
Description
Provides geographic information detected by an IP adress. This can be used in themes or other plugins, as a shortcode, or via CSS body classes. The city & country names are translated in different languages (supported languages). Features: Provides these 5 functions (see API Documentation): geoip_detect2_get_info_from_ip($ip, $locales = array(‘en’), $options = array()): Lookup Geo-Information of the specified IP geoip_detect2_get_info_from_current_ip($locales = array(‘en’), $options = array()): Lookup Geo-Information of the current website user geoip_detect2_get_current_source_description(…): Return a human-readable label of the currently chosen source. geoip_detect2_get_external_ip_adress(): Fetch the internet adress of the webserver geoip_detect2_get_client_ip(): Get client IP (even if it is behind a reverse proxy) You can use one of these data sources (see comparison): Free (default source): HostIP.info (IPv4 only) Free with registration: Maxmind GeoIP2 Lite City, automatically updated weekly Commercial: Maxmind GeoIP2 City or Maxmind GeoIP2 Country Commercial Web-API: Maxmind GeoIP2 Precision (City, Country or Insights) Hosting-Provider dependent: Cloudflare or Amazon AWS CloudFront (Country) Free or Commercial Web-API: Ipstack For the property names, see the results of a specific IP in the wordpress backend (under Tools > Geolocation IP Detection). You can include these properties into your posts and pages by using the shortcode [geoip_detect2 property=”country.name” default=”(country could not be detected)” lang=”en”] (where ‘country.name’ can be one of the other property names as well, and ‘default’ and ‘lang’ are optional). You can show or hide content by using a shortcode [geoip_detect2_show_if country=”FR, DE” not_city=”Berlin”]TEXT[/geoip_detect2_show_if]. See Shortcode Documentation. When enabled on the options page, it adds CSS classes to the body tag such as geoip-province-HE, geoip-country-DE and geoip-continent-EU. When enabled on the options page, the client IP respects a reverse proxy of the server. If you are using Contact Form 7, you can use these shortcodes: A select input with all countries, the detected country being selected by default: [geoip_detect2_countries mycountry] A text
Features
Cost:
Free
Provider:
Yellow Tree (Benjamin Pick)
Popularity:
Low
WPMarket

