Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
IP Location Block icon

IP Location Block

v1.4.3
by Darko G. · 4.5 (35 reviews)

Easily setup location block based on the visitor country by using ip and asn details. Protects your site from spam, login attempts, zero-day exploits, …

10K+ active installs Updated Oct 20, 2026 Tested to 7.1.5 Requires PHP 8.1
Try Demo Download
Pre-installed Ready in ~10s No card

About IP Location Block

The IP Location Block plugin allows you to block access to your website based on visitor location, while also protecting your site from malicious attacks. The plugin provides features such as zero-day exploit prevention, login attempt limiting, and blocking of bad bots and crawlers. It also offers customizable responses and logs for auditing purposes.

Screenshots

IP Location Block screenshot
IP Location Block screenshot
IP Location Block screenshot
IP Location Block screenshot
IP Location Block screenshot
IP Location Block screenshot
IP Location Block screenshot
IP Location Block screenshot
IP Location Block screenshot
IP Location Block screenshot

Frequently asked questions

What is IP Location Block?
IP Location Block is a WordPress plugin that enables you to block website access based on a visitor's location. It also includes features to protect your site from malicious attacks, such as "WP Zero-day Exploit Prevention" and "WP Metadata Exploit Protection."
How does IP Location Block handle user privacy?
The plugin is designed with privacy in mind. IP addresses are always encrypted when recorded in logs or cache. Additionally, IP addresses can be anonymized and restricted when sent to third-party services like geolocation APIs or WHOIS.
What kind of location blocking features does it offer?
IP Location Block provides a native geo-location provider that offers precision for matching country, city, and state. It allows for immigration control, validating access to backend entrances like wp-login.php based on country codes, and supports whitelisting or blacklisting countries, CIDR notations, and AS numbers.
What is "Zero-day Exploit Prevention"?
"WordPress Zero-day Exploit Prevention" (WP-ZEP) is an original feature of the plugin. Unlike other security firewalls that focus on attack patterns, WP-ZEP focuses on patterns of vulnerability to protect your site.
Is this plugin based on another project?
Yes, this plugin is based on the previously abandoned "IP Geo Block" plugin by tokkonopapa. The current author has fixed various issues and improved the overall codebase.

Changelog

1.4.3

Release Date – 20 Oct 2026

  • Fix: Saving settings in the new interface failed with “The response is not a valid JSON response” on hosts with a web application firewall, such as WordPress.com. The bad-signature list is now sent encoded, as the classic interface always did. Importing and exporting settings are covered too.
  • Fix: On hosts without the PHP bcmath extension, IP Location Block 1.4.0 to 1.4.2 defined global bcmath functions that always failed, which broke other plugins that use them (for example, saving rules in Woo Discount Rules). The plugin no longer defines global functions, and IPv6 lookups with the local IP2Location database keep working without bcmath.
  • Fix: On hosts where WordPress cannot write files directly, the WordPress FTP credentials form no longer appears in front of pages and admin requests. This also caused “Failed to load settings” in the new interface.
  • Fix: Diagnostics no longer report a missing database update schedule on sites that don’t use a local database, and missing database update and cleanup schedules are recreated automatically.
  • Improvement: “Failed to load settings” and failed saves now say which request failed and why.

1.4.2

Release Date – 1 Oct 2026

  • Fix: Service endpoints moved to iplocationblock.net while iplocationblock.com is unavailable, restoring IP Location Block Cloud lookups and quota checks.
  • New: Define IP_LOCATION_BLOCK_API_BASE in wp-config.php to point the cloud provider at a different API address.
  • Change: The default page for blocked visitors moved to geoblocked.im. Sites still using the old default are moved over automatically; custom redirect URLs are not changed.

1.4.1

Release Date – 4 Sep 2026

  • The release notes panel now appears only on fresh installations. Existing sites are no longer shown it after an update, on single sites and across a network.
  • Simple Mode now has a compact Native Mode suggestion that can be permanently hidden for all administrators on the site.
  • Uninstalling now clears the stored release notes panel state, so a later re-installation is treated as a first install again.

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.

Try other plugins