Definitive Engineering Takeaway: Why dropping malicious bots at Cloudflare or Apache/Nginx before WordPress loads beats storing live traffic tables inside origin MySQL.
- Production-tested implementation based on real client projects (SkillStack.ie, FloppyFabrics.ie, Aoife Brogan Ballet).
- Zero-bloat execution: strict attention to DOM depth, Core Web Vitals (sub-1.2s mobile LCP), and clean PHP hooks.
- Verified code payloads formatted for rapid copy-paste and direct deployment.
Most agencies install a full-suite WordPress security plugin on day one and assume the origin is protected. In reality, running PHP-level firewalls and unthrottled live traffic logging inside shared or modest cloud hosting can turn a medium brute-force spike into a full PHP-FPM worker outage - because WordPress still has to boot PHP and hit MySQL on every blocked hit.
1. Edge-First Filtering vs. Origin PHP Inspection
| Protection Layer | Edge WAF + Origin .htaccess / MU Guard | All-in-One Admin Scanner Plugin |
|---|---|---|
Bot Drops (xmlrpc.php, ?author=1) | 0ms PHP execution (dropped at Cloudflare / Web Server) | Boots PHP + WordPress core before denying |
| Database Bloat Risk | Zero extra MySQL live-traffic tables | High row churn on hit logs & autoloaded rules |
| WC / REST Webhook Safety | Explicit allow/HMAC rules cleanly separated | False-positive 403 blocks on external SaaS callbacks |
2. Our Clean Three-Layer Production Stack
- Cloudflare Free/Pro Custom WAF Rules: Challenge or block non-browser POST floods hitting
/wp-login.phpand drop all requests to/xmlrpc.php. - Origin Web Server Guard: Deny direct PHP execution inside
/wp-content/uploads/and blockdebug.log/.envvia.htaccessor Nginx. - Zero-Bloat PHP Guard Plugin: Install our open-source EOSITE Security & Autoload Guard (GPLv2) ↗ or MIT Security MU-Plugin to lock headers and audit autoload weight cleanly.
Hardening Tools & Recovery
Generate custom Apache/LiteSpeed or Nginx blocks instantly inside our WAF & Bot Firewall Rule Builder, check header posture via Security Headers Studio, or request clean-room disinfection at WordPress Malware Removal ($129+).
Need Clean-Room Malware Removal or WAF Hardening?
Same-day forensic disinfection, salt rotation, uploads/MU-plugin lockdown, and Search Console recovery ($129+ quick cleanups or $25-$30/hr) via Quick-Fix Services.