=== 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 =

<ol>
	<li>Blocks visitors based on their country using IP detection.</li>
	<li>Uses <code>ip-api.com</code> for geolocation with transient caching.</li>
	<li>Custom block message support via admin settings.</li>
	<li>Option to require GDPR consent before blocking.</li>
	<li>Displays a GDPR consent banner on the frontend (mobile-friendly).</li>
	<li>Admin panel with easy country code input and message editor.</li>
	<li>Modern, clean, responsive admin UI.</li>
	<li>Multilingual ready with <code>.pot</code> file support (text domain: <code>aa-block-country</code>).</li>
	<li>Secure coding practices and follows latest WordPress standards.</li>
	<li>Lightweight and optimized for performance.</li>
</ol>

= How to use it =

<ol>
	<li>Install and activate the <strong>AA Block Country</strong> plugin in your WordPress admin.</li>
	<li>Go to <strong>Admin → Block Country</strong> from the dashboard menu.</li>
	<li>Enter the country codes you want to block (e.g., <code>US, IN, CN</code>).</li>
	<li>Customize the block message shown to restricted visitors.</li>
	<li>(Optional) Enable the GDPR consent toggle if required by law.</li>
	<li>Click <strong>Save</strong> to apply your settings.</li>
	<li>Visitors from blocked countries will now be denied access with your custom message.</li>
</ol>


= Installation =

<ol>
	<li>Download the <strong>AA Block Country</strong> plugin ZIP file.</li>
	<li>Go to your WordPress dashboard → <strong>Plugins → Add New</strong>.</li>
	<li>Click <strong>Upload Plugin</strong> and choose the ZIP file.</li>
	<li>Click <strong>Install Now</strong>, then <strong>Activate</strong> the plugin.</li>
	<li>The settings panel will appear under <strong>Block Country</strong> in the admin menu.</li>
</ol>


= Screenshots =


= Changelog =

<ol>
	<li><strong>Version 1.0.1</strong> (2025-06-02)
		<ol type="a">
			<li>Added multilingual support with text domain <code>aa-block-country</code>.</li>
			<li>Improved admin settings UI with better mobile responsiveness.</li>
			<li>Enhanced GDPR consent banner styling and accessibility.</li>
			<li>Sanitized and validated all user inputs for better security.</li>
			<li>Refactored code for compliance with latest WordPress coding standards.</li>
			<li>Optimized transient caching for IP-based geolocation.</li>
		</ol>
	</li>
</ol>
