Skip to main content
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
  1. 1Open Firewall -> Core WAF Rules and enable Preload Micro-WAF.
  2. 2Ensure wp-content/webcare-waf (or WEBCARE_WAF_STORAGE_DIR) has 0750 directory and 0600 file permissions.
  3. 3On Nginx, add location ~* ^/wp-content/webcare-waf/ { deny all; return 403; } to block direct HTTP access.
  4. 4Keep Runtime SQL RASP enabled; it unwraps MySQL conditional comments (/*!50000...*/) and protects Subscriber/Customer queries too.

Reference Configuration / CLI

nginx
waf-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 in WP_CONTENT_DIR . '/webcare-waf' with 0600 permissions and a rotated HMAC subkey derived via SecretVault.
  • SQL RASP Integrity: Uses an internal re-entrancy depth guard instead of query substring exemptions.

Related Security Documentation

Direct 1-on-1 Assistance

Connect directly with Mir Alamin (WebCare Pro)

Need help tuning Nginx, Cloudflare 4+1 rules, or emergency malware remediation? Reach out directly for 1-on-1 senior engineering support.

Contact Mir Alamin