Title: User Location and IP
Author: Sunny Bundel
Published: <strong>Ыам ыйа 13, 2020</strong>
Last modified: Атырдьах ыйа 29, 2025

---

Search plugins

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

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# User Location and IP

 By [Sunny Bundel](https://profiles.wordpress.org/sunnybundel/)

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

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

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

## Description

“User Location and IP” plugin is one of the best free WordPress plugins that let
you know all the information about your visitors in real-time, including their IP
address, ISP details, location, operating system, browser, city, and many other 
details, all of which can be displayed via shortcodes on your website posts, pages,
and widget.

In order to use this plugin, you just need to copy one of the appropriate shortcodes
from the list below. You can paste it into the location where you want the details
to appear. This can be in the sidebar, the header, the footer, or even in the middle
of the content.

“User Location and IP” plugin uses the [IP-API](http://ip-api.com) website to fetch
users details based on their IP address.

Here’s the list of various shortcodes provided by the “User Location and IP” plugin:

    ```
    [useriploc type="ip"]
    [useriploc type="continent"]
    [useriploc type="country"]
    [useriploc type="countrycode"]
    [useriploc type="region"]
    [useriploc type="regionname"]
    [useriploc type="city"]
    [useriploc type="lat"]
    [useriploc type="lon"]
    [useriploc type="timezone"]
    [useriploc type="currency"]
    [useriploc type="isp"]
    [useriploc type="browser"]
    [useriploc type="os"]
    [useriploc type="flag" height="auto" width="50px" vertical_align="baseline"]
    ```

As for the Flag shortcode, the height, width, and vertical_align attributes are 
optional. The default values for height and weight are auto and 50px, respectively.
For the vertical_align attribute, baseline is the default value. You can, however,
change the vertical_align attribute value to bottom, middle, or top based on the
location where you want the flag to appear. Depending on your preference, you can
pass one or both of these values to alter the flag’s size.

#### Features of User IP and Location

 * Setup is quick and easy.
 * Installation is minimal and does not increase the load on the website.
 * “User Location and IP” provides live and accurate data that is up-to-date.
 * Allows you to display user IP address and location, operating system, browser
   details, etc anywhere on your website using shortcodes.
 * Support for flags and currency shortcodes.

If you are looking for a plugin that can display visitors’ real-time information
anywhere on your blog, then User Location and IP can help you. The plugin is free
and doesn’t require any registration.

#### Credits

I am pleased to announce the release of this plugin which was created by [Sunny Bundel](https://sunnybundel.com/)
with the help of the team at [ WP Talky](https://wptalky.com/) and [ MyTechTalky](https://mytechtalky.com/).

There are also tutorials available on MyTechTalky about WordPress, including:

 * [How to Start a Blog Using WordPress](https://mytechtalky.com/start-a-blog/)

…and many more [WordPress tutorials](https://mytechtalky.com/wordpress/).

## Screenshots

[⌊An example of shortcodes in "Add New Post"⌉⌊An example of shortcodes in "Add New
Post"⌉[

An example of shortcodes in “Add New Post”

[⌊Screenshot of "Public Post" page with IP address and other information about the
user.⌉⌊Screenshot of "Public Post" page with IP address and other information about
the user.⌉[

Screenshot of “Public Post” page with IP address and other information about the
user.

## Installation

### Directly from the WordPress repository (recommended)

 * Navigate to _Dashboard > Plugins > Add New_.
 * Enter `User Location and IP` in the search box.
 * Click on the `Install` button.
 * Finally, click on the `Activate` button.

### Manual Installation

 * Download the “User location and IP” plugin from the WordPress Repository as a`.
   zip` file.
 * Navigate to _Dashboard > Plugins > Add New_.
 * Click on the `Upload Plugin` button.
 * Now choose the .zip file which you downloaded and click on `Install Now`.
 * Finally, click on the `Activate` button.

## FAQ

### Can I use User Location and IP to Show User IP?

Yes, you can use the `[useriploc type="ip"]` shortcode to show the IP address of
the visitor.

### Can I use User Location and IP to Show User Location?

You can use the shortcodes provided with “User Location and IP” plugin to show a
user’s location, including country, region, country code, city, latitude, longitude,
and other useful information.

### Are flags supported by this plugin?

Yes, flag shortcodes are supported by this plugin. You can display the flag of a
visitor’s country using the [useriploc type=”flag” height=”auto” width=”50px” vertical_align
=”baseline”] shortcode. Height, width, and vertical_align are optional, and the 
default values are auto for height, 50px for width, and baseline for vertical_align.
It is possible to pass any or all of these values to change the flag’s size and 
alignment.

## Reviews

![](https://secure.gravatar.com/avatar/b8b5d05f16c9f7a56e2e008a523e8bbb27f52a91f8692e8265f2831d7063f2d7?
s=60&d=retro&r=g)

### 󠀁[Great Plugin! | Perfect for Lockout Pages](https://wordpress.org/support/topic/great-plugin-perfect-for-lockout-pages/)󠁿

 [Generosus](https://profiles.wordpress.org/generosus/) Алтынньы 31, 2022 1 reply

This multi-features plugin works out of the box. Perfect for customizing lockout(
security) pages. It saved us countless coding hours. Thank you!

![](https://secure.gravatar.com/avatar/7b3677a2c74330f3653bc6b6a805f6399cf65110818c80f6b725fcbdac2eaa37?
s=60&d=retro&r=g)

### 󠀁[Thanks, love it!](https://wordpress.org/support/topic/thanks-love-it-2/)󠁿

 [cuber617](https://profiles.wordpress.org/cuber617/) Балаҕан ыйа 21, 2022 1 reply

Love this, thanks so much! Any chance to have incorporated into text of a post such
as "thanks for joining us from USER LOCATION CITY"? Thanks!

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

## Contributors & Developers

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

Contributors

 *   [ Sunny Bundel ](https://profiles.wordpress.org/sunnybundel/)

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

### Interested in development?

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

## Changelog

#### 2.0 — 29 August 2025

 * SECURITY: Fixed Cross-Site Scripting (XSS) vulnerabilities by adding proper output
   sanitization.
 * Improved input validation and data escaping for all user-facing outputs.
 * Enhanced security measures to prevent malicious code injection.

#### 1.7 — 25 October 2023

 * Code was sanitized to ensure security.
 * The latest data was updated.
 * Updated to work with the latest WordPress version.

#### 1.6 — 10 November 2022

 * Added support for the `vertical-align` CSS attribute to align the flag properly.
 * Updated to work with the latest WordPress version.
 * Fixed minor bugs.

#### 1.5 — 16 August 2022

 * Added support for browser and operating system detection.
 * New shortcodes have been added.
 * Fixed minor bugs.

#### 1.4

 * Updated to work with the latest version of WordPress.

#### 1.3

 * Fixed a bug where the IP address of your server was displayed instead of the 
   visitor’s IP.

#### 1.2

 * Updated to work with the latest version of WordPress.

#### 1.1

 * Fixed minor bugs.

#### 1.0

 * Initial release

## Meta

 *  Version **2.0**
 *  Last updated **1 сыл ago**
 *  Active installations **400+**
 *  WordPress version ** 5.4 or higher **
 *  Tested up to **6.8.11**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/user-location-and-ip/)
 * Tags
 * [city](https://sah.wordpress.org/plugins/tags/city/)[ip address](https://sah.wordpress.org/plugins/tags/ip-address/)
   [region](https://sah.wordpress.org/plugins/tags/region/)[user country](https://sah.wordpress.org/plugins/tags/user-country/)
   [user location](https://sah.wordpress.org/plugins/tags/user-location/)
 *  [Advanced View](https://sah.wordpress.org/plugins/user-location-and-ip/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/user-location-and-ip/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/user-location-and-ip/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/user-location-and-ip/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/user-location-and-ip/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/user-location-and-ip/reviews/?filter=1)

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

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

## Contributors

 *   [ Sunny Bundel ](https://profiles.wordpress.org/sunnybundel/)

## Support

Got something to say? Need help?

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