wobblyhead

botblockd

Abusive web client blocking daemon

05.2026 -

botblockd is a small FreeBSD daemon that blocks abusive web clients at the firewall.

It implements a simple heuristic: web clients that cause more errors than successes, according to a web server log, get blocked at the firewall level. The limits, and which status codes count as actionable errors, are all configurable. A whitelist can be used to ensure developers or server admins don't lock themselves out.

It works best when paired with a bot detector like Anubis, but it can run stand-alone, like a limited-scope fail2ban.

It tails a web server log in the combined format, like nginx and others write it, optionally with syslogd aggregation prefixes. It only supports the pf firewall, via pfctl calls.

It is written in C with no dependencies beyond the FreeBSD base system.

Installation

Download one of the source archives and follow the README - basically make install. Pre-built packages for FreeBSD 15 and 141 are also provided, with those you can just pkg add botblockd-*.pkg.

Files

Sources

botblockd-0.4.0.tar.gz
botblockd-0.4.0.zip
botblockd-0.4.0.sha256

Packages

botblockd-0.4.0-FreeBSD-15-amd64.pkg SHA256
botblockd-0.4.0-FreeBSD-14-amd64.pkg SHA256

Disclosure

LLM support has been used extensively in the creation of this program.


  1. FreeBSD 14 is not tested ↩

Last updated