=== LungoTech IP Guard ===
Contributors: ltechid
Tags: ip blocker, security, htaccess, firewall, ban ip
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 4.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Enterprise-grade .htaccess IP blocker with automated temporary IP purging, CIDR range support, and a modern UI.

== Description ==

**LungoTech IP Guard** is a robust and lightweight security plugin designed to block malicious IP addresses and CIDR ranges directly at the server level via your `.htaccess` file. By blocking unwanted traffic before it hits WordPress, you save valuable server resources.

### Key Features:
* **CIDR Range Support:** Block entire subnet ranges easily (e.g., IPv4 and IPv6 CIDR notations).
* **Permanent & Temporary IP Blocking:** Choose to block IPs permanently or set them as temporary.
* **Auto-Purge System:** Automatically removes the oldest temporary IPs once the limit is reached to keep your `.htaccess` file clean and optimized.
* **Smart Server Detection:** Automatically detects Apache versions (2.2 or 2.4+) and applies the correct syntax (`deny from` vs `Require not ip`).
* **Clean Uninstallation:** Includes an automatic uninstaller that cleans up database options and removes its specific rules from `.htaccess` without affecting other rules.

== Installation ==

1. Upload the plugin folder `lungotech-ip-guard` to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **LungoTech IP Guard** in your WordPress admin sidebar to configure settings and block IPs.

== Changelog ==

= 4.1.3 =
* Refactored file operations to use WP_Filesystem API in both main plugin and uninstall.php.
* Enhanced security with proper unslashing, sanitization, and output escaping across all admin interfaces.
* Fixed text domain mismatch to align with official plugin slug.
* Replaced PHP date() with UTC-compliant gmdate() for date displays.
* Added proper prefixing for global variables in uninstall.php.

= 4.1.2 =
* Added robust data sanitization and auto-migration for legacy database arrays to prevent PHP 8+ type errors.
* Refactored UI header and styling.
* Added secure uninstallation support.
