Title: IP Location Block
Author: Ideologix
Published: <strong>17 Bealtaine, 2021</strong>
Last modified: 24 Lúnasa, 2026

---

Search plugins

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

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

# IP Location Block

 By [Ideologix](https://profiles.wordpress.org/ideologix/)

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

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

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

## Description

IP Location Block is a WordPress geo blocking plugin for blocking or allowing visitors
by country, US state or equivalent region, IP address, CIDR range, or ASN.

Simple view covers common rules. Advanced view adds login, registration, comment,
XML-RPC, bot, response, logging, privacy, provider, and diagnostic controls.

For the recommended setup, connect the [IP Location Block Cloud provider](https://iplocationblock.com/docs/providers/ip-location-block/?utm_source=plugin&utm_medium=wporgpage&utm_campaign=readme)
for premium, frequently updated data, better country accuracy, ASN data, and state
or region precision.

#### WordPress geo blocking by country, state, or region

Use a blocklist to deny selected locations or an allowlist to limit access. Regional
rules use the administrative area returned for a country, such as a state, province,
prefecture, territory, or region. This supports regional availability, service areas,
store access, and site policies. Country rules remain active when precision is unavailable.

#### Key features

 * Block or allow visitors by country and state or equivalent region.
 * Add priority rules for IP addresses, IPv4 or IPv6 CIDR ranges, and ASNs.
 * Protect public pages, login, registration, comments, XML-RPC, and selected wp-
   admin requests.
 * Configure blocked responses and control failed logins or unwanted bots.
 * Search IPs and review validation logs, statistics, and diagnostics.
 * Use frequently updated data from the IP Location Block Cloud provider with country-
   level fallbacks.
 * Encrypt stored IP addresses, with optional anonymization.

#### IP Location Block Cloud provider

 * **Better accuracy:** Premium geolocation databases are updated frequently for
   more reliable country results.
 * **Regional precision:** Add state, province, prefecture, territory, or equivalent
   regional rules.
 * **Broader data:** Use IPv4, IPv6, and ASN information through one managed provider.

Legacy local and third-party providers remain supported for existing installations
and country-level fallback rules. Regional precision requires the IP Location Block
Cloud provider.

#### External services and privacy

 * **IP Location Block Cloud provider:** Selecting this provider sends the visitor
   IP and configured credential to IP Location Block for lookup. Review its [privacy policy](https://iplocationblock.com/privacy-policy/)
   and [terms](https://iplocationblock.com/terms-and-conditions/).
 * **IP2Location LITE:** For compatibility with this provider, the plugin downloads
   country databases on activation and scheduled updates. Review its [terms](https://lite.ip2location.com/terms-of-use)
   and [privacy policy](https://www.ip2location.com/privacy-policy).
 * **MaxMind GeoLite2:** For compatibility with this provider, the plugin uses your
   license key to download databases. Review its [license](https://www.maxmind.com/en/geolite2/eula)
   and [privacy policy](https://www.maxmind.com/en/privacy-policy).
 * **Other remote providers:** Selecting IPInfoDB, IPinfo.io, ipapi, or ipstack 
   sends the visitor IP and configured credential to that service for lookup. No
   remote provider is selected automatically.

Other remote provider policies: [IPInfoDB privacy](https://www.ipinfodb.com/privacy-policy)
and [service agreement](https://www.ipinfodb.com/agreement.pdf); [IPinfo.io privacy](https://ipinfo.io/privacy-policy)
and [terms](https://ipinfo.io/terms-of-service); [ipapi privacy](https://ipapi.com/privacy)
and [terms](https://ipapi.com/terms); [ipstack privacy](https://ipstack.com/privacy)
and [terms](https://ipstack.com/terms).

The administrator chooses the providers and is responsible for any required consent
or disclosure.

#### Documentation, support, and credits

Use the [documentation](https://iplocationblock.com/docs/?utm_source=plugin&utm_medium=wporgpage&utm_campaign=readme),
[troubleshooting guide](https://iplocationblock.com/docs/troubleshooting/), [support forum](https://wordpress.org/support/plugin/ip-location-block/),
or [GitHub](https://github.com/ip-location-block/ip-location-block).

Independently maintained, IP Location Block is based on IP Geo Block by tokkonopapa.
It uses IP2Location LITE and GeoLite2 data under their licenses.

## Screenshots

[⌊Searchable country blocking with European Union shortcuts.⌉⌊Searchable country
blocking with European Union shortcuts.⌉[

Searchable country blocking with European Union shortcuts.

[⌊Block selected United States states or regions alongside country rules.⌉⌊Block
selected United States states or regions alongside country rules.⌉[

Block selected United States states or regions alongside country rules.

[⌊Manage provider precision, IPv6, ASN, quota, and connection status.⌉⌊Manage provider
precision, IPv6, ASN, quota, and connection status.⌉[

Manage provider precision, IPv6, ASN, quota, and connection status.

[⌊Use curated bot presets or control individual crawler rules.⌉⌊Use curated bot 
presets or control individual crawler rules.⌉[

Use curated bot presets or control individual crawler rules.

[⌊Configure every validation target and advanced security control.⌉⌊Configure every
validation target and advanced security control.⌉[

Configure every validation target and advanced security control.

[⌊Review blocked requests, countries, IP versions, and provider performance.⌉⌊Review
blocked requests, countries, IP versions, and provider performance.⌉[

Review blocked requests, countries, IP versions, and provider performance.

[⌊Filter, inspect, and export blocked or allowed validation logs.⌉⌊Filter, inspect,
and export blocked or allowed validation logs.⌉[

Filter, inspect, and export blocked or allowed validation logs.

[⌊Preview country, state or region, ASN, and map results.⌉⌊Preview country, state
or region, ASN, and map results.⌉[

Preview country, state or region, ASN, and map results.

[⌊Check configuration, providers, compatibility, and emergency access.⌉⌊Check configuration,
providers, compatibility, and emergency access.⌉[

Check configuration, providers, compatibility, and emergency access.

## Installation

 1. Open **Plugins > Add New Plugin**, search for **IP Location Block**, install it,
    and activate it.
 2. Open **Settings > IP Location Block**.
 3. In **Simple** view, choose whether to block or allow locations and where protection
    applies.
 4. Connect the IP Location Block Cloud provider for the recommended accuracy, ASN 
    data, and regional precision.
 5. Verify representative IPs in **Search**, save the rules, and use **Advanced** view
    when you need more control.

See the [getting started guide](https://iplocationblock.com/docs/getting-started/)
for a complete walkthrough.

## FAQ

### Can I block visitors from specific US states?

Yes. Connect the IP Location Block Cloud provider, add a United States rule, then
select states under **Regional rules**. Other countries use their equivalent administrative
areas. See [state or region rules](https://iplocationblock.com/docs/blocking-rules/state-region/).

### What does the IP Location Block Cloud provider add?

It uses premium, frequently updated geolocation data for better country accuracy,
ASN information, and state or region precision.

### Which parts of WordPress can the plugin protect?

Public pages, login, registration, comments, XML-RPC, and selected wp-admin requests.
Advanced view controls each target.

### Does it work with page caches, CDNs, and reverse proxies?

Yes, when configured correctly. Page caches may respond before WordPress runs, while
a CDN or proxy can hide the visitor IP. Review the [page-cache guide](https://iplocationblock.com/docs/blocking-rules/page-cache/)
and test **Search**.

### What if I block myself from wp-admin?

Bookmark the private emergency link before enforcing admin rules. If blocked, follow
the [admin access steps](https://iplocationblock.com/docs/troubleshooting/#admin-access-problem).

### Can I migrate settings from IP Geo Block?

Yes. When old settings are detected, Plugin settings offers a migration preview 
before saving them.

## Reviews

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

### 󠀁[Good](https://wordpress.org/support/topic/good-9160/)󠁿

 [dollyforsue](https://profiles.wordpress.org/dollyforsue/) 6 Deireadh an tSamhraidh,
2026 1 reply

Good so far. Just needs to stop reminding me on every single page to leave a review
and will be great. Thank you.

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

### 󠀁[Great plugin does what it promises!](https://wordpress.org/support/topic/great-plugin-does-what-it-promises-8/)󠁿

 [tom4all](https://profiles.wordpress.org/tom4all/) 3 Márta, 2026 1 reply

Works as promised, I just have a few problems with the nonce…

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

### 󠀁[Exactly What I Needed for GEO Blocking!](https://wordpress.org/support/topic/exactly-what-i-needed-for-geo-blocking/)󠁿

 [dmac](https://profiles.wordpress.org/darrenmcentee/) 2 Meán Fómhair, 2025

This plugin is a lifesaver for managing access by location. Setup was quick and 
straightforward, and it’s been working perfectly right out of the box. Since installing
it, I’ve noticed a significant decrease in suspicious login attempts. If you want
an easy, reliable way to block visitors from certain countries, this is an excellent
choice. A practical and well-built plugin!

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

### 󠀁[funciona força bé i redueix trànsit innecessari](https://wordpress.org/support/topic/funciona-forca-be-i-redueix-transit-innecessari/)󠁿

 [ibosch](https://profiles.wordpress.org/ibosch/) 13 Meán an tSamhraidh, 2025

S’ha de ficar com a “mu” a les opcions per a tallar el trànsit que no es vol.Si 
el teu target de clients està al Chunguetistan, pots fer una white list de chunguetistan,
la teva IP de gestió i la IP del servidor. D’aquesta manera evites els centenars
d’atacs continuats que rebia des de EEUU, Alemanya, Irlanda, França, … i ara gràcies
a aquest plugin només rebo visites dels meus clients, que estan a Chunguetistan.
0 bots o crawlers, només visites reals i ventes!gràcies!

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

### 󠀁[Doesn’t Work](https://wordpress.org/support/topic/doesnt-work-3221/)󠁿

 [thebuilder](https://profiles.wordpress.org/cway/) 3 Meán an tSamhraidh, 2025 1
reply

It doesn’t seem to work. Under Settings, in the Matching Rule, Whitelist is selected
and it says ‘A request from which the country code or IP address is NOT in the whitelist
will be blocked.’ I’ve added my state US:State:Colorado. When spam is submitted,
I looked-up their IP address and saw they were from Florida. In the Blacklist matching
rule, I added US:State:Florida, and I still get spam from Florida.

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

### 󠀁[⭐⭐⭐⭐⭐ Perfect for Country-Based Blocking!](https://wordpress.org/support/topic/%e2%ad%90%e2%ad%90%e2%ad%90%e2%ad%90%e2%ad%90-perfect-for-country-based-blocking/)󠁿

 [arultamilnadu](https://profiles.wordpress.org/arultamilnadu/) 5 Márta, 2025

This plugin does exactly what I needed—blocks traffic from specific countries without
any hassle. Super easy to set up, and it works flawlessly. I’ve seen a big drop 
in unwanted login attempts since installing it. If you’re looking for a simple and
effective way to control access by location, this is the one to go for. Huge thanks
to the developer, Darko G., for creating such a useful plugin! I am From India, 
Tamilnadu.

 [ Read all 34 reviews ](https://wordpress.org/support/plugin/ip-location-block/reviews/)

## Contributors & Developers

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

Contributors

 *   [ Ideologix ](https://profiles.wordpress.org/ideologix/)
 *   [ Darko G. ](https://profiles.wordpress.org/darkog/)

“IP Location Block” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/ip-location-block/contributors)
for their contributions.

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

### Interested in development?

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

## Changelog

#### 1.4.0

_Release Date – 24 Aug 2026_

 * Redesigned the admin with Simple and Advanced views, provider setup, statistics,
   logs, search, and diagnostics.
 * Added searchable state or region rules and a modern bot-rule builder.
 * Prioritized the IP Location Block provider for regional rules while retaining
   country fallbacks.
 * Rebuilt internals with PSR-4 and scoped dependencies, plus broad provider, cache,
   database, filesystem, and interface fixes.
 * Requires PHP 8.1 and WordPress 6.5 or newer. The redesigned admin requires WordPress
   6.6.

Older release history is available in `changelog.txt` included with the plugin.

## Meta

 *  Version **1.4.0**
 *  Last updated **5 lá ago**
 *  Active installations **10,000+**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1**
 *  PHP version ** 8.1 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/ip-location-block/), [Japanese](https://ja.wordpress.org/plugins/ip-location-block/),
   and [Spanish (Spain)](https://es.wordpress.org/plugins/ip-location-block/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/ip-location-block)
 * Tags
 * [country block](https://ga.wordpress.org/plugins/tags/country-block/)[geo blocking](https://ga.wordpress.org/plugins/tags/geo-blocking/)
   [ip blocker](https://ga.wordpress.org/plugins/tags/ip-blocker/)
 *  [Advanced View](https://ga.wordpress.org/plugins/ip-location-block/advanced/)

## Ratings

 4.6 out of 5 stars.

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

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

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

## Contributors

 *   [ Ideologix ](https://profiles.wordpress.org/ideologix/)
 *   [ Darko G. ](https://profiles.wordpress.org/darkog/)

## Support

Issues resolved in last two months:

     1 out of 2

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