Title: Live User IP and Location
Author: Obedullah Sajid
Published: <strong>August 4, 2024</strong>
Last modified: May 25, 2026

---

Search plugins

![](https://ps.w.org/live-user-ip-and-location/assets/banner-772x250.png?rev=3252275)

![](https://ps.w.org/live-user-ip-and-location/assets/icon-256x256.png?rev=3130666)

# Live User IP and Location

 By [Obedullah Sajid](https://profiles.wordpress.org/obedullah/)

[Download](https://downloads.wordpress.org/plugin/live-user-ip-and-location.1.1.1.zip)

 * [Details](https://pcm.wordpress.org/plugins/live-user-ip-and-location/#description)
 * [Reviews](https://pcm.wordpress.org/plugins/live-user-ip-and-location/#reviews)
 *  [Installation](https://pcm.wordpress.org/plugins/live-user-ip-and-location/#installation)
 * [Development](https://pcm.wordpress.org/plugins/live-user-ip-and-location/#developers)

 [Support](https://wordpress.org/support/plugin/live-user-ip-and-location/)

## Description

Live User IP and Location integrates with ipapi.co to fetch visitor geolocation 
and network data and provides shortcodes to display that data anywhere on your site.

Key features:
 * Robust server-side IP detection using common headers. * Optional
IP anonymization to mask the most specific part of the IP (IPv4 and IPv6). * Per-
IP transient caching with configurable TTL to reduce external API calls. * Admin
settings page with API Key Test (AJAX + nonce + capability checks). * 28 shortcodes
to output IP and location data fields. * Safe and standards-compliant implementation
with i18n support.

### Third-Party Services

This plugin uses the ipapi.co service to provide geolocation data. By using this
plugin you agree to the ipapi.co terms of use and privacy policy:
 * https://ipapi.
co/terms/ * https://ipapi.co/privacy/ * The plugin sends the visitor IP address (
or anonymized IP, if enabled) to ipapi.co when shortcode data is requested. * The
plugin stores API responses in local WordPress transients based on IP/API key for
the selected cache duration.

### Usage

Place any of the provided shortcodes in posts, pages, or widgets to display IP or
location data. Example shortcodes:
 [luipl_ip], [luipl_network], [luipl_version],[
luipl_city], [luipl_region], [luipl_region_code], [luipl_country], [luipl_country_name],[
luipl_country_code], [luipl_country_code_iso3], [luipl_country_capital], [luipl_country_tld],[
luipl_continent_code], [luipl_in_eu], [luipl_postal], [luipl_latitude], [luipl_longitude],[
luipl_timezone], [luipl_utc_offset], [luipl_country_calling_code], [luipl_currency],[
luipl_currency_name], [luipl_languages], [luipl_country_area], [luipl_country_population],[
luipl_asn], [luipl_org], [luipl_all_fields]

### Support

For support and further information, visit https://profiles.wordpress.org/obedullah/
or open a support thread on the WordPress plugin page.

### License

This plugin is licensed under the GPL v3 or later. For more information, see https://
www.gnu.org/licenses/gpl-3.0.html.

### Credits

This plugin uses the IP geolocation service provided by IPAPI (https://ipapi.co/).
Thanks to IPAPI for providing geolocation data.

## Screenshots

[⌊Settings page: API Key input, Test button, Cache TTL selector, and IP anonymization
toggle.⌉⌊Settings page: API Key input, Test button, Cache TTL selector, and IP anonymization
toggle.⌉[

Settings page: API Key input, Test button, Cache TTL selector, and IP anonymization
toggle.

[⌊Shortcodes reference grid.⌉⌊Shortcodes reference grid.⌉[

Shortcodes reference grid.

## Installation

 1. Upload the plugin folder to the `/wp-content/plugins/live-user-ip-and-location`
    directory or install the plugin through the WordPress plugins screen.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to the plugin settings page (IP Location), enter your ipapi API key and click
    Save Changes.
 4. Optionally enable IP anonymization for privacy compliance and choose your Cache
    TTL.

## FAQ

### What does IP anonymization do?

When enabled, the plugin partially masks the visitor’s IP address before sending
it to ipapi. For IPv4 the last octet is zeroed (for example: 192.168.1.123 -> 192.168.1.0).
For IPv6 it keeps the first network portion and zeroes the rest to reduce identifiability.
This reduces storage of personally identifiable information and helps with privacy
compliance such as GDPR.

### Do I need an API key?

Yes. Register at https://ipapi.co/free/ to receive a free API key via email and 
paste it into the plugin settings page.

### How does caching work?

Location responses are stored in a transient keyed per-IP and API key to reduce 
repeated external requests. You can configure the TTL (time-to-live) on the settings
page.

### Can I style the shortcode output?

Yes. Shortcode output is plain HTML/text so you can target it with your theme or
custom CSS.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Live User IP and Location” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Obedullah Sajid ](https://profiles.wordpress.org/obedullah/)

[Translate “Live User IP and Location” into your language.](https://translate.wordpress.org/projects/wp-plugins/live-user-ip-and-location)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/live-user-ip-and-location/),
check out the [SVN repository](https://plugins.svn.wordpress.org/live-user-ip-and-location/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/live-user-ip-and-location/)
by [RSS](https://plugins.trac.wordpress.org/log/live-user-ip-and-location/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.1

 * Tested and updated compatibility metadata for WordPress 7.0.
 * Added explicit plugin header text domain metadata and translation loading.
 * Improved translation metadata handling.

#### 1.1.0

 * Added Cache TTL selector to configure transient lifetime.
 * Added IP anonymization toggle for privacy compliance.
 * Added API Key Test button (admin AJAX with nonce and capability checks).
 * Improved IP detection and validation; supports common reverse proxy headers.
 * Implemented per-IP transient caching and per-request static caching to avoid 
   duplicate external calls.
 * Moved admin CSS and JS into assets and enqueued only on the plugin settings page.
 * Improved sanitization, escaping, and i18n for all admin strings.

#### 1.0.1

 * Tested compatibility with WordPress and PHP versions.

#### 1.0

 * Initial release.

## Meta

 *  Version **1.1.1**
 *  Last updated **5 months ago**
 *  Active installations **10+**
 *  WordPress version ** 6.6 or higher **
 *  Tested up to **7.0.7**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/live-user-ip-and-location/)
 * Tags
 * [geolocation](https://pcm.wordpress.org/plugins/tags/geolocation/)[user ip](https://pcm.wordpress.org/plugins/tags/user-ip/)
   [user location](https://pcm.wordpress.org/plugins/tags/user-location/)
 *  [Advanced View](https://pcm.wordpress.org/plugins/live-user-ip-and-location/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/live-user-ip-and-location/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/live-user-ip-and-location/reviews/)

## Contributors

 *   [ Obedullah Sajid ](https://profiles.wordpress.org/obedullah/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/live-user-ip-and-location/)