IP2Location Country Blocker icon
Page Builders & Blocks

IP2Location Country Blocker

Blocks unwanted visitors from accessing your frontend (blog pages) or backend (admin area) by countries or proxy servers.

Developer IP2Location
86 Excellentmaintenance
  • 17 yearson WordPress.org
  • 11plugins
  • 27,560+installs in total
  • 4.1★avg. rating (187)
  • 91%of plugins updated this year
9/14 badges Profile →

Is IP2Location Country Blocker safe to install?

Good choice: actively maintained

  • Pass: Actively maintained Last updated 1 day ago (version 2.46.4).
  • Pass: Compatible with current WordPress Tested up to WordPress 7.1; the current release is 7.1. Needs PHP 7.4+.
  • Pass: Well rated Rated 4.1/5 by 128 users on WordPress.org.
  • Pass: Widely used Active on 20,000+ sites.

Check every plugin on your site with the free WordPress plugin checker →

Based on WordPress.org data, checked Nov 20, 2026. Always keep plugins updated and test changes on a staging site.

Overview

IP2Location Country Blocker describes itself as: “Blocks unwanted visitors from accessing your frontend (blog pages) or backend (admin area) by countries or proxy servers.”

It is active on 20,000+ WordPress sites and rated 4.1 out of 5 by 128 users on WordPress.org. Developers can extend it through 1 actions and 3 filters, listed below.

We haven't published a hands-on review of IP2Location Country Blocker yet. Want one, or need help with it? Send us a request.

How to install IP2Location Country Blocker

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “IP2Location Country Blocker” and pick the one by IP2Location.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install ip2location-country-blocker --activate

Requirements: WordPress 4.7+ · PHP 7.4+ · tested up to WordPress 7.1.5

Hooks & customisation

IP2Location Country Blocker 2.46.4 fires 1 actions and 3 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

ip2location-country-blocker — top hooks
// Filter in ip2location-country-blocker.php
apply_filters( 'ip2location_country_blocker_allow', false, $this->ip(), $result['country_code'], 'backend' );

// Filter in ip2location-country-blocker.php
apply_filters( 'ip2location_country_blocker_ban_list', … );

// Action in ip2location-country-blocker.php
do_action( 'ip2location_country_blocker_blocked', 'backend', $country_code, $this->ip() );

// Filter in ip2location-country-blocker.php
apply_filters( 'ip2location_country_blocker_lookup', $caches, $ip );

Browse all 4 hooks with examples →

IP2Location Country Blocker: frequently asked questions

Is IP2Location Country Blocker free?

Yes. IP2Location Country Blocker is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is IP2Location Country Blocker safe to use?

IP2Location Country Blocker is actively maintained: the latest version was released 1 day ago. Users rate it 4.1 out of 5 from 128 reviews on WordPress.org. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does IP2Location Country Blocker work with WordPress 7.1?

Yes. IP2Location Country Blocker is tested up to WordPress 7.1, the current release. It requires WordPress 4.7 or later and PHP 7.4 or later.

How many websites use IP2Location Country Blocker?

IP2Location Country Blocker is active on 20,000+ WordPress sites, according to WordPress.org. It is currently at version 2.46.4, last updated on November 20, 2026.

What are the best alternatives to IP2Location Country Blocker?

Plugins that do a similar job and are actively maintained include IP2Location Redirection (7,000+ installs).

Can I customise IP2Location Country Blocker without editing its code?

Yes. IP2Location Country Blocker 2.46.4 fires 1 actions and 3 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 4 hooks with examples.

Done for you

Need IP2Location Country Blocker to do more?

Clear starting prices, an exact quote before any work, and changes built so plugin updates never wipe them.

Custom hook snippet

from $49

A small, update-safe change built on the plugin’s own hooks.

  • Code written against the plugin’s actions and filters
  • Tested on a staging copy of your site
  • Install instructions included

Typical turnaround: 2–3 business days

Choose this

Bug or conflict fix

from $79

Errors, broken layouts or two plugins that don’t get along.

  • Find the cause on a staging copy
  • Fix without breaking updates
  • Explain what was wrong

Typical turnaround: 1–3 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need IP2Location Country Blocker customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with IP2Location. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 20, 2026.

More plugins by IP2Location

All 11 →

Redirects visitors to a blog page or a predefined URL based on their country and region geolocated using IP address.

7,000+ installs Updated 1 day ago 3 hooks
Reviewed

Displays visitor’s geolocation information, geo-targeting and customize the page content for different countries based on users location.

200+ installs Updated 2 weeks ago

Simple world clock widget to display analog or digital clock for multiple time zone on your site. Supported local time,…

200+ installs Updated 3 months ago 1 hooks

Library helps you to create location based website or content easily by integrating geolocation solution to your site. It supports…

100+ installs Updated 3 months ago

Alternatives in Page Builders & Blocks

See all →

The Elementor Website Builder has it all: drag and drop page builder, Atomic Editor, pixel perfect design, global and reusable…

10+ million installs Updated 5 days ago 448 hooks
Reviewed

Enables the previous "classic" widgets settings screens in Appearance - Widgets and the Customizer. Disables the block editor from managing…

2+ million installs Updated 12 months ago
Reviewed

Elementor addons with 18+ free widgets, Header & Footer Builder, WooCommerce widgets & templates. Trusted by 2+ million websites.

2+ million installs Updated 4 days ago 91 hooks

Elementor addon: 120+ widgets & templates — Elementor Gallery, Mega Menu, Slider, Form, Post Grid, Accordion, Header Footer Builder &…

1+ million installs Updated 6 days ago 458 hooks