WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Sunny Kumar v5.0.0

User IP and Location

Want to show your website visitors their IP address, location, and other cool details? This plugin makes it super easy! Now works perfectly with cachi …

User IP and Location

The facts

Rating
4.2★ from 9
Active installs
3k+
Price
Free
Last updated
18 Jun 2026
Added
Mar 2020
Requires WP
5.0
Tested up to
WP 7.0.4
Requires PHP
7.2
Downloads
42,043

Our analysis

AI-assisted

The User IP and Location plugin for WordPress allows you to display visitors' IP addresses, locations, and browser details on your site. It uses shortcodes to insert this information into posts, pages, or sidebars, making it easy to set up and use.

This plugin relies on the free IP-API service for accurate location data and is compatible with caching plugins, ensuring that visitors see their actual information rather than cached data. It also includes advanced features like multi-language support and conditional content display based on visitor location.

Best for: This plugin is suitable for website owners wanting to personalise content based on visitor location.

What it does well

  • Displays visitor IP and location information
  • Uses reliable IP-API service for data
  • Compatible with caching plugins
  • Supports multiple languages
  • Offers customizable output and developer tools

Where it falls short

  • Limited information on pricing for PRO features
  • No details on support or documentation

Verdict

User IP and Location is a straightforward tool for displaying visitor information, with useful features for customisation and development. It may be beneficial for those looking to enhance user engagement through location-based content.

From the developer

Sunny Kumar's own description of User IP and Location, lightly tidied.

Looking to display your website visitor’s IP address, location, browser details, and other information on your WordPress site? Then “User IP and Location” plugin is exactly what you need!

This plugin is very simple to set up and use. Just install it, and you can start showing visitor information anywhere on your website using easy shortcodes. You can put these shortcodes in your posts, pages, sidebar, footer – anywhere you want!

The best part? We use the reliable and free IP-API service to get all the location data, so the information is always accurate and up-to-date.

Works with Caching Plugins!

Are you using WP-Rocket, W3 Total Cache, or any other caching plugin? No problem at all! The plugin is built to work perfectly with all caching plugins. Your visitors will always see their own correct information, not some cached data from another visitor.

New in Version 5.0.0 – Rebuilt Inside, Same Simple Use

Version 5.0.0 is a full internal rewrite for better reliability and easier maintenance. Everything you already use keeps working exactly the same – the same shortcodes, the same settings, the same developer function and REST API. On top of that, browser detection now correctly recognises modern Edge and Opera, the “Clear Cache” button works on sites using Redis/Memcached object caching, and several smaller issues are fixed. See the changelog for the full list.

Advanced Features:

  • Multi-Language Support – Get location names in 8 different languages (English, German, Spanish, Portuguese, French, Japanese, Chinese, Russian)
  • PRO API Key Support – Use your premium IP-API key for higher limits and HTTPS security
  • Smart Caching System – Built-in server-side caching with customizable expiration times (1 hour to 1 week)
  • Conditional Content – Show different content to visitors from specific countries, regions, or cities
  • Block Editor Support – Visitor Info and Conditional Content blocks, plus a handy “{” inline insert for dropping values into a sentence
  • Developer Tools – PHP functions and REST API endpoints for custom development
  • Customizable Output – Change “Yes/No” text to any language or format you prefer

Here are all the shortcodes you can use:

[userip_location type="ip"] - Shows visitor's IP address
[userip_location type="continent"] - Shows continent name
[userip_location type="country"] - Shows country name
[userip_location type="countrycode"] - Shows country code (like IN, US, UK)
[userip_location type="region"] - Shows region code
[userip_location type="regionname"] - Shows region/state name
[userip_location type="city"] - Shows city name
[userip_location type="zip"] - **NEW!** Shows ZIP/postal code
[userip_location type="lat"] - Shows latitude
[userip_location type="lon"] - Shows longitude
[userip_location type="timezone"] - Shows timezone
[userip_location type="currency"] - Shows local currency
[userip_location type="isp"] - Shows internet provider name
[userip_location type="mobile"] - Shows if visitor is on mobile network
[userip_location type="proxy"] - Shows if visitor is using proxy
[userip_location type="hosting"] - Shows if IP is from hosting provider
[userip_location type="browser"] - Shows browser name
[userip_location type="os"] - Shows operating system
[userip_location type="flag" height="auto" width="50px" vertical_align="middle"] - Shows country flag
[userip_localtime] - **NEW!** Shows visitor's current local time
[userip_localdate] - **NEW!** Shows visitor's current local date

Smart Conditional Content:
Show different content to visitors from different places! Perfect for targeted marketing, regional offers, or localized messages.

[userip_conditional country="US,IN"]Content for US and India visitors only[/userip_conditional]
[userip_conditional country_not="CN,RU"]Content for everyone except China and Russia[/userip_conditional]
[userip_conditional region="CA,TX"]Special offers for California and Texas![/userip_conditional]
[userip_conditional city="Mumbai,Delhi"]Mumbai and Delhi exclusive deals[/userip_conditional]

About the Flag Shortcode:
When using the flag shortcode, you can control its size and position. The height, width, and vertical_align options are all optional. By default, height is auto, width is 50px, and it aligns in the middle. You can change these as per your needs.

Block Editor (no shortcode typing needed):
Prefer blocks? In the editor, click the (+) inserter and add:

  • Visitor Info – shows a single value (IP, city, country, flag, local time, and more); pick the field from a dropdown.
  • Conditional Content – show the inner content only to visitors from the countries, regions, or cities you choose.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for making sites fast.

WP-Optimize

Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify f...

Free 1M+ installs 4.8★ (2,606)
LiteSpeed Cache

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

Free 7M+ installs 4.8★ (2,764)
EWWW Image Optimizer

Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faste...

Free 1M+ installs 4.8★ (1,838)
Under Construction

Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...

Free 600k+ installs 4.8★ (1,285)
Smush

Smush

93

Compress and optimize images, enable lazy load, serve WebP & AVIF, and speed up your site with a global im...

Free 1M+ installs 4.8★ (6,051)
Converter for Media

Speed up your website by using our WebP & AVIF Converter. Optimize images and serve WebP and AVIF images i...

Free 500k+ installs 4.9★ (1,097)