Unpopular take: most small sites don't need a WAF

sarah_2891

New Member
Messages
50
Reaction score
0
Location
Denver, CO

Ducking behind my keyboard for this one because I know how this forum feels about firewalls.

Ran a client site for two years with the full stack: host WAF, Wordfence premium, Cloudflare, the works. Around 8k sessions a month, WooCommerce, nothing fancy. Checkout broke every other month. Support told me it was the WAF rules, then the plugin, then the host. Round and round. I'd whitelist a rule, something else would trip a week later. Client was losing orders and I was losing sleep.

So I ripped it out. Kept Cloudflare in front, kept 2FA on every admin account, kept auto updates on, added fail2ban and locked wp-login behind basic auth at the server level. Stripped Wordfence down to just the login limiting and turned the firewall off entirely. That was 14 months ago. Zero incidents. Zero broken checkouts.

Now I'm not saying WAFs are useless. Big sites, forums, anything with user uploads, different story. But for a brochure site or a small shop with 5k visitors? You're mostly paying a plugin to break your own forms and then blaming yourself. The actual attacks these things catch are usually bots hammering xmlrpc and wp-login, and you can shut that down with like three nginx rules.

Curious if anyone else has done the same and regretted it. And if you're running a stripped setup like mine, what's actually in yours?

da_real_mvp

New Member
Messages
69
Reaction score
0
Location
Atlanta, GA

Fourteen months with zero broken checkouts is the only metric that actually matters here and nobody selling security plugins wants to talk about it.

The part that resonates is the whitelist treadmill. Whitelist a rule, something else trips two weeks later, you never find out which rule because the vendor won't show you the regex. Meanwhile the client thinks YOU broke the site. I've watched a $4k/mo retainer evaporate over exactly this. Stripped setup, documented server rules, and the client can see every single thing that's blocked. That transparency is worth more than any dashboard.

The one place I'll push back: auto updates as a security layer. I ran that for about a year and had a WooCommerce minor update silently break the cart totals calculation. Site stayed up, orders kept coming in, prices were wrong for six days. A broken site is its own kind of incident, and honestly a bigger one than most bot traffic. Now I do staged updates on a clone, push same day. More work, way less panic.

On the xmlrpc thing, agreed, three nginx rules kills 90% of it. But do you have pingback disabled specifically? Because the bots hammering xmlrpc aren't always trying to log in, they're using your box as a reflector for DDoS amplification. Blocking wp-login doesn't touch that. I lost a VPS to an abuse complaint once because of it. Fun week.

There's a decent pile of this kind of stuff over in the security section if you haven't poked around:

https://websiteforums.info/forums/website-security.19/

Genuinely curious what you're running for backups though. That's the piece I've started treating as the real last line of defense, not the WAF. If the site goes sideways at 2am, the firewall isn't saving you, the restore is.

tallguy_tx

New Member
Messages
61
Reaction score
0
Location
Austin, TX

The whitelist treadmill is exactly it. I spent most of last year diffing WAF logs against form submissions trying to figure out which regex ate a checkout, and the vendor won't show you the rule so you're debugging a black box while the client watches orders disappear. That transparency thing you mentioned is underrated. When the rules live in your own nginx config, at least you can read them.

Second the auto-update pushback though. I ran full auto for about 8 months on a small shop and a Woo minor update silently changed the tax calc for one shipping zone. Orders kept flowing, numbers were just wrong for a week. Silent wrong is worse than loud broken, loud broken gets fixed the same day.

On the pingback question, yeah, block it specifically. Everyone just nukes xmlrpc.php entirely and then something like Jetpack or a mobile app breaks and they can't figure out why. Better move is leave the file reachable but kill the pingback method at the nginx level, so you're not a reflector for some bot's DDoS traffic but you don't torch the whole endpoint.

Honestly this whole dance feels like the same whack-a-mole I deal with trying to keep payment stuff alive. Something blocks you, you don't get told what or why, you just work around it until the next thing breaks.

jt_loves_tacos

New Member
Messages
75
Reaction score
0
Location
Phoenix, AZ

Zero incidents is great but I'd be careful treating that as zero known incidents. When you strip the WAF you also strip the alerting. Wordfence was noisy as hell and half those emails were garbage but it was still somebody watching. I ran a lean setup like yours for a while and only found out a client site had been injected months earlier because someone's antivirus flagged a redirect on the way out. Google never caught it, no forms broke, nothing. Nobody was looking.

Not saying go back to the plugin bloat, just that "no WAF" only works if something else is doing the watching. For me that's been a cron job that hashes core files and diffs against a clean copy, plus uptime monitoring with keyword checks on the homepage. Cheap, dumb, catches the redirect stuff. Curious what you're using for that side of it, if anything.

@tallguy_tx you got cut off but I want the actual nginx block for pingback. I've been doing the full xmlrpc.php deny for years and yeah, Jetpack mobile app broke on one site and it took me an embarrassing amount of time to connect the dots. Do you just location match and return 403 on the POST body containing pingback.ping, or is there something cleaner?

rk_designs

New Member
Messages
68
Reaction score
0
Location
Vancouver, BC

Look, I agree with jt_loves_tacos on the monitoring part. WAFs are just a loud alarm system that tells you something might be wrong, but if you don't have a system watching the actual code integrity, you're just hoping the attacker doesn't find a way in between the WAF's scheduled check.

The file hashing thing you mentioned, running cron jobs against core files, that's actually pretty solid, low overhead. It's basically checking for subtle modification, which is what those file injection attacks usually do. I've tried something similar on a couple of smaller setups, but you gotta make sure the checksum process itself isn't being compromised, which is a whole other can of worms.

But it leads me to something more of a nightmare, and this is where the reality of running this stuff outside of corporate VPN bubbles comes in. When you strip away all that noisy plugin logging and security layers, you're left with raw access logs and system events. And when you're trying to sift through those logs to prove, say, that a specific regex was bypassed or a bot hit your server, and your logs are encrypted or just... incomplete because of the host's policies, you're basically flying blind.

I swear, the compliance requirements and the sheer legal overhead surrounding data logging and security auditing are more of a barrier than the actual exploit code. It's crazy.

@tallguy_tx, I've had similar issues with pingback but I think the cleanest way to handle it in nginx is really just a specific location block for the POST method on that specific file path, maybe combined with a simple Lua script if you're going deep enough. Just a 403 response isn't enough if the bot just keeps hammering it.

So, back to my question: if you go the lean route, what's the actual alert system you're using when things go sideways? Because without the WAF's noise, you need a really intelligent notification trigger that doesn't require you to spend half your week reading iptables output.

emilyb85

New Member
Messages
67
Reaction score
0
Location
Amsterdam, NL

jt_loves_tacos makes a fair point about zero known vs zero actual, but I think the framing is backwards. A WAF isn't "somebody watching." It's an automated blocker with a dashboard. Nobody at Wordfence is sitting there reading your alerts, and half of what it flags is garbage anyway. So when you strip it out you're not firing a security guard, you're unplugging a smoke detector that went off every time you made toast. The file hash cron is the actual watching. Two completely different jobs that people keep smooshing into one.

Where I'll push back harder is rk_designs worrying about the checksum process itself getting compromised. If an attacker has enough access to tamper with your cron AND your hashing script AND the clean copy you're diffing against, then no WAF on earth was stopping that either. That's the kind of paranoia that sends you right back to 14 plugins and a broken checkout. Pick a threat model, match it to the site, and stop defending against the NSA on a 5 page brochure site.

On the pingback thing since tallguy_tx got cut off, I just location match xmlrpc.php and kill it on the POST body containing pingback.ping, return 403. Keeps Jetpack happy, stops you being a DDoS reflector. That's been enough for me.

Actually the bigger thing nobody's said yet: how do you know the WAF ever caught anything real to begin with? Blocked requests aren't incidents. I ran one for two years and the logs were 99% bots hitting wp-login and xmlrpc, which is exactly what the nginx rules handle for free. I'd love to see someone post an actual blocked request that wasn't a bot doing bot stuff.

LisaW_

New Member
Messages
53
Reaction score
0
Location
Edinburgh, UK

The toast smoke detector line got me. That's basically how I felt about my old host's WAF by the end, just constantly going off while I ate breakfast.

I'm only 4 months into a stripped setup so I'm still in the nervous phase. Checkout hasn't broken once, which is the longest streak I've had in two years. But jt_loves_tacos's story about finding an injected redirect months later is the part that keeps me up at night. Nobody was looking, that's the scary bit.

Can I ask what the file hash cron actually looks like in practice? I keep meaning to set one up and then I drown in rsync vs git vs some plugin that does it. Do you just hash the wp core folder nightly and email yourself a diff? And does the clean copy live on the same server or somewhere else entirely?

rk_designs

New Member
Messages
68
Reaction score
0
Location
Vancouver, BC

emilyb85 is right and I hate admitting it. The checksum-tampering worry was me spiraling. If someone's already rewriting your cron AND your hashing script AND the clean copy you're diffing against, they own the box, and no WAF was saving you there either. Fair hit, I'll take the L on that one.

Where the log angle still matters though, and jt's cron doesn't cover it. A hash diff tells you a file changed. It doesn't tell you how it got there or what it's doing now. Half the injections I've cleaned up over the years were sitting in the database, not the files, so your clean core diff comes back green and you're still serving redirects to mobile visitors. That's the gap nobody's mentioned yet.

LisaW_ for the actual setup, keep the clean copy OFF the server. That's the whole point. Mine is a git repo on my laptop plus a cron on a cheap VPS that pulls wp-content and core over ssh nightly, diffs against the last commit, emails me anything that moved. rsync works too but git gives you the history for free, so you can see what changed instead of just that something did. Pull daily if your host allows it, the window matters on shared boxes.

And yeah, tallguy_tx and emilyb85 both landed on the same pingback fix, location match on xmlrpc.php and 403 on the POST body with pingback.ping. That's the one. I ran the full file deny for years and broke a Woo app plugin exactly like tallguy described, took me two days to realize it was my own nginx config eating it and not the host.

LisaW_ what host are you on? Some of them block outbound ssh from their own boxes so the pull has to run the other direction and that changes the whole setup.

You must log in or register to reply here.