=== Shieldix ===
Contributors: nexys
Tags: firewall, security, malware scanner, hardening, waf
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Firewall on the OWASP Core Rule Set, malware & file scan, known-vulnerability alerts, one-click hardening and an activity log for WordPress.

== Description ==

Shieldix checks every request to your site against the OWASP Core Rule Set, the rule set used by professional web application firewalls, and stops attacks before they reach your themes and plugins.

**What it does**

* **Firewall with the OWASP Core Rule Set** – rules for injection attacks, cross-site scripting, file inclusion, remote code execution, protocol abuse and known scanners. Requests are scored as the Core Rule Set intends: a single harmless match blocks no one.
* **Learning mode** – for the first 7 days attacks are only recorded, showing what the firewall would block; blocking then starts by itself.
* **Extended protection** – with one click the firewall runs before WordPress loads (through `.user.ini` or `.htaccess`), so it also covers files that never go through WordPress; without it, it still runs before other plugins.
* **Safe for editors** – authors who may publish HTML are not blocked while editing their own content; the same content from anyone else is.
* **Fake search engine bots** – requests that call themselves Googlebot or Bingbot are blocked unless they come from the official address lists of Google and Bing.
* **Country rules** (with Cloudflare) – block some countries, or allow only some.
* **Rate limiting** – too many requests from one IP in a minute lead to a temporary block, with stricter limits for searches, the REST API and missing pages (404), where scanners probe.
* **Correct visitor IP behind proxies** – direct connections, Cloudflare, or your own proxy or load balancer; a proxy header is trusted only from a proxy you listed.
* **Event log** – every blocked or recorded request with the rule that matched and a reference code that also appears on the block page.
* **Spam protection** – without CAPTCHAs or any outside service: comments, WooCommerce reviews, pingbacks, registration and contact forms (Contact Form 7, WPForms, Gravity Forms, Elementor, Fluent Forms) are checked on your server (a hidden field, the time taken, links, the same message from other addresses, blocked words). Spam comments go to the Spam folder. Many failed card payments from one address at the WooCommerce checkout (card testing) block it for an hour.
* **One-click hardening** – switch off the theme and plugin file editors, hide user names and the WordPress version from visitors, limit or switch off XML-RPC, allow application passwords only for administrators (or switch them off), never let new accounts get an administrator-like role, refuse uploads that hide scripts (photo.php.jpg, PHP code in pictures, SVG with scripts), limit administrator sign-ins to 12 hours, send security headers (including Permissions-Policy and Cross-Origin-Opener-Policy), protect `wp-config.php`, `debug.log` and similar files, stop folder listings and stop PHP from running in the uploads folder. Each measure can be switched off again.
* **Private sign-in address** (off until you choose one) – moves `wp-login.php` to an address only you know, such as `/my-entry-7/`; visitors who are not signed in get "not found" on `wp-login.php` and `wp-admin`. WooCommerce customers keep signing in at My account. The address is emailed to the site administration email; `wp shieldix login-url --off` or `SHIELDIX_DISABLE` brings `wp-login.php` back.
* **Shieldix Team** – small bots that each look after one part of your site and work together on shared cases (Team tab, `wp shieldix team`): the Guard, Patcher, Inspector, Gatekeeper, Watcher and Filter for security and, with a paid Shieldix Cloud plan, the Scout, the Team lead (Shieldix AI) and five maintenance bots (Archivist, Mechanic, Sweeper, Sprinter and Lookout). Each member records what it would do for its first 7 days and asks before anything that cannot run out on its own; it never blocks your "Never block" addresses, your server or your administrators.
* **Site setup check** – points out what only you or your host can fix: errors shown to visitors, a public `debug.log`, a world-writable `wp-config.php`, weak security keys, an administrator called "admin", plugins closed on WordPress.org, a PHP version without security fixes, automatic updates switched off, unused plugins, open registration and a site without HTTPS.
* **Where administrators are signed in** – every browser signed in with an administrator account, with IP address and browser; end any session you do not recognize.
* **Watch on hidden code** – drop-ins (db.php, object-cache.php...) and must-use plugins run on every request without showing in the plugin list; new, changed or removed ones are emailed, and a removed firewall loader is written back. Scheduled tasks whose code lives in the uploads folder or outside WordPress are flagged.
* **Outgoing connections** – which servers the site contacts and which plugin or theme sent the request, so a backdoor reporting to its owner shows up.
* **Weekly report** – one short email a week: what was blocked, what still needs attention, which updates wait and, on paid plans, the maintenance of the week.
* **Emergency lockdown** – after a suspected break-in, one click signs everyone out, revokes all application passwords, writes new security keys into `wp-config.php` (undone by itself if the site stops working) and sends the other administrators a link to choose a new password.
* **Activity log** – sign-ins (also failed ones), plugins and themes installed, updated, activated or deleted, users created or deleted, role, password and email changes and changes to key settings, with who did it and from which IP.
* **Known vulnerabilities** (optional, off until you switch it on) – checks your WordPress version, plugins and themes against the open WPVulnerability.net database every day and after every update, and tells you what to update; new vulnerabilities are sent by email.
* **File scan** – compares WordPress and your WordPress.org plugins with their official checksums, finds unknown files among the core files, PHP files in the uploads folder, PHP code hidden in pictures, known web-shell patterns in themes and other plugins, and PHP files that are new or changed since the last scan. Runs every night in small steps (or on demand with a progress bar), and every finding says what to do.
* **Site Health and Dashboard** – the protection status (and, on paid plans, the backups) appears in Tools → Site Health and in a Dashboard widget.
* **WP-CLI and import / export** – `wp shieldix status | mode | unblock | allow | scan | vulns | emergency | login-url | team | maintenance | export | import`, and settings export / import to copy a setup to other sites.
* **Email alerts** – when an account gets administrator rights, an administrator signs in from a new IP address, the plugin is deactivated, the file scan finds a suspicious file, many attacks are blocked within an hour, learning ends, the firewall fails, an application password is created, or key settings change. Rate-limited.

* **In your language** – English plus 27 translations: every official EU language, Norwegian, Serbian, Turkish and Ukrainian. Regional variants (such as German (Austria)) use the translation of the same language.

**Maintenance** (only on a paid plan of Shieldix Cloud)

* **Backups and restore** – a full backup of the files and the database every night, kept on your server (outside the web root when possible), with copies to your own S3-compatible or SFTP storage, encrypted on the site with your passphrase. Restore the whole site, only the database or only the files, with undo for 24 hours, also on another server.
* **Safe updates** (off until you switch them on) – updates of plugins, themes and WordPress with a backup first, a check of the site afterwards and a rollback when it breaks, following each plugin's auto-update toggle; other updates are proposed.
* **Database cleanup** with undo, **browser caching and compression**, an optional **page cache**, **health monitoring** (PHP errors, disk, SSL, scheduled tasks), an **uptime check** from Shieldix Cloud every 5 minutes and a **monthly Shieldix AI maintenance report**.
* When a plan ends nothing of this runs any more, but the backups stay on your server and can still be downloaded and restored.

**Designed not to break your site**

* Any internal error lets the request through and is recorded.
* Rules can be switched off one by one in the settings.
* After every `.htaccess` change the plugin opens your site once and undoes it if the server does not accept it.
* Adding `define( 'SHIELDIX_DISABLE', true );` to `wp-config.php` turns the firewall off at once.

**Privacy**

Shieldix works on your server. Your files are never uploaded anywhere, except backup copies to offsite storage you set up yourself (encrypted first). Apart from the services listed under External services, no data is sent anywhere. Notification emails go only to the address you set. The event log keeps the IP address, method, path (without query string), time and matched rules for 30 days; for administrators the last 20 sign-in IP addresses are kept to report sign-ins from new places. Shieldix suggests a paragraph for your privacy policy (Settings → Privacy → Policy Guide) and supports the WordPress personal data export and erasure tools.

== Installation ==

1. Install and activate the plugin. The firewall starts in learning mode.
2. Open **Shieldix** in the admin menu.
3. If your site is behind Cloudflare or another proxy, choose where the visitor IP comes from. The page shows your IP as the firewall sees it.
4. Optional: click **Enable extended protection** so the firewall runs before WordPress loads.
5. Open **Hardening** and click **Turn on all recommended**.
6. After a few days, check **Events**. If a rule blocks something legitimate on your site, switch that rule off. You can switch to protect mode at any time; otherwise blocking starts after 7 days.

== Frequently Asked Questions ==

= Will it slow down my site? =

A normal page view is checked in well under a millisecond on typical hosting. Large form submissions take a few milliseconds.

= I locked myself out. What now? =

Add `define( 'SHIELDIX_DISABLE', true );` to `wp-config.php`, or add your IP to **Never block**. Rate-limit blocks expire after the time you set (10 minutes by default). If you forgot the private sign-in address, look for the email Shieldix sent to the site administration email, or run `wp shieldix login-url` (shows it) or `wp shieldix login-url --off` (switches it off) on the server.

= Does the file scan slow down my site? =

No. It runs in steps of a few seconds (at night, or while you watch the progress bar), reads each file once and skips caches and backups. A typical site with 6,000–20,000 files is scanned in under a minute of total work.

= The scan found a file. Is my site hacked? =

Not necessarily. Each finding says what was found and what to do. "New" or "changed" PHP files are normal after installing or updating a theme or plugin. PHP code in a picture, a PHP file in the uploads folder, or a core file that differs from WordPress.org are serious and worth acting on. If a file is fine, click "ignore it until it changes".

= Does it work with another security plugin? =

Yes. If another plugin already loads a firewall before WordPress, Shieldix keeps basic protection and tells you so, instead of replacing the other plugin's setup.

= Does it work on nginx? =

Yes. Extended protection uses `.user.ini`, which PHP-FPM reads on any web server. nginx does not read `.htaccess`, so for the file protections in **Hardening** the plugin shows the matching nginx rules to add to your site configuration.

= Does it work on WordPress Multisite? =

Not yet. On a network the firewall settings and server rules would be shared by all sites, so Shieldix refuses to activate there instead of protecting the sites the wrong way. Multisite support is planned.

= What happens when I deactivate or delete the plugin? =

Deactivation stops the firewall, removes its `.htaccess` rules, switches the page cache off, stops scheduled backups and keeps your settings and log; the site administrator gets an email about it. Deleting the plugin removes its settings, log table and state files, but never your backups (see "Where are my backups?").

= What does each member of Shieldix Team do? =

The Guard blocks addresses that keep attacking for 24 hours, with undo any time. The Patcher limits requests to a vulnerable plugin or theme that is under attack and proposes a virtual patch until it is updated. The Inspector links attackers to vulnerable plugins, starts scans and proposes quarantine for suspicious files. The Gatekeeper watches administrator accounts and proposes signing out an account used from an attacking address. The Watcher follows hidden code, scheduled tasks and new outgoing hosts and proposes deactivating a compromised plugin. The Filter blocks addresses that keep sending spam or test stolen cards.

With a paid Shieldix Cloud plan the Scout limits requests to a plugin or theme of your site while Shieldix Cloud sees it attacked on several protected sites, and the Team lead (Shieldix AI) explains serious cases and says how urgent they are; an administrator can also let chosen proposals be decided in the Shieldix Cloud panel (off by default). The maintenance bots join too: the Archivist watches the backups and makes one when the last is too old, the Mechanic runs and checks updates, the Sweeper proposes database cleanups, the Sprinter looks after caching and speed, and the Lookout watches PHP errors, disk space, the SSL certificate and scheduled tasks. They change things only with a backup first; updates and database cleanups can be undone for 7 days.

= Where are my backups? =

In a folder named `shieldix-backups-…` (with a random part), outside the web root when the server allows it, otherwise in `wp-content` with rules that keep it closed to visitors; the Maintenance tab shows the path. Deleting the plugin never deletes it, because it may be the only copy of your site: delete the folder by hand when you no longer need it.

= Can I restore on another server? =

Yes. Install WordPress and Shieldix there, connect the site to Shieldix Cloud on a paid plan, enter the same offsite storage and your backup passphrase, then use Maintenance → Restore from offsite storage. Without offsite storage, copy the backup folder to the new server first.

= Does Shieldix update plugins without asking? =

Only after you switch Safe updates on, and then only plugins and themes whose auto-update toggle is on (and minor WordPress updates when WordPress's own setting allows them). Every other update is proposed for you to approve. Each update gets a backup first and is rolled back if the site breaks.

= What does Shieldix Defense do? =

On a paid plan of Shieldix Cloud: decoy addresses and hidden fields that only attack tools take (24-hour block by Shieldix Team), behaviour detection of attack tools (counts and short hashes kept 30 minutes), the shared list of attackers every minute, attack shapes seen on several sites, and more hardening items (direct access to WordPress internals, author pages, the REST route list, known AI crawlers). Nothing of it runs on the free plan.

= What are Shieldix Cloud rules? =

On paid plans Shieldix Cloud turns serious vulnerabilities of plugins and themes into signed firewall rules, and the site downloads them every minute. When the vulnerable request can be described exactly, the rule stops only that request; otherwise it is a request limit: at most 30 POST requests a minute from one address to the PHP files of that plugin or theme. A limit does not close the vulnerability, so updating stays the fix. A rule applies only while the site has an affected version, only records for its first hour, pauses itself on your site if it would stop editors or normal visitors, and ends when you update. Signed-in editors and administrators are never stopped through the REST API, admin-ajax.php or admin-post.php; a direct request to a PHP file of the plugin or theme is judged like a visitor's. On the Defense tab you choose Automatic, Ask me first or Off (`wp shieldix defense rules`). Vulnerability data from WPVulnerability: https://www.wpvulnerability.com/

= Why did Shieldix stop an update? =

On paid plans Shieldix compares every plugin or theme update with the installed version before WordPress installs it. An update that adds code typical of malware is refused; one with unusual changes waits until you choose "Install anyway" on the Defense tab. A stopped update never changes the installed version.

= What does Lockdown do? =

On a paid plan, a lockdown helps the site stand up to a flood of requests by being stricter with visitors who are not signed in: lower limits (60 requests a minute instead of 240, fewer for searches and the REST API), forms closed except comments and, only while WooCommerce is active, the shop's cart, checkout, payment callbacks and account sign-in, XML-RPC closed (Jetpack and apps that use it stop until it ends) and chatbot routes closed; while the page cache is on, they get only cached pages. Only signed-in editors and administrators skip it; other accounts count as visitors, and so do requests signed with an Application Password or a WooCommerce REST API key, whose writes are refused until it ends unless you allow their REST namespace (`rest:/…`; WordPress's own `/wp/v2` can never be allowed). The sign-in page is never touched. You start one for 1, 4 or 24 hours (Overview, Defense tab or `wp shieldix lockdown on`), and every lockdown ends by itself. Shieldix Team starts one alone only if you allow automatic lockdown, for at most 4 hours.

= How does Shieldix use my Cloudflare account? =

Only on a paid plan, when the firewall takes visitor addresses from Cloudflare and you save your own API token on the Defense tab. It needs exactly three permissions: Zone Settings: Edit, Zone WAF: Edit and Account Filter Lists: Edit. With "Automatic Under Attack" on (off by default), Shieldix Team switches Cloudflare's Under Attack mode on during a flood, for at most 24 hours, and then puts your earlier security level back (unless you changed it meanwhile). With "Copy blocks to Cloudflare" on (off by default), the addresses Shieldix blocks are copied every minute to one IP list per site (`shieldix_blocks_` and the start of the zone id) with one rule that blocks them; your "Never block" addresses, your server and administrators never are. The token is sealed on your server and never sent to Shieldix Cloud; deleting the plugin removes the list and the rule. With SHIELDIX_DISABLE, Shieldix empties the list within a few minutes, so the kill switch stops blocking at Cloudflare too. Empty the list `shieldix_blocks_*` in Cloudflare yourself only if the token no longer works, or if Shieldix could not empty it when you deactivated it.

= Does Shieldix protect my AI chatbot? =

On a paid plan, yes. It recognises the chatbots of Nunxia and AI Engine, and you can add up to 10 routes of your own on the Defense tab. Each address gets at most 6 chatbot requests a minute, 60 an hour and 300 a day, and visitors who are not signed in share a daily budget for the whole site (3,000 by default). Oversized messages, phrases used to misuse chatbots and the same message sent from many addresses are refused. Messages are never stored, only a keyed hash for one hour. Editors and administrators are never limited. While Shieldix Team is on, you get one email on a day the budget runs out.

= Can Shieldix restore my site after a hack? =

Only as a proposal, on a paid plan while Shieldix Team is on: after a confirmed compromise (malware found, a plugin taken over, an administrator added from an attacking address) the Archivist proposes the newest full backup made before the first sign of it and emails you. What would be lost is shown as counts only (posts, comments, users and orders created since). Shieldix never starts a restore: you review it on the Maintenance tab and confirm by typing the site address. Only the files are restored unless accounts were touched, then the database too. The backup's copy is checked for malware first, and a backup that is not clean either is refused. "Undo restore" works for 24 hours.

== External services ==

Shieldix connects to these services only for the features described here:

* **WordPress.org** (api.wordpress.org, downloads.wordpress.org) – official checksums (file scan, read-only core files) and plugin information (closed plugins, owner changes). Sent: the WordPress version, the site language and the folder names and versions of installed plugins. [Terms](https://wordpress.org/about/privacy/)
* **Google and Bing** (developers.google.com, www.bing.com) – for the fake-bot check, the public lists of their crawler IP addresses are downloaded once a day. Nothing is sent. [Google privacy](https://policies.google.com/privacy), [Microsoft privacy](https://privacy.microsoft.com/)
* **WPVulnerability.net** – only when you switch on the vulnerability check. Sent: the WordPress version and the names (slugs) and versions of installed plugins and themes, once a day and after updates; answers are cached for 12 hours. [Service](https://www.wpvulnerability.com/), [privacy](https://www.wpvulnerability.com/privacy/)

* **Shieldix updates** (shieldix.uk, Nexys S.r.l.) – twice a day the plugin asks shieldix.uk whether a newer version exists, and downloads it when you or automatic updates install it. Sent: only the plugin, WordPress and PHP versions; no site address or site content is sent (as with any web request, shieldix.uk sees the server's IP address). Answers are signed with the Shieldix release key, and the downloaded file is installed only when it matches the signed checksum. To switch it off, add `define( 'SHIELDIX_SELF_UPDATE', false );` to wp-config.php. [Terms](https://shieldix.uk/terms/), [privacy](https://shieldix.uk/privacy/)
* **Your offsite backup storage** (optional, paid plans) – the S3-compatible service (Amazon S3, Backblaze B2, Wasabi, Cloudflare R2, DigitalOcean Spaces, MinIO or another) or SFTP server an administrator enters on the Maintenance tab. Sent: after each daily backup, the backup files (encrypted on the site with the administrator's passphrase) and their list; older copies are deleted there. It is used under the terms of the provider the administrator chose; Shieldix and Nexys S.r.l. never receive these files.
* **Cloudflare** (api.cloudflare.com; optional, paid plans) – only with an API token an administrator saves on the Defense tab. Sent: requests to read and change the zone's security level (Under Attack) and, when copying blocks is on, the blocked IP addresses for one IP list and one firewall rule in the administrator's own account. The token stays on the site. [Terms](https://www.cloudflare.com/website-terms/), [privacy](https://www.cloudflare.com/privacypolicy/)
* **Shieldix Cloud** (api.shieldix.uk, Nexys S.r.l.) – optional, and only after an administrator connects the site (with a link code from a Shieldix Cloud account or an activation key bought on shieldix.uk) and explicitly agrees to what is sent; nothing is sent before that. Sent: when connecting, the site address, the link code or activation key and the plugin version (with a key also the WordPress and PHP versions), then the attacks of the last 24 hours; every 5 minutes, for each blocked or recorded attack its time, kind, matched rule, the attacker's IP address, request method, requested path without the query string and the event reference (never the query string, form contents, cookies or the visitor's browser); for each stopped spam submission its time, the kind of form, the reasons and score (or, for checkout, the number of failed payments), the sender's IP address and the path (never the message, name or email address); every hour, the plugin, WordPress and PHP versions and the firewall mode. On paid plans the site downloads the shared list of addresses that attacked several protected sites, together with a list of plugins and themes attacked on several protected sites right now (the site checks on its own whether it uses one; nothing is sent for it). On paid plans, with the administrator's OK (a connection made with version 0.8.0 or later includes it), the site also sends every 5 minutes summaries of its Shieldix Team cases: kind, finding codes, severity, status, the bots involved, the kind and state of actions, times and a few counts; the subject only when it is an attacking IP address, a plugin or theme folder name or a file path inside the site (never accounts, email addresses, file contents, scheduled tasks or outgoing hosts). Shieldix AI, the analysis service of Shieldix Cloud, answers with short explanations and priorities for serious cases. If an administrator switches on approvals from the Shieldix Cloud panel (off by default), the summaries also list the team's proposals that wait for a decision (their number, kind and expiry, never the account, file or plugin they concern), and the site receives the decisions made in the panel, each signed by Shieldix Cloud, and reports what it did with them. On paid plans, with the administrator's OK (a connection made with version 1.0.0 or later includes it; older connections allow it once on the Shieldix Cloud card or with "wp shieldix cloud maintenance --consent"), the site also sends every 6 hours a summary of counts, times and codes only (backups: last good and last failed, failures, count, size, offsite kind, last offsite copy, encrypted or not; updates: safe updates on or off, waiting, security fixes, done, rolled back, oldest; database: size, unused space, revisions, trash, spam, expired transients, orphans; caching: on or off, conflict, response times; health: PHP fatal errors, free disk, SSL days, cron delay, PHP and WordPress versions; https or not; never plugin names, file contents, keys or backup data); Shieldix Cloud then requests the site's home page every 5 minutes to check that it is online, and Shieldix AI writes a monthly maintenance report from the summaries. On paid plans the shared list is fetched every minute; with the administrator's consent, decoy hits, behaviour pattern codes and attack-shape fingerprints (hashes, never request content) are sent with the security events, and with the 1.3 consent chatbot refusals (reason codes, never the message). Every answer is signed by Shieldix Cloud and checked. Disconnecting stops all of it. [Terms](https://shieldix.uk/terms/), [privacy](https://shieldix.uk/privacy/)

No other data is sent, and nothing about the site is sent to Nexys S.r.l. unless you connect the site to Shieldix Cloud.

== Third-party code ==

The firewall rules are converted from the [OWASP Core Rule Set](https://coreruleset.org/) 4.29.0, licensed under the Apache License 2.0. The license and notice are in the `rules` folder.

[phpseclib](https://phpseclib.com/) 3.0.59 (MIT licence) and [paragonie/constant_time_encoding](https://github.com/paragonie/constant_time_encoding) 2.8.2 (MIT licence), bundled under the `Shieldix\Vendor` namespace for SFTP backups. The licences are in `src/Vendor/phpseclib3` and `src/Vendor/ParagonIE/ConstantTime`.

== Screenshots ==

1. Overview: protection status, attacks blocked today and this week, activity of the last 14 days, most active IP addresses and rules.
2. Events: every blocked or recorded request with the matched OWASP rules, filters and "Never block".
3. Files: known vulnerabilities in installed software and the file scan with what was found and what to do.
4. Hardening: one-click measures, two-step sign-in and server file rules.
5. Settings: email notifications, and import / export of the setup.

== Changelog ==

= 1.3.0 =
* Shieldix Defense (paid plans): Lockdown. During a flood, anonymous visitors get lower limits, XML-RPC is closed and forms other than comments, the WooCommerce cart and checkout (while WooCommerce is active) and entries you allow get a "busy" answer; signed-in editors and administrators and the sign-in page are not affected. Start it for 1, 4 or 24 hours from the Overview or Defense tab or with `wp shieldix lockdown on --for=4h`; it always ends by itself. With "Allow automatic lockdown" (off by default), Shieldix Team starts one for up to 4 hours when it sees a flood and ends it once the traffic is calm. "Cached pages only" serves cached pages and asks others to wait while the page cache of Shieldix Maintenance is on.
* Shieldix Defense (paid plans): Cloudflare with your own API token, for sites behind Cloudflare. "Automatic Under Attack" switches Cloudflare's Under Attack mode on during a flood and puts the earlier security level back afterwards; "Copy blocks to Cloudflare" copies Shieldix's blocks to one IP list of the zone with one rule. Both are off by default. The token is sealed on your server and never sent to Shieldix Cloud (`wp shieldix defense cloudflare`).
* Shieldix Defense (paid plans): protection of AI chatbot routes (Nunxia, AI Engine and up to 10 routes of your own): limits per address, a daily budget, a size limit, abuse markers and floods of the same message. Messages are never stored. Chatbot refusals reach Shieldix Cloud only after you allow them ("Allow chatbot records" for sites connected before 1.3.0) (`wp shieldix defense chat`).
* Shieldix Defense (paid plans): after a confirmed compromise, Shieldix Team proposes restoring the last clean backup of Shieldix Maintenance (files only, unless accounts were touched). You confirm it on the Maintenance tab; the backup's copy of the affected files is checked first, and an older backup is proposed when it is not clean either.
* New bot Bulwark in Shieldix Team, fed by a light load meter. The "Shieldix Defense" mail also tells you when an automatic lockdown started, Cloudflare stopped accepting the token, the chatbot budget was reached or a restore was proposed. The weekly report counts lockdown and Under Attack hours, recorded chatbot refusals and proposed restores.

= 1.2.0 =
* Shieldix Defense (paid plans): Shieldix Cloud rules. Serious vulnerabilities of plugins and themes become signed firewall rules: an exact rule when the vulnerable request can be described, otherwise a limit of POST requests to the PHP files of that plugin or theme (updating stays the fix). A rule applies only to an affected version, records for its first hour, pauses itself on your site if it stops normal requests, and ends when you update. Choose Automatic, Ask me first or Off on the Defense tab (`wp shieldix defense rules`).
* Shieldix Defense (paid plans): update packages are checked before WordPress installs them. An update that adds code typical of malware is refused; one with unusual changes waits for your decision.
* Shieldix Defense (paid plans): optional read-only WordPress core files, unlocked only while WordPress updates itself.
* New mail kind "Shieldix Defense" (stopped updates, paused rules). The weekly report counts the rules applied and the updates stopped.

= 1.1.0 =
* Shieldix Defense for sites on a paid plan of Shieldix Cloud: decoy addresses, an optional hidden trap link and robots.txt decoys, the spam honeypot as a decoy, behaviour detection of attack tools, the shared list every minute with only the changes, attack-shape fingerprints, and hardening items (core lock, author pages, REST index, file-edit constant, known AI crawlers). New tab Defense (`wp shieldix defense`). Shieldix Team's Guard and Scout act on the new evidence.
* IP lists ("Never block", trusted proxies) keep IPv4-mapped IPv6 ranges such as ::ffff:1.2.3.0/120 as the IPv4 range they mean instead of dropping them; every spelling of an IPv4-mapped address counts as the IPv4 address.

= 1.0.0 =
* Shieldix Maintenance for sites on a paid plan of Shieldix Cloud (Maintenance tab, `wp shieldix maintenance`). Backups: a full backup of the files and the database every night, kept on the server (outside the web root when possible), with copies to your own S3-compatible or SFTP storage, encrypted on the site with your passphrase; restore the whole site, the database or the files, with undo for 24 hours, also from offsite storage on another server.
* Safe updates (off until you switch them on): plugins, themes and WordPress are updated in a window you choose, with a backup first, a check of the site afterwards and a rollback when it breaks, following each plugin's auto-update toggle; security fixes can go first.
* Database cleanup with undo for 7 days, browser caching and compression, an optional page cache served before WordPress loads, health monitoring (PHP errors per plugin, disk space, SSL certificate, scheduled tasks, PHP version) and "What to do first" on the Maintenance tab, the Overview, the Dashboard widget and in the weekly report.
* Shieldix Cloud: with your OK, a summary of counts and codes every 6 hours (no personal data, no plugin names), an uptime check of the home page every 5 minutes and a monthly maintenance report by Shieldix AI, also in the Shieldix Cloud panel.
* Five new members of Shieldix Team: the Archivist (backups), the Mechanic (updates), the Sweeper (database cleanup), the Sprinter (caching and speed) and the Lookout (health). They learn for 7 days first and change things only with a backup first.
* When a plan ends, nothing of Shieldix Maintenance runs any more; the backups stay on the server and can still be downloaded and restored. Deleting the plugin never deletes the backup folder.

= 0.9.1 =
* Approvals from the Shieldix Cloud panel can now be switched on (Settings > Shieldix Cloud): the plugin ships the panel's public decision key.

= 0.9.0 =
* Shieldix Team: approvals from the Shieldix Cloud panel (paid plans, off by default). An administrator can let chosen proposals of the team (quarantine a file, a virtual patch, sign an account out, revoke application passwords) be approved or rejected in the Shieldix Cloud panel, with a fresh code from the authenticator app for every decision. Only the number, kind and expiry of a proposal are sent; decisions come back signed with a key of their own, pass the same checks as on the site, and every one is emailed to the site's administrators. Deactivating a plugin is always decided on the site. Switch it off on the Shieldix Cloud card, with "wp shieldix cloud approvals --off", or for good with define( 'SHIELDIX_REMOTE_APPROVALS', false ).

= 0.8.0 =
* Shieldix Team gets its two Shieldix Cloud members (paid plans). The Team lead: Shieldix AI explains every case that becomes high or critical in a sentence or two and gives it a priority (act now, look at it today, keep an eye on it), shown on the case page and in the team email; the Shieldix Cloud panel shows the cases and notes of each site. The Scout: when Shieldix Cloud sees the same plugin or theme attacked on several protected sites, the Scout checks on your site whether you use it and, if so, limits requests to it until the campaign is over; an attacking address on the shared list of attackers gets a higher priority. Summaries of the team's cases are sent only on a paid plan, with your OK (sites connected before 0.8.0 allow them once on the Shieldix Cloud card), and never contain accounts, email addresses, file contents or outgoing hosts. Which plugins your site uses is never sent for the Scout.
* Shieldix Team at a glance: the Dashboard widget shows the team's state, open cases, actions in force, proposals waiting and the case to look at first (with Shieldix AI's priority on a paid plan); the weekly report has a "Shieldix Team this week" section (cases by bot, actions, proposals, the most serious cases, Shieldix AI notes) and, once, what the team would have done while it was learning; the Overview card shows the newest serious case. The Shieldix Cloud panel shows each case's full timeline. Nothing new is sent to Shieldix Cloud.

= 0.6.1 =
* The file scanner recognizes PHP files in uploads that are exact copies of files of installed plugins and no longer reports them.
* Guard files such as "<?php // Silence" without a final line break are no longer reported; a comment that hides code after a closing PHP tag is no longer treated as harmless.

= 0.6.0 =
* Shieldix Team gets four more members. The Patcher limits requests to a vulnerable plugin or theme that is under attack and proposes closing its PHP files until it is updated. The Gatekeeper watches administrator accounts (new administrators, application passwords, sign-ins from new addresses) and, when a change comes from an attacking address, proposes signing the account out everywhere. The Watcher follows drop-ins, must-use plugins, scheduled tasks and new outgoing hosts, starts a scan and proposes deactivating a plugin with malicious code. The Filter blocks addresses that keep sending spam or test stolen cards. New members learn for 7 days before they act on their own; anything that cannot run out on its own waits for your approval.

= 0.5.1 =
* The file scanner no longer reports Shieldix's own files (its detection rules look like the code they detect).
* `wp shieldix status` and `wp shieldix team` no longer show database errors right after an update.

= 0.5.0 =
* New: Shieldix Team. Bots that each look after one part of the site work together on shared cases: the Guard blocks addresses that keep attacking (24 hours, undo any time), the Inspector links attackers to vulnerable plugins, starts scans and proposes quarantine for suspicious files. For the first 7 days the team records what it would do (and asks before anything else). It never blocks your "Never block" addresses, your server or your administrators, and an address you unblock is left alone for 24 hours. New Team tab, email and `wp shieldix team`.

= 0.4.0 =
* Private sign-in address: move wp-login.php to an address only you know (off by default).
* Nunxia license server: calls from client sites with a valid Nunxia license are no longer inspected by the firewall.

= 0.3.2 =
* Upload checks no longer refuse plugin and theme zips in Plugins > Add New > Upload Plugin and Themes > Add New > Upload Theme (for users who may install them).

= 0.3.1 =
* Smaller download (1.2 MB): fits the 2 MB upload limit of many hosts. No change in features.

= 0.3.0 =
* Spam protection without CAPTCHAs for comments, reviews, registration, contact forms (Contact Form 7, WPForms, Gravity Forms, Elementor, Fluent Forms) and WooCommerce card testing. Also: Dashboard › Updates › Check again asks shieldix.uk again.

= 0.2.2 =
* Nunxia: posts and pages published by Nunxia through its Nunxia Client plugin are no longer inspected by the firewall, when the request carries this site's Nunxia key (the firewall keeps only a hash of the key). Nunxia's public chat route is still inspected.

= 0.2.1 =
* Firewall: on nginx with PHP-FPM, rule 920160 (Content-Length not numeric) no longer matches ordinary requests, which protect mode blocked.

= 0.2.0 =
* Connects to Shieldix Cloud at api.shieldix.uk; signed updates from shieldix.uk.

= 0.1.0 =
* First release: OWASP Core Rule Set firewall, learning mode, extended protection, rate limiting, event log, one-click hardening, email alerts, file scan against the official WordPress.org checksums.

== Upgrade Notice ==

= 1.3.0 =
Lockdown, Cloudflare Under Attack, chatbot protection and restore to the last clean state for paid plans.

= 1.2.0 =
Shieldix Cloud rules and the update package check for paid plans.

= 1.1.0 =
Adds Shieldix Defense on paid plans. Sites connected before 1.1.0 send no defence signals until you allow them on the Shieldix Cloud card.

= 1.0.0 =
Adds Shieldix Maintenance for sites on a paid plan of Shieldix Cloud. Daily backups start the night after; safe updates stay off until you switch them on. The maintenance bots learn for 7 days first.

= 0.9.1 =
Approvals from the Shieldix Cloud panel can be switched on for a site (off by default).

= 0.9.0 =
Approvals from the Shieldix Cloud panel for Shieldix Team (paid plans). They stay off until an administrator switches them on.

= 0.8.0 =
Shieldix Team's Scout and Team lead (Shieldix AI) for paid Shieldix Cloud plans, and the team on the Dashboard and in the weekly report. Sites connected before 0.8.0 send no case summaries until you allow them on the Shieldix Cloud card.

= 0.6.1 =
Fewer false alarms from the file scanner: exact copies of installed plugins' files in uploads are recognized.

= 0.6.0 =
Four more Shieldix Team members: Patcher, Gatekeeper, Watcher and Filter. They learn for 7 days first and ask before anything that cannot run out on its own.

= 0.5.1 =
The file scanner no longer reports Shieldix's own files; WP-CLI fix after updates.

= 0.5.0 =
New: Shieldix Team, bots that work together on attacks. For the first 7 days it records what it would do (and asks before anything else); it never blocks your "Never block" addresses, your server or your administrators.

= 0.4.0 =
New, off by default: a private sign-in address that hides wp-login.php and wp-admin from visitors.

= 0.3.2 =
With upload checks on, uploading a plugin or theme zip works again.

= 0.3.1 =
Spam protection (0.3.0) in a smaller package that installs on hosts with a 2 MB upload limit.

= 0.3.0 =
Spam protection for comments, reviews, registration, contact forms and WooCommerce checkout, on by default and without CAPTCHAs.

= 0.2.2 =
Publishing with Nunxia works with protect mode on. Includes the nginx fix of 0.2.1.

= 0.2.1 =
Important on nginx servers: protect mode no longer blocks ordinary visitors.

= 0.2.0 =
Shieldix Cloud (optional, only after you connect the site) and signed updates from shieldix.uk work out of the box.

= 0.1.0 =
First release.
