Firewall & EdgeModule:
waf-rulesWP 7.0+ & PHP 8.3+Core WAF Rules, Preload Micro-WAF & SQL RASP
Zero-waste RouteClassifier routing, OPcache CompiledStackManifest, 0600-isolated Preload Micro-WAF, and MySQL conditional-comment SQL RASP.
Why this matters for site stability & defense:
Early preload execution stops exploit payloads before WordPress boots, while RouteClassifier avoids loading unused evaluators on normal frontend requests.
Open Directly in Your WordPress Admin
Open Core WAF Rules
Manage Core WAF evaluators, Preload Micro-WAF, and SQL RASP.
/wp-admin/admin.php?page=webcare-pro-firewall&tab=rules
Step-by-Step Configuration & Verification
4 Steps- 1Open Firewall -> Core WAF Rules and enable Preload Micro-WAF.
- 2Ensure wp-content/webcare-waf (or WEBCARE_WAF_STORAGE_DIR) has 0750 directory and 0600 file permissions.
- 3On Nginx, add location ~* ^/wp-content/webcare-waf/ { deny all; return 403; } to block direct HTTP access.
- 4Keep Runtime SQL RASP enabled; it unwraps MySQL conditional comments (/*!50000...*/) and protects Subscriber/Customer queries too.
Reference Configuration / CLI
nginxwaf-rules reference snippet
location ~* ^/wp-content/webcare-waf/ {
deny all;
return 403;
}Architecture & Engineering Notes
Storage & Key Isolation
- Compiled preload scripts are never placed in
wp-content/uploads/. They live inWP_CONTENT_DIR . '/webcare-waf'with0600permissions and a rotated HMAC subkey derived viaSecretVault. - SQL RASP Integrity: Uses an internal re-entrancy depth guard instead of query substring exemptions.