=== MAK IT Solution Sentinel Guard ===
Contributors: makitsolutions
Tags: security, firewall, scanner, 2fa, login
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 5.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Protect logins with email or TOTP codes, filter suspicious requests and comments, and monitor file changes with local security logs.

== Description ==

Sentinel Guard Free by MAK IT Solution provides complete login protection, optional email or authenticator-app two-factor authentication, comment checks, configurable request filtering and read-only file monitoring.

Free works independently without an account, license key, trial period or paid add-on. Its included features do not expire. Scanners report findings; they do not automatically repair, quarantine or delete the inspected files.

Included features:

* Failed-login limits and temporary lockouts.
* Optional email-code or authenticator-app TOTP two-factor authentication.
* Comment honeypot, timing, token, keyword, link and rate checks.
* Configurable request-pattern filtering, XML-RPC policy and Smart 404 IP blocks.
* IP allow/block lists and temporary block management.
* Local file baselines, sitemap monitoring and suspicious-code alerts.
* Optional official WordPress core and plugin checksum verification.
* Local security logs retained for 30 days and optional administrator email alerts.
* Frontend and checkout compatibility options.

Scan findings require administrator review and may include false positives. The plugin does not guarantee detection of every threat. Keep independent backups and test security settings on staging, especially alongside other security plugins.

== Installation ==

1. Install the ZIP through Plugins > Add New > Upload Plugin, or upload the mak-it-sentinel-guard folder to wp-content/plugins.
2. Activate Sentinel Guard on a single-site WordPress installation.
3. Open Sentinel Guard and review Login Security, Comment Protection and Firewall settings.
4. Run a scan and review the findings. Refresh the file baseline only after confirming that the files are clean.
5. Test login, forms, uploads and checkout before relying on the configuration in production.

No private filesystem storage is needed for Free. Multisite is not supported in this release.

== Privacy and external connections ==

Security events are stored in the WordPress database. They may contain IP addresses, usernames, request URLs, user agents, referrers, file paths and suspicious code excerpts. Sensitive named request parameters are redacted, but custom URLs or excerpts may still contain personal information. Access is restricted to administrators. Logs older than 30 days are pruned; block records and account two-factor settings can remain until cleared or removed through opt-in uninstall cleanup.

Email alerts and official checksum requests are disabled on fresh installations. Email two-factor codes are sent to the account email when that authentication method is enabled. Optional alerts use the site's WordPress mail transport and may include event details.

External connections:

* api.wordpress.org: installed WordPress version and locale are sent when official core checksum scanning is enabled.
* downloads.wordpress.org: installed plugin slug and version are requested when official plugin checksum verification is enabled. No source files are uploaded.
* DNS: optional verified-crawler exemptions use the server's DNS resolver for reverse and forward lookups.

Remote services receive ordinary network metadata, including the server IP. Disable the relevant feature to stop its requests. No advertising or analytics tracking is included. WordPress.org privacy policy: https://wordpress.org/about/privacy/ . Terms: https://wordpress.org/about/terms-of-service/ .

TOTP secrets are stored in WordPress user metadata. Protect database access and backups. TOTP mode applies to configured roles after each account completes enrollment; email mode does not need authenticator enrollment.

== Frequently Asked Questions ==

= Is this a trial? =

No. Every feature included in Free is available without payment or time limits.

= Does Free automatically repair or quarantine files? =

No. Free monitors and reports. Automated file remediation, private database backups, plugin approval and extended user/session controls are implemented in a separate Pro add-on distributed outside WordPress.org. Premium implementation code is not included in this package.

= What happens when upgrading from the earlier combined package? =

The existing wsg_ settings, logs, baselines and user two-factor metadata are retained. Premium preferences remain stored but are not executed by Free. Install the separate Pro add-on to use those features. Free activation removes this plugin's marked legacy .htaccess hardening rules where writable. Existing wp-config.php constants and old public backup directories require manual review by the server administrator; they are not deleted automatically.

= How are client IPs detected behind proxies? =

REMOTE_ADDR is authoritative by default. Have the server normalize it, or define WSG_TRUSTED_PROXIES as an array of exact trusted proxy IPs. Forwarded chains are evaluated from the trusted edge inward. Cloudflare and X-Real-IP headers alone are not trusted.

= How do I recover from a lockout? =

Rename the plugin directory using your hosting file manager, then review the configuration. WSG_SAFE_MODE pauses background scans and the generic request firewall; login and comment checks remain separate.

= Is data deleted on uninstall? =

Data is retained by default. Define WSG_DELETE_DATA_ON_UNINSTALL as true before deleting Free to remove shared plugin settings, logs and user metadata. This also removes shared Pro database preferences. Private and legacy public files are never recursively deleted by uninstall.

== Screenshots ==

1. Free dashboard with scan status, IP blocks and recent security events.
2. Free Login Security settings with email and authenticator-app two-factor authentication.
3. Free Security Logs with time-range and severity filters.

== Changelog ==

= 5.3.0 =
* Separate the existing product into a standalone Free plugin and an optional Pro add-on.
* Keep login protection, email/TOTP two-factor authentication, comment checks, firewall, Smart 404, IP controls and read-only monitoring in Free.
* Move file remediation, private backups, plugin approval, session management and server hardening implementations into the separate Pro package.
* Preserve existing settings, logs and enrollment data across edition changes.

== Upgrade Notice ==

= 5.3.0 =
The product now uses separate Free and Pro packages. Free retains login protection and read-only monitoring. Install the Pro add-on for automated remediation and backups. Review legacy server rules and public backup files when changing editions.
