=== ISPProtect Web Security ===
Contributors: ispprotect
Tags: security, firewall, malware scanner, two-factor authentication, login security
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Request firewall, malware and file scanner, sign-in protection with two-factor authentication, hardening checkup and activity log.

== Description ==

ISPProtect Web Security protects your WordPress site with one plugin. It has a firewall for incoming requests, a scanner for changed and suspicious files, protection for the sign-in page, a hardening checkup and an activity log.

Everything that runs on your site is free and needs no account and no licence key. Almost everything runs on your own server. The few requests to outside services are listed under "External services" below. The only paid part is optional and off by default: the remote scan can use the hosted scan service of ISPProtect, which needs a licence key (see "Free, without an account").

On multisite the plugin must be network-activated.

= Firewall =

* Request firewall that runs when WordPress loads, before your site handles the request.
* The plugin ships no detection rules. The built-in rule list is empty, so out of the box the firewall does not recognise attacks such as SQL injection or cross-site scripting by their content. You can add your own rules in a file in the plugin's data folder (`rules-local.php`). The plugin never creates this file. The file is read as data, not run as PHP, and its format is described in `waf/rules.php`. A file in the wrong format is ignored and reported.
* Optional OWASP CRS 4.25.2 rules can be installed from the Firewall card. The plugin downloads a pinned, SHA-256-verified release; these rules and the ISPProtect platform rules then inspect requests for attack patterns. They are not included in the plugin ZIP.
* IP allow rules and IP deny rules for single addresses and ranges, for the whole site or only for sign-in, with an optional note and an optional end time. An allow rule wins over a deny rule. The plugin refuses a deny rule that would block your own address.
* Automatic bans: an address is blocked for a time after repeated blocked requests. This only has an effect when rules match, so it applies to your own rules.
* Missing-page watch (off by default): an address that requests many pages that do not exist can be logged or banned.
* Request limit per minute (off by default).
* Country rules (off by default). They need a country code from the server or from Cloudflare. A visitor with an unknown country is never blocked.
* Guards against privilege escalation: they stop changes such as opening registration, changing the default role, creating an administrator or granting administrator rights, unless they come from WP-CLI or an installation.
* Modes: block, log only (learning mode) and off. In log-only mode matching requests are written to the log and not blocked. In mode "off" only the block list applies.
* Signed-in administrators skip the rules. The block list, country rules, missing-page watch and request limit still apply to them.
* Exceptions for false alarms, for one parameter on one path, one parameter everywhere, or everything on one path. Some exceptions are refused because they would switch off the firewall for a whole site or for the REST API. An exception for a path covers the whole request on that path, also batch and embedded REST requests. The panel shows exceptions that no longer apply.
* Optional extended mode. It loads the firewall through PHP's `auto_prepend_file`, before WordPress and its plugins. Depending on how PHP runs, the plugin writes a block to `.htaccess` or `.user.ini`, or shows a setting for you to add. It tests each change with a request to your site and undoes it if the site does not answer. It can only be switched on in the dashboard, not with WP-CLI.
* If the file with the IP rules gets behind the database (for example when it cannot be written), a notice shows on the plugin screens. Sign-in lockouts then use the database.
* The firewall lets requests through when it cannot do its work, for example after an error.

= Sign-in protection =

* Lockout of an address after too many failed sign-in attempts (default: 5 attempts in 15 minutes, a first block of 15 minutes that grows to at most 24 hours). Many attempts on one user name from many addresses are counted too, but the account itself is never locked. It covers the sign-in page, XML-RPC and application passwords in the REST API. Password checks from one address run one at a time, so parallel requests get no extra guesses.
* Unlock link: a locked-out user can ask for a link by email. It is valid for one hour and works once. It lifts only the block of the address that asked. The answer is the same whether or not the account exists. The number of requests is limited.
* Two-factor authentication with an authenticator app (time-based codes), with codes sent by email, and with backup codes (10 per user, each works once). Trusted devices can skip the code for a time you choose. You can require two-factor authentication for chosen user roles, with a grace period. After 10 wrong codes for one account within 15 minutes, from any addresses, the second step of that account is refused for up to 15 minutes.
* For an account with two-factor authentication, sign-ins that are not made on the sign-in page (XML-RPC, REST, AJAX, WP-CLI) are refused. Application passwords keep working.
* Hidden login address (off by default). wp-login.php and wp-admin show "not found" to visitors who are not signed in. `admin-ajax.php` and `admin-post.php` stay reachable, and so does the form for password-protected posts. It hides the address of the login page only. It does not hide user names.
* Bot checks on the sign-in, registration and password forms: a hidden field (on by default) and an optional small calculation done by the visitor's browser (off by default).
* Password rules for the roles you choose (default: administrators and editors): minimum length, no common passwords, no passwords that contain the user name, email address or site name, an optional maximum password age and an optional check against known leaked passwords (off by default).
* Session limit, idle time-out (both off by default) and a mail when someone signs in from a new device or network.
* Settings for XML-RPC and application passwords, and for hiding user names (author scans, the REST user list, the sitemap, oEmbed).

= Malware and file scanner =

* Scheduled scan (daily or weekly, as you choose) and scan on demand. On multisite only the main site schedules scans. Scheduled scans read only files that changed since the last scan.
* Compares WordPress core files and plugin files from WordPress.org with the files on your site.
* Basic checks for signs of a hack: PHP files in the uploads folder, leftover and unusual files, and a small set of generic suspicious-code checks in code files, plus injected scripts in posts, widgets and theme settings. It also reports a changed site address in the database. Thorough detection of malware is the job of the optional remote scan.
* Code files (PHP, JavaScript, HTML and `.htaccess`) are read completely, up to the file size limit in the settings (default 5 MB). A larger code file is read at its beginning and its end only, and it is reported. Files that should not contain code, such as images, are checked for PHP at their beginning and end. In the uploads folder they are read completely up to the size limit.
* A file that contains a very large number of PHP tags is reported as such. Only a limited number of places in it that look like code are searched further, each for a limited length, so code hidden deep inside such a file can be missed. Treat the report itself as the warning. Whether `<?` followed by a space counts as a PHP tag follows the PHP setting `short_open_tag`. Developers can set it with the filter `ispprotect_web_security_scanner_short_tags`.
* Shows pending updates, plugins that have not been updated for two years, and an outdated PHP version. If you turn it on, it also shows known vulnerabilities in your WordPress version, plugins and themes.
* Shows what changed in a file. The scanner only reports. It never changes, moves or deletes a file.
* A scan cannot prove that a site is clean. It finds what its checks know about, and new or well-hidden malware can be missed.
* Optional remote scan, off by default: a scan can also ask a scan service whether your code files are known malware. You choose the service in the scanner settings: a scan service on the same server (unix socket), your own scan service (address and access token), or the hosted scan service of ISPProtect (licence key). What is sent is described under "External services". `wp-config.php` is only sent in redacted form, without passwords, keys or any other values. Other configuration files and copies of `wp-config.php` that are not PHP files, `.ini` files, `.htaccess` and `.env` files, keys, certificates, database dumps and the data folder of the plugin are never sent. A failing service never stops the scan; the other checks run as before.

= Hardening checkup =

* A checkup that tests your site and tells you what to improve, in plain words.
* One-click fixes: sensitive files cannot be downloaded, no PHP in the uploads folder, no directory listing, tighter file permissions, the theme and plugin editor switched off, hidden version numbers, a cleaner page head, and security headers (nosniff, frame, referrer, permissions, HSTS and a basic content policy).
* Checks without an automatic fix tell you what to change: debug output and debug log, HTTPS, table prefix, an account called "admin", registration, security keys, automatic updates, pending updates, unused plugins and themes, and the PHP version.
* On Apache and LiteSpeed the plugin writes the needed rules to `.htaccess`. On other servers it shows a snippet for you to add. Fixes that do not need a server file work everywhere.

= Activity log and alerts =

* Log of sign-ins, failed sign-ins, blocked requests, scanner findings and changes to content, media, users and settings.
* Email alerts for events at or above a severity you choose (default: critical), with a pause between alerts of the same kind (default 30 minutes) and a limit per hour (default 10). Alerts held back go into a daily summary. A weekly report is sent on Monday morning.
* Optional webhook, as JSON for your own service or as a text message for Slack and compatible chats. Only `https` addresses are accepted. Addresses in private or local networks are refused. A request waits 3 seconds at most. You can set a signing key. The notification settings show the result of the last alert, summary and report. You can send a test message, at most 5 in 10 minutes for the whole site.

= Free, without an account =

Everything that runs on your site is free: the firewall, the sign-in protection, the scanner, the hardening checkup and the activity log. You do not need an account, a licence key or a subscription for them.

The remote scan is optional and off by default. With a scan service on your own server, or your own scan service, the plugin needs no licence key. The hosted scan service of ISPProtect is a paid service and needs a licence key. Nothing in the plugin is locked without it.

== Installation ==

1. Upload the `ispprotect-web-security` folder to `/wp-content/plugins/`, or install the plugin from the Plugins page in WordPress. On multisite, activate it for the network.
2. Activate the plugin.
3. Open "ISPProtect Web Security" in the admin menu. The dashboard shows what is on and what needs your attention.
4. Run the hardening checkup and the first scan.
5. Set up two-factor authentication for your own account under "Users, Profile". Do this before you require it for other users.

If you turn on the firewall block mode, the hidden login address or extended mode, bookmark the login address and read the question about being locked out below first.

After activation an optional setup screen lets you check the address the plugin sees for you, choose where alerts go, turn on the weekly report and two optional checks that contact other services, and start a first scan. You can skip it.

== Frequently Asked Questions ==

= Where is the manual? =

The manual is part of the plugin. Open **ISPProtect > Manual** in the WordPress admin area to read it. You can also download it there as a PDF.

= I locked myself out. What do I do? =

Open `wp-config.php` over FTP or in your hosting panel. Add this line above the line that says "That's all, stop editing!":

`define( 'ISPPROTECT_WEB_SECURITY_SAFE_MODE', true );`

In safe mode the plugin still records events, but it enforces nothing: the firewall (including the block list) only logs, sign-in lockouts and the firewall guards do not act, the hidden login address is off and two-factor authentication is not asked for. Sign in, fix the setting that caused the problem, then remove the line.

If only two-factor authentication is the problem, add this line instead:

`define( 'ISPPROTECT_WEB_SECURITY_DISABLE_2FA', true );`

Remove it again after you have set up two-factor authentication anew.

= Can I fix a lockout from the command line? =

Yes, if WP-CLI is installed on the server. For example, `wp ispprotect unblock 203.0.113.7` lets an address in again, and `wp ispprotect 2fa reset admin` removes two-factor authentication from the account "admin". See the section "WP-CLI" for all commands.

= Which WP-CLI commands does the plugin have? =

The plugin adds the command `wp ispprotect`:

* `wp ispprotect status` shows the version, the loaded modules and the state of each module.
* `wp ispprotect unblock 203.0.113.7` lets an address in again. It removes the blocks of that address and lifts its login lockouts. Rules for a whole range stay unless you add `--include-ranges`.
* `wp ispprotect 2fa reset admin` removes two-factor authentication from the account "admin" (it asks for confirmation, unless you add `--yes`), so that the user can sign in with the password and set it up again. `wp ispprotect 2fa status admin` shows the state.
* `wp ispprotect blocklist list|add|remove`, `wp ispprotect login status|lockouts|unlock`, `wp ispprotect scan start|status|cancel` and `wp ispprotect settings list|get|set|reset` show and change address rules, lockouts, scans and settings. `lockouts`, `blocklist list` and `settings list` have a `--format` option, and `lockouts` also has `--page` and `--per-page`. `wp ispprotect settings set <key> -` reads the value from standard input, and `--allow-empty` stores an empty value. `wp ispprotect hardening` shows the hardening checkup and changes nothing.
* `wp ispprotect remote status|test|connect|refresh|disconnect|token set|token clear` shows and sets up the optional remote scan. `wp ispprotect remote connect -` and `wp ispprotect remote token set -` read the licence key or the access token from standard input, so it does not end up in the shell history. A stored key or token is never printed.

Run the commands as the system user of the website. If you run them as another user, the plugin refuses most of them, because the files they create would then belong to the wrong user, and the website could not change them. The same applies to other WP-CLI commands that touch the plugin: if you run `wp plugin deactivate ispprotect-web-security` as root, for example, the plugin cannot remove the extended firewall protection from the server configuration, and it tells you how to finish the step as the website user. Run `wp help ispprotect` for all commands and options.

= I forgot the hidden login address. =

Add the safe mode line from the answer above to `wp-config.php`. The normal login address works again. The plugin also sends the new address by email to the user who set it. With WP-CLI you can show the address and switch the setting off.

= I lost my authenticator app. =

Sign in with one of your backup codes. You get 10 backup codes when you set up two-factor authentication. Each code works once. If email codes are on for your account, you can use those too. If you have no codes left, another user who may edit your account, for example another administrator, can reset two-factor authentication on your profile page. If you are the only administrator, use `ISPPROTECT_WEB_SECURITY_DISABLE_2FA` from the first answer, or `wp ispprotect 2fa reset`.

= What is the key file for two-factor authentication? =

The plugin keeps a key file named `login-key.php` in its data folder. It encrypts the authenticator secrets. If the file is missing or cannot be read, authenticator codes cannot be checked. Users get email codes instead, and the plugin shows a notice and logs a critical event. A new key cannot read the secrets made with the old one, so users must set up the app again. Do not delete the file.

= Does it work on nginx? =

Yes, with limits. The firewall, sign-in protection, scanner, activity log and alerts do not depend on the web server. Only rules that live in `.htaccess` do. On Apache and LiteSpeed the hardening module writes them for you. On nginx the plugin does not write any server file. It shows a snippet for your nginx configuration for the checks that have one. Extended firewall mode needs a way to load PHP code early. On Apache and LiteSpeed the plugin uses `.htaccess`. With PHP running as CGI or FPM it uses `.user.ini`, and PHP may take a few minutes to read it. On other setups it shows the setting for you to add yourself. If an `auto_prepend_file` is already set, the plugin does not change it.

By default the plugin keeps its data in `wp-content/uploads/ispprotect-web-security`. The `.htaccess` and `web.config` files there have no effect on nginx. The data files are PHP files that end at once when they are requested. Besides them the folder holds only empty lock files and backup copies of server files, and the backup copies have names that cannot be guessed. To deny the folder anyway, add `location ^~ /wp-content/uploads/ispprotect-web-security/ { deny all; }` to the `server` block of your nginx configuration.

= Does it work on multisite? =

The plugin is made for network activation only. Its settings, tables and data folder are shared by all sites. Only the main site schedules scans. Test it on a staging copy first.

= Does it slow down my site? =

The firewall does a small amount of work on each request. Scans run in small steps in the background, not during a visitor's request. The heavier work, such as a full scan, happens on your schedule. Use the log-only mode and your own measurements if you want to be sure for your site.

= Does it phone home? =

No, not by itself. The plugin has no tracking. It contacts a few outside services only for the features described under "External services". The leaked-password check, the vulnerability check and the remote scan are off until you turn them on. The webhook only sends something when you enter an address. Data goes to ISPProtect only if you choose the hosted scan service of ISPProtect for the remote scan and connect a licence key.

= What does the remote scan send? =

Nothing while it is off, which is the default. When you turn it on, each scan sends the SHA-256 hash of each code file together with its file name without the folder (for example `class-login.php`, never the path). A code file the service does not know yet is uploaded with its content, until the upload limit per scan in the settings is reached (default 200 MB, 0 sends hashes and names only). `wp-config.php`, its copies whose name ends in `.php` and PHP files whose names only resemble it (such as `wp_config.php` or `wpconfig.php`) are sent only in redacted form: before hashing and upload, all strings, numbers and comments are replaced, so only the code structure, names and the constant names in `define()` remain. The service sees injected code such as `eval()` or `base64_decode()` calls, but none of their contents, and neither the passwords nor the hash of the original file leave the server; a file that cannot be redacted safely is not sent. Never sent, whatever the settings say: other copies such as `wp-config.php.bak`, other files whose names only resemble `wp-config.php` and that are not PHP files (such as `wp_config.php.bak`), other configuration files with passwords, `.ini` files such as `php.ini`, `.htaccess` and `.env` files, keys and certificates, database files and dumps, files whose name starts or ends with a blank, every `.git` and `.ssh` folder, every folder named `var`, the folders `config/jwt` and `config/secrets` and files with `secret` in the name under `config/packages` (wherever they are in the tree), the data folder of the plugin and the folders you list under "Never send these folders". Images and other files that are not code are not sent either.

With a scan service on the same server, the data does not leave the server. With your own scan service, it goes to the address you enter, together with the access token you set. With the hosted scan service of ISPProtect, the site also connects to the ISPProtect licence portal; see "External services". Requests to your own scan service, to the ISPProtect scan service and to the licence portal go through the WordPress HTTP API, so other plugins on the site can see them, including the access token or the service token and the licence key, for example through the hooks `http_request_args`, `pre_http_request` and `http_api_debug`; only the connection to a scan service on the same server (unix socket) does not use the HTTP API.

= Is anything stored when I delete the plugin? =

No, unless you ask for it. Deleting the plugin removes its tables, settings, user data, scheduled tasks and its data folder. It also undoes the changes it made to `.htaccess`, `.user.ini` and file permissions. One empty loader file for extended mode (`ispprotect-firewall.php`) can stay on purpose, because a server setting may still point to it. It does nothing once the plugin folder is gone. If you turn on "Keep settings and logs when the plugin is deleted" in the settings first, nothing is removed.

= What personal data does the plugin store? =

The plugin stores this data in your WordPress database:

* An activity log with the event, time, user name and IP address.
* Failed and successful sign-in attempts with IP addresses, used for lockouts.
* Firewall events and blocks, with IP addresses and the requested address.
* A list of up to 20 known devices per user (a fingerprint of the browser type and network, with a time), used for the new-device mail.
* Two-factor data per user: the authenticator secret (encrypted), backup codes (stored as salted hashes), trusted-device markers.
* Scan results. With the remote scan on, also the SHA-256 hash, size and verdict of each code file. The access token or licence key of the remote scan is stored encrypted.

Settings you can use:

* Log retention: log entries are deleted after 90 days by default. You can choose between 1 and 3650 days.
* IP address anonymisation: IP addresses in old log entries are shortened to the network part after 30 days by default. Set 0 to turn it off.
* Keep settings and logs when the plugin is deleted: off by default. When off, deleting the plugin removes its tables, settings and user data.

The plugin adds an exporter and an eraser for the activity log to the WordPress privacy tools, and suggested text for your privacy policy. The eraser removes what identifies the person from log entries. The entries stay, because they document security events. Check your own privacy policy for what you need to tell visitors.

== External services ==

The plugin works without these services except where noted. Each request is made from your server, not from the visitor's browser. All requests use `https`, except a request to your own scan service on the same computer (`http://127.0.0.1`, `http://[::1]` or `http://localhost`), if you enter such an address. Such a request never goes through a proxy set in `wp-config.php`.

= WordPress.org (checksums, plugin information, original files) =

Used by the file scanner to check WordPress core files and plugin files against the originals, to find plugins that are closed or not updated for two years, and to show you the original file when you look at what changed.

* Hosts: `api.wordpress.org`, `downloads.wordpress.org`, `core.svn.wordpress.org`, `plugins.svn.wordpress.org`.
* Data sent: for core checksums, the WordPress version and locale. For plugin checksums, the folder name and version of each installed plugin. For plugin information, the folder name of each installed plugin that lives in its own folder, active or not. When you open the comparison of a changed file, the path of that file in the original package. Your server's IP address is visible to the service, as with any request.
* When: during a scan. Core checksums run when "WordPress files" is on and plugin checksums when "Plugin files" is on (both on by default). The plugin information lookup runs when the update check in the scanner settings is on (on by default). The files of the original are fetched only when you open a comparison. If you turn these checks off, no request is made.
* Terms and privacy: https://wordpress.org/about/ and https://wordpress.org/about/privacy/

= WPVulnerability (known vulnerabilities) =

Used to tell you about known security problems in your WordPress version, plugins and themes.

* Host: `www.wpvulnerability.net`.
* Data sent: your WordPress version and the folder name of each plugin and each theme. Plugin and theme versions are compared on your site and are not sent. Nothing about you, your users or your content. Answers are kept for twelve hours.
* When: only if you turn on "Known vulnerabilities" in the scanner settings. It is off by default. It runs during a scan.
* Terms and privacy: https://www.wpvulnerability.com/ and https://www.wpvulnerability.com/privacy/

= Have I Been Pwned, Pwned Passwords (leaked-password check) =

Used to refuse passwords that appear in known data breaches.

* Host: `api.pwnedpasswords.com`.
* Data sent: the first 5 characters of the SHA-1 hash of the new password (k-anonymity). The password itself and the full hash never leave your server. The request asks for a padded answer, so its size tells nothing about the result.
* When: only if you turn on the leaked-password check in the sign-in protection settings. It is off by default. It runs when a user sets or changes a password. The request waits 3 seconds at most. If the service does not answer, the password is accepted.
* Terms and privacy: https://haveibeenpwned.com/TermsOfUse and https://haveibeenpwned.com/Privacy

= Webhook that you set up yourself (Slack or your own service) =

Used to send alerts to a chat or to your own system.

* Host: the address you enter under notifications. It can be Slack (https://hooks.slack.com/...) or any server you choose. Only `https` addresses are accepted, and addresses that point to private or local networks are refused.
* Data sent: the alert text (event type, severity, time, site name and the details of the event, which can include an IP address or a user name). With a signing key set, the request is signed so your service can check where it came from.
* When: only if you enter a webhook address. It is empty by default. It sends when an alert fires or when you press the test button.
* Terms and privacy: depend on the service you choose. For Slack: https://slack.com/trust/privacy/privacy-policy and https://slack.com/terms-of-service

= Scan service for the remote scan (your own service, or the ISPProtect scan service) =

Used by the optional remote scan to check code files against the malware signatures of a scan service.

* Host: the scan service you choose in the scanner settings. A scan service on the same server is reached through its unix socket, and nothing leaves the server. Your own scan service is reached at the address you enter. The hosted scan service of ISPProtect is at https://scan.ispprotect.com; the address is built in, so you only need the licence key. A developer can point the plugin to another deployment with `ISPPROTECT_WEB_SECURITY_SCAN_URL` in `wp-config.php`; this is normally not set.
* Data sent: the SHA-256 hash and the file name without the folder of each code file, and the content of code files the service does not know yet, up to the upload limit per scan. With your own service or the ISPProtect service, also the access token. Configuration files, `.ini` files, keys, certificates, database dumps, the data folder of the plugin and the folders you exclude are never sent (`wp-config.php` only in redacted form: all strings, numbers and comments replaced, so only the code structure, names and the constant names in `define()` remain). Your server's IP address is visible to the service, as with any request.
* When: only after you choose a mode other than "Off" for the remote scan in the scanner settings. It is off by default. It runs during a scan, and when you press "Test connection". With the hosted scan service of ISPProtect, the requests go only to the address of that service, never to an address entered for your own service.
* Your own scan service: WordPress itself refuses requests to an address in a private network (for example `10.0.0.5` or a host name that resolves to one) and to a port other than 80, 443 and 8080. To use such an address, allow it with the WordPress filters `http_request_host_is_external` and `http_allowed_safe_ports`, for example in a small must-use plugin. A scan service on the same server can also be reached through its unix socket instead (mode "Scan service on this server (socket)").
* Privacy policy of the ISPProtect scan service: https://ispprotect.com/privacy.html. For your own service, they depend on who runs it.

= ISPProtect licence portal (licence key of the hosted scan service) =

Used to connect the site with a licence of the hosted scan service of ISPProtect and to get the short-lived access for that service.

* Host: the ISPProtect licence API at https://license.ispprotect.com. The account console is at https://console.ispprotect.com; the plugin does not send licence keys to the console address.
* Data sent: the licence key, a random ID of this installation (created by the plugin), the host name of the site address, the platform (`wordpress`), the product name and the plugin version. The host name is sent in its ASCII form (an international domain name as `xn--` name); on a multisite network it is always the host name of the network's main site. When the site is disconnected or the plugin is deleted, the licence key and the installation ID.
* When: only after you choose the ISPProtect scan service as the remote scan mode and press "Connect" with a licence key. Then once a day to renew the access, when you press "Refresh now", and when you press "Disconnect". During a scan, at most once an hour, when the access has expired or the scan service refused it. When the plugin is deleted, once, to release the site (with a timeout of 5 seconds; the deletion goes on if the portal does not answer). After the licence portal refused the key, for example because the licence expired, the daily renewal stops until you press "Refresh now" or connect another key. If the clock of your server is wrong, so that the access is already expired when it arrives, the plugin says so and does not ask the portal again every hour; correct the server time and press "Refresh now".
* Another licence key: disconnect first, then connect the new key. This releases the site from the old licence at the portal.
* The privacy policy is at https://ispprotect.com/privacy.html.

= Your own site =

The hardening checkup and the extended firewall mode send test requests to your own website's address, to check that your changes work. These requests stay on your own server or domain.

== Third-party libraries ==

* qrcode-generator 2.0.4 by Kazuhiko Arase, MIT licence, in `assets/vendor/qrcode-generator/`. It draws the two-factor QR code in the browser. It makes no request to any service.
* Sora and IBM Plex Mono, fonts by their respective authors, SIL Open Font License 1.1, in `assets/brand/fonts/` (the licence texts are in the same folder). The plugin's own screens load them from your site, not from a font service.

== Screenshots ==

1. Dashboard with the status of every module, counters for the last day and week, a 30-day chart, the latest warnings and the most blocked addresses.
2. Firewall settings: learning mode that only logs, automatic bans, the watch for scans of missing pages and the rate limit.
3. Sign-in protection settings: blocks after failed sign-ins and two-factor authentication.
4. Scanner results with a changed core file, an unknown file and available updates.
5. Hardening checkup with the list of checks, fixes to apply with one click and settings to add by hand.
6. Activity log with filters and the CSV download.

== Changelog ==

= 1.0.0 =
* First release.
* Optional remote scan, off by default: a scan can ask a scan service on the same server, your own scan service or the hosted ISPProtect scan service (licence key) about code files. New WP-CLI command `wp ispprotect remote`.
* The licence API defaults to `https://license.ispprotect.com`; the hosted scan service defaults to `https://scan.ispprotect.com`. Both addresses can be overridden in `wp-config.php` (normally not needed).
* Optional OWASP CRS 4.25.2 rules, downloaded from a pinned, checksum-verified release and compiled locally. Includes WordPress exclusions and three ISPProtect rules. The Firewall card manages installation, matches and disabled rules.
* The CRS engine reports values it cannot inspect completely instead of accepting clean shortened regex windows. Downloaded CRS exclusions cannot hide body-parser errors. XML bodies declaring an entity or naming an external DTD are refused with rule 200002 (HTTP 400) even when incomplete requests are otherwise allowed.

== Upgrade Notice ==

= 1.0.0 =
First release.
