=== GeoGuard WP - GRC ===
Contributors: robertutzu
Tags: security, login, country, registration, firewall
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.5.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Blocks unauthorized role logins and account registrations from restricted countries using local MaxMind databases with customizable checkbox controls.

== Description ==

**GeoGuard WP - GRC** is a lightweight, high-performance security plugin designed to protect your WordPress administrative dashboard and user registration endpoints from unauthorized geographic login and sign-up attempts. By restricting configurable user roles based on visitor country origin, you drastically reduce brute-force and credential-stuffing attacks originating from outside your trusted operating regions.

### Key Features
* **Zero-Dependency Local MaxMind Parser:** Includes a built-in custom binary `.mmdb` parser capable of reading MaxMind GeoLite2-Country databases directly without requiring external PHP extensions like `geoip` or `maxminddb`.
* **Intuitive Checkbox Selection:** Easily select allowed countries and targeted user roles using clean, scrollable checkbox interface lists in the WordPress backend settings panel.
* **Flexible Action Modes:** Choose whether to block login requests, block account creations/registrations, block both, or temporarily disable restrictions entirely.
* **Automatic Daily Database Updates:** Schedules a daily cron event to automatically mirror and update the latest GeoLite2 country database.
* **Manual Database Download:** Allows administrators to fetch or refresh the database instantly from the settings panel.
* **Smart IP Detection:** Inspects proxy headers while ensuring protection against header spoofing and filtering out private/reserved IP ranges.
* **Fail-Safe Protection:** Permanently locks your installer's country code into the permitted checkbox list, preventing accidental lockouts.

== Changelog ==

= 2.5.0 =
* Renamed plugin to GeoGuard WP - GRC.
* Replaced multi-select dropdowns with clean, scrollable checkbox lists for both countries and user roles.
* Added a new restriction action setting allowing administrators to independently choose whether to block logins, block account registrations, or block both.

= 2.4.0 =
* Added granular settings to choose which specific user roles are subjected to country login restrictions.

= 2.3.2 =
* Initial public release with native binary .mmdb parser, automated daily cron mirror updates, and fail-safe installer country protection.
