The WAF is the wall in front of the site. Every request passes through it before it reaches the app, and if it matches a known attack pattern, Cloudflare stops it. You don't write the rules - they arrive ready-made in the Managed Ruleset and get updated when a new flaw lands.
In November 2026 Cloudflare shipped rules with a Block action for ruby2shell and phpAfterShell, on by default for every plan. On the Free plan the Free Managed Ruleset runs by itself, nothing to switch on. On paid plans the rules are active wherever the Cloudflare Managed Ruleset is deployed - and it isn't necessarily on every zone, so it's worth checking.
The important part is what the WAF is not. It is a compensating control, not a replacement for the patch. It cannot see traffic that bypasses Cloudflare: requests sent straight to the origin address, traffic between internal services. It also cannot see code that changes the case of a string from an email, a file, a message queue or a background job. The complete fix is still the upgrade.
The visual is generated code-art, no third-party images.