Half my traffic was bots knocking on WordPress doors. I have no WordPress.
Roughly half of all raw nginx requests on my two sites were vulnerability scanners hunting for WordPress. Neither site runs WordPress. Neither site runs a line of PHP.
ravikantdewangan.com and fleet.persistenceathletics.com are both static Vite and React SPAs. The whole app is a hashed JS bundle and an index shell. There is no admin panel to brute force, no /xmlrpc.php to abuse, no phpunit to exploit. And yet the access logs were full of /wp-admin/index.php, /xmlrpc.php, /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php, and /phpinfo.php, all day, every day.
The reason they kept coming back is that I was answering them.
The shape
Two static sites on the Autosterea VPS. One shared nginx scanner snippet returning 444. One custom fail2ban filter. One new jail named nginx-scanner, enforced through nftables. First run banned 16 active scanner IPs. Shipped June 4, 2026.
The problem was the SPA fallback. My try_files ended in the React shell, so every junk path returned HTTP 200 with the full app. That wastes bandwidth, and worse, a 200 tells a scanner the host is alive and serving. A live target gets more scanners. I was advertising.
For contrast, real human traffic is small. Over 15 days the personal site had about 74 unique real visitors, measured by who actually loaded the hashed JS bundle, meaning a real browser running the app. Not raw hits. The scanners were dwarfing the people.
old: every scanner path returns 200 + the full React shell. host looks alive, attracts more scanners, burns bandwidth on bots.
new: scanner paths return 444 (connection closed, zero response). fail2ban watches all access logs and bans the IP: 2 strikes in 24h, 1 week, via nftables.444 over 403
The first instinct is to return 403 Forbidden. I went with return 444 instead. 403 is still a response. It still says "something is here, you just cannot have it." 444 is an nginx special: close the connection, send nothing. The scanner gets a hung up phone, no banner, no status line, no shell. One shared snippet, included in both sites' 443 server blocks, so the rule lives in one file and protects both hosts.
The filter that matched nothing
Fix 2 was fail2ban, which until now only guarded SSH. I started with the stock nginx-botsearch filter. It matched 0 of my lines. It keys on status 404, and my probes returned 200 and then 444 once the snippet was in place. Never a 404.
So I wrote a custom filter and ran it through fail2ban-regex. Still zero. The debugging detail worth keeping: fail2ban strips the timestamp off each log line before it runs your regex. My pattern opened with a date bracket, which by then was already gone, so nothing ever matched. Swapping the date bracket for a wildcard fixed it instantly. Two strikes in 24 hours now earns a one week ban through nftables, watching every nginx access log.
I banned myself for a week
To confirm the jail actually fired, I curled the scanner paths from my laptop. It worked. fail2ban banned me, the human who built it, for a full week. The box's own IP was in ignoreip. My laptop was not. So I unbanned my own address, added the lesson to the runbook, and moved on. The first IP my new defense caught was mine.
What I learned
Silence beats a polite refusal. A 403 is information. 444 gives a scanner nothing to log, nothing to fingerprint, nothing to come back for. The first run still banned 16 live scanner IPs in one pass, so the quiet door does not mean nobody is knocking.
Default filters assume a default app. The stock nginx-botsearch filter expects a 404 because it expects a site that 404s on junk. My SPA answered 200. Read what your filter actually keys on before you trust it, then prove it with fail2ban-regex.
Test the ban with an IP you can afford to lose. fail2ban does not know you are the author. Ignore your own server, ignore your laptop, then test, because the rule that catches scanners will catch you exactly the same way.
If your own logs are mostly bots knocking on doors you never built, I do this kind of cleanup at Autosterea.
First published on ravikantdewangan.com.

