=== AA Block country === Contributors: aaextensions Donate link: https://aaextensions.com Tags: aaextensions, aaextension, ip,block, visitors Requires at least: 5.2 Tested up to: 6.8.1 Stable tag: 1.0.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html It's unique plugin from AA Production House and it is created to block visitors from any country == Description == It's unique plugin from AA Production House and it is created to block visitors from any country :) You can easily do that from settings option = Features =
  1. Blocks visitors based on their country using IP detection.
  2. Uses ip-api.com for geolocation with transient caching.
  3. Custom block message support via admin settings.
  4. Option to require GDPR consent before blocking.
  5. Displays a GDPR consent banner on the frontend (mobile-friendly).
  6. Admin panel with easy country code input and message editor.
  7. Modern, clean, responsive admin UI.
  8. Multilingual ready with .pot file support (text domain: aa-block-country).
  9. Secure coding practices and follows latest WordPress standards.
  10. Lightweight and optimized for performance.
= How to use it =
  1. Install and activate the AA Block Country plugin in your WordPress admin.
  2. Go to Admin → Block Country from the dashboard menu.
  3. Enter the country codes you want to block (e.g., US, IN, CN).
  4. Customize the block message shown to restricted visitors.
  5. (Optional) Enable the GDPR consent toggle if required by law.
  6. Click Save to apply your settings.
  7. Visitors from blocked countries will now be denied access with your custom message.
= Installation =
  1. Download the AA Block Country plugin ZIP file.
  2. Go to your WordPress dashboard → Plugins → Add New.
  3. Click Upload Plugin and choose the ZIP file.
  4. Click Install Now, then Activate the plugin.
  5. The settings panel will appear under Block Country in the admin menu.
= Screenshots = = Changelog =
  1. Version 1.0.1 (2025-06-02)
    1. Added multilingual support with text domain aa-block-country.
    2. Improved admin settings UI with better mobile responsiveness.
    3. Enhanced GDPR consent banner styling and accessibility.
    4. Sanitized and validated all user inputs for better security.
    5. Refactored code for compliance with latest WordPress coding standards.
    6. Optimized transient caching for IP-based geolocation.