WordPress plugin intelligence profile

AA Block country with redirect

It's a nice plugin with which you can redirect your visitor according to their country.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.8
Current version1.0.1
WordPress coverageTested up to WordPress 6.8
Minimum stackWP 5.2 · PHP —
Directory statusactive
Last directory update2 Jun 20251y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records AA Block country with redirect version 1.0.1 as active, updated 1y ago and tested up to WordPress 6.8.

Overview

About this plugin

We know many times, people have to redirect their visitor to their respective pages according to their country. In this plugin we keep this option. So that you can easily redirect your visitor to their respective country.

Features

  • IP Detection: Retrieves the visitor’s IP address using multiple server variables for reliability.
  • Country Lookup via API: Optionally uses `ip-api.com` to detect the visitor’s country based on IP.
  • Per-Post/Page Country Blocking: Enable or disable country blocking on individual posts, pages, or custom post types.
  • Custom Blocked Countries: Set blocked countries using comma-separated ISO country codes (e.g., `US, IN, FR`).
  • Global Country Blocking: Define global blocking rules that apply across the entire site.
  • Redirect Blocked Users: Automatically redirect blocked visitors to a custom URL defined in plugin settings.
  • Fallback Country Option: Specify a fallback country code in case API lookup fails.
  • Meta Box UI: Adds a meta box to all public post types for easy control of country blocking.
  • Secure Meta Handling: Uses WordPress nonces and capability checks to securely save meta data.
  • Lightweight Integration: Executes only on the front-end using the `template_redirect` hook, keeping the admin side fast.

How to use it

  • Configure Global Settings: Go to the plugin settings page and enable global country blocking. Set the list of blocked country codes and the redirect URL.
  • Choose IP Lookup Method: Enable or disable IP lookup via `ip-api.com` based on your preference.
  • Block Countries Globally: Visitors from blocked countries will be automatically redirected site-wide.
  • Set Per-Post Blocking: Edit any post, page, or custom post type, and in the “AA Country Block Options” meta box, enable blocking and specify country codes to block for that content only.
  • Save Changes: Update or publish your post/page to apply per-post blocking rules.
  • Test Blocking: Use a VPN or proxy from a blocked country to verify the redirect works as expected.

Installation

  • Download the plugin ZIP file from the source.
  • Log in to your WordPress admin dashboard.
  • Navigate to Plugins > Add New.
  • Click Upload Plugin and select the downloaded ZIP file.
  • Click Install Now and then Activate the plugin.
  • Go to the plugin settings page to configure country blocking options.

Screenshots

Coming Soon..

Changelog

  • Version 1.0.1 (2025-06-02)
  • Fixed IP detection logic to better handle proxy headers.
  • Improved country code sanitization for per-post blocking.
  • Added nonce verification to meta box save function for enhanced security.
  • Optimized API request to `ip-api.com` with error handling improvements.
  • Updated admin meta box UI for better usability.
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • block country
  • aaextension
  • aaextensions
  • ip
  • redirect
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.8
Minimum requirementsWordPress 5.2 · PHP not listed
Update activity2 Jun 20251y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.