🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
IP-to-Country icon
Peut-être abandonné Testé jusqu'à 3.0.5 #32 in country

IP-to-Country

IP-to-Country is a plugin which doesn’t provide any output to users, but which may be used by plugin authors to quickly and easily find, in which country an IP address is located.

Installations actives10+10+ niveaux
Téléchargements · 30D49▲ +36.1% vs prev. 30d
Évaluation3/51 avis
Score de santé24/100En danger
Téléchargements de tous les temps6.7KDepuis mars 2010
Support résolu—Aucun fil de discussion récent
A besoin deWP 2.8.0Php tout
Téléchargements · 7j11▼ -26.7% week over week
Notre verdict

Envisager une alternative

IP-to-Country shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 3/5 and was last updated 12 years ago, and scores 24/100 on our health check.

  • Petite base d'utilisateurs (plus de 10 installations actives)
  • Très peu de critiques jusqu'à présent
  • Pas de mise à jour dans 12 ans
  • Uniquement testé jusqu'à WordPress 3,0 (le dernier est de 7,1)

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

257Sep 5Oct 19Dec 3
Hier2
Moyenne quotidienne (1 ans)1
Jour de pointe1010 Septembre 2026
12 Derniers mois459

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where IP-to-Country stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
country >100 5,874 Best country plugins →
geolocation >100 1,010 Best geolocation plugins →
invisible >100 1,437 Best invisible plugins →
ip >100 9,395 Best ip plugins →
ip to country >100 2,163 Best ip to country plugins →

Adoption de version

Part de sites actifs par version.

  • 0.08100.0%

Répartition des notes

★★★★★★★★★★ 3 from 1 reviews

  • 5★0.00%
  • 4★0.00%
  • 3★100.0%
  • 2★0.00%
  • 1★0.00%

About IP-to-Country

From the official readme · v0.08

Description

IP-to-Country is a plugin which doesn’t provide any output to users, but which
may be used by plugin authors to quickly and easily find, in which country an
IP address is located.

To do so the plugin uses data files from either http://ip-to-country.webhosting.info
(IPv4 only) or http://software77.net/geo-ip/ (both IPv4 and IPv6).
Other sources are possible as long as they have the same format: CSV file,
fields enclosed with quotes (“) and separated with comma (,), lines ending
with LF (\n). Five columns:

  • Lower bound of an IP range.
  • Upper bound of an IP range. Both are represented as one 32-bit integer number,
    such as you can get by using funtion ip2long().
  • 2-character country code
  • 3-character country code
  • Country name

Note: In order to import IPv6 addresses, IPv4 must be imported first. The
reason is, IPv6 database does not carry the full country information with
it, while the IPv4 database does.

Operations:

  • To detect if IP-to-Country plugin is installed:

    $ip2c_available = class_exists(‘PepakIpToCountry’);

  • To find information about a numeric IP address:

    $country = PepakIpToCountry::IP_to_Country_Full(‘8.8.8.8’);
    // returns ‘UNITED STATES’
    $country = PepakIpToCountry::IP_to_Country(‘8.8.8.8’);
    $country = PepakIpToCountry::IP_to_Country_XX(‘8.8.8.8’);
    // both return ‘US’
    $country = PepakIpToCountry::IP_to_Country_XXX(‘8.8.8.8’);
    // returns ‘USA’
    $country = PepakIpToCountry::IP_to_Country_Info(‘8.8.8.8’);
    // returns Array(‘iso_name’=>’UNITED STATES’, ‘iso_code2’=>’US’, ‘iso_code3’=>’USA’)
    $image = PepakIpToCountry::IP_to_Country_Flag(‘8.8.8.8’);
    // returns ”

    You may leave the IP address empty; in that case, IP address of currently
    active user is used instead.

    Note: All requests are cached, so there shouldn’t be a noticeable difference
    between reading IP_to_Country_Info and reading all three pieces of information
    separately using the _Full, _XX and _XXX functions.

  • To interface your plugin’s tables to IP-to-Country plugin’s tables within SQL,
    a function Subselect is published:

    $subselect = PepakIpToCountry::Subselect($ip, $countryfield);

    • $ip is a field that contains IP address in the form of one 32bit number, e.g.
    1. If you store IP addresses in the usual form of four dot-separated
      numbers (‘127.0.0.1’), you can use MySQL’s function INET_ATON:
      $ip = ‘INET_ATON(my_ip_address_field)’;
      It is strongly recommended to use qualified field names (with tablename in
      front, separated by a dot):
      $ip = ‘INET_ATON(banlist.ip_address)’;
    • $countryfield is the field you want returned. It can be one of the following:
      iso_name – returns the same string as PepakIpToCountry::IP_to_Country_Full(…)
      iso_code2 – returns the same string as PepakIpToCountry::IP_to_Country_XX(…)
      iso_code3 – returns the same string as PepakIpToCountry::IP_to_Country_XX(…)

    Note: No checking or validation is done on either of these parameters. It is assumed
    they are field names, NOT strings. DO NOT EVER USE VALUES THAT YOUR USERS CAN
    INFLUENCE! This is important! If you let users supply arguments to Subselect(), you
    are letting them to do whatever they like with your database!

    This function only works with IPv4 addresses.

    Example usage:

    if (class_exists(‘PepakIpToCountry’))
    $field = PepakIpToCountry(“INET_ATON(b.ip_addr)”, ‘iso_code2’);
    else
    $field = ‘NULL’;
    $sql = “SELECT b.*, ${field} country_code FROM ${wpdb->prefix}banlist b WHERE …”;

Note: This plugin requires PHP5. If you want it to work with ZIP files
(e.g. for updating IP-country info from the default location), your PHP
must have extension php_zip enabled.

Installation

  1. Create a subdirectory in your ‘/wp-content/plugins/’ directory and extract the plugin
    there. The plugin subdirectory can be anything you like – I use ‘ip-to-country’, but
    the plugin should accept any name.
  2. Activez le plugin via le menu "plugins" dans WordPress.
  3. You will see a ‘IP-to-Country’ item in your ‘Settings’ menu. It lets you choose
    the source of IP-country info and update the database with it. Please do so, as the
    necessary tables start empty after installation.

Journal de modifications

0.08

  • Ukrainian translation by Michael Yunat.

0.07

  • Updated the Serbo-Croatian translation.

0.06

  • Serbo-Croatian translation by Andrijana Nikolic.
  • Fixed warnings in WordPress 3.5 and newer.

0.05

  • Romanian translation by Alexander Ovsov.

0.04

  • Country name was added to atribute TITLE (until now it only appeared in ALT).

0.03

  • Fixed a bug with some IPv4 addresses (signed vs. unsigned numbers), as
    reported by Andrea.
  • Added method IP_to_Country_Flag which returns an ” tag suitable for
    displaying a small country flag. Icons come from http://www.famfamfam.com.
  • Support for IPv6, using data from http://software77.net/geo-ip/.

Journal des modifications complet sur WordPress.org →

Captures d'écran

Administrative options
Administrative options

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best IP-to-Country alternatives

All country plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Country Based Payments for WooCommerce Country Based Payments for WooCommerce Choose which payment gateway will be available in country/countries. by Ivan Paulin 3K+ ★★★★★★★★★★ 4.3 (12) Il y a 3 ans 37
2 User IP and Location User IP and Location Want to show your website visitors their IP address, location, and other cool details? This… by Sunny Kumar 3K+ ★★★★★★★★★★ 4.2 (9) Il y a 6 mois 54
3 SVG Flags – Country Flag Blocks and Galleries SVG Flags – Country Flag Blocks and Galleries Add responsive SVG country flags, accessible flag images, and multi-country galleries with… Par David Gwyer 2K+ ★★★★★★★★★★ 4.3 (6) Il y a 2 mois 76
4 Polylang – Country Detection Polylang – Country Detection This plugin detects the preferred language according on the country. by Markus Wiesenhofer 1K+ ★★★★★★★★★★ 5 (2) Il y a 4 ans 34
5 IP Locator IP Locator Country and language IP-based detection for WordPress. Fast, reliable, plug & play. by Pierre Lannoy 500+ ★★★★★★★★★★ 5 (1) il y a 1 semaine 77
6 Product Visibility by Country for WooCommerce Product Visibility by Country for WooCommerce Display WooCommerce products by customer's country. par WP WHAM 400+ ★★★★★★★★★★ 4.3 (4) Il y a 2 mois 75
7 country-redirect country-redirect Simple to use free WordPress plugin for redirection depending visitor's country by Andrii 300+ ★★★★★★★★★★ 4.2 (6) Il y a 5 ans 35
8 Country Caching For WP Super Cache Country Caching For WP Super Cache Extends WP Super Cache to cache by page/visitor country instead of just page. Solves "wrong… by wrigs1 200+ ★★★★★★★★★★ 4.3 (4) Il y a 6 ans 31
9 Country Based Bank Accounts for WooCommerce Country Based Bank Accounts for WooCommerce Assign Direct bank transfer accounts to billing countries. Only matching accounts are… by Marian Kadanka 100+ ★★★★★★★★★★ Aucun avis Il y a 2 mois 64
10 ACF City Selector ACF City Selector This plugin adds a new (ACF) field to select a city depending on country and state/province. by Beee 100+ ★★★★★★★★★★ Aucun avis il y a 4 mois 53

FAQ

IP-to-Country: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is IP-to-Country free?

Yes. IP-to-Country is free to download and use from the official WordPress.org plugin directory.

Is IP-to-Country safe to use in 2026?

IP-to-Country shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 3/5 and was last updated 12 years ago, and scores 24/100 on our health check.

How many websites use IP-to-Country?

IP-to-Country is active on 10+ WordPress websites and has been downloaded 6,696 times since it launched in March 2010. It was downloaded 49 times in the last 30 days.

Does IP-to-Country work with WordPress 7.1?

IP-to-Country is officially tested up to WordPress 3.0.5, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was IP-to-Country last updated?

The latest version, 0.08, was released on June 24, 2014 (12 years ago).

Who makes IP-to-Country?

IP-to-Country is developed and maintained by pepak.net.

What are the best alternatives to IP-to-Country?

The most popular alternatives to IP-to-Country are Country Based Payments for… (3K+ installs), User IP and Location (3K+ installs) and SVG Flags (2K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir