Instead, use sane tooling, like modern ORMs and parameter izers, with some data sanitation if you’re really paranoid.
You're misunderstanding the market.
The point of Cloudflare WAF isn't to be a main line of defense for HN readers, it's to stop the low effort automated drive-by attacks for websites that were already hosed. Like WAFs that block /wp-admin/* and instead generate a new segment.
I'd be surprised if there was a single person in the world who is going to go "oh right I should replace Cloudflare WAF and my sqli with some parameterized queries!"
What's even the risk here? Some minor marketing sub-site gets defaced, causing - at worst - an embarassing but instantly-forgotten incident?
If your web app is vulnerable being brute forced, fix it, don't blame the users...
An overreaction is sometimes an overreaction, not a good defence.
you just have to be willing to go back to do the refinement once the bleeding stops.
Genuine question, I never used one of these services.
You can always use a separate, not CDN protected domain for your API if this is a threat vector you care about.
Marketing made a big push for a new Promo code on the site we were running, but the promo code wasn't working. Reports came in that the promo code worked if you entered it as lowercase, rather than all caps.
Double-checked a dozen times, we take whatever string the user passes in an converted it to upper case, and all the values in the db were upper case. Keep thinking we must have messed this up somewhere.
In the end, the devops guy realizes that AWS (or Cloudflare, I forget) was blocking the uppercase requests, since the promo code was `SELECT` >.<
Assumed it was an injection attack, but only when uppercase.