Title: User Location and IP
Author: Sunny Bundel
Published: <strong>13 Maggio 2020</strong>
Last modified: 29 Agosto 2025

---

Ricerca i plugin

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

Questo plugin **non è stato testato con le ultime 3 versioni principali (major releases)
di WordPress**. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare
problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

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

# User Location and IP

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

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

 * [Dettagli](https://it.wordpress.org/plugins/user-location-and-ip/#description)
 * [Recensioni](https://it.wordpress.org/plugins/user-location-and-ip/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/user-location-and-ip/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/user-location-and-ip/#developers)

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

## Descrizione

“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/).

## Screenshot

[⌊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.

## Installazione

### 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.

## Recensioni

![](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 Ottobre 2022 1 risposta

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 Settembre 2022 1 risposta

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!

 [ Leggi tutte le recensioni di 2 ](https://wordpress.org/support/plugin/user-location-and-ip/reviews/)

## Contributi e sviluppo

“User Location and IP” è un software open source. Le persone che hanno contribuito
allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

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

[Traduci “User Location and IP” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/user-location-and-ip)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/user-location-and-ip/)
segui il [repository SVN](https://plugins.svn.wordpress.org/user-location-and-ip/),
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/user-location-and-ip/)
tramite [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

 *  Versione **2.0**
 *  Ultimo aggiornamento **1 anno fa**
 *  Installazioni attive **400+**
 *  Versione WordPress ** 5.4 o superiore **
 *  Testato fino alla versione **6.8.11**
 *  Versione PHP ** 7.2 o superiore **
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/user-location-and-ip/)
 * Tag
 * [city](https://it.wordpress.org/plugins/tags/city/)[ip address](https://it.wordpress.org/plugins/tags/ip-address/)
   [region](https://it.wordpress.org/plugins/tags/region/)[user country](https://it.wordpress.org/plugins/tags/user-country/)
   [user location](https://it.wordpress.org/plugins/tags/user-location/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/user-location-and-ip/advanced/)

## Valutazioni

 5 su 5 stelle.

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

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

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/user-location-and-ip/reviews/)

## Collaboratori

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

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/user-location-and-ip/)