diff conf/conf.sample @ 0:9f8d79c98fd2 0.4.0

initial public release
author Arkadiusz Juszczyk <ark@wobblyhead.net>
date 2026-10-26 11:29 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/conf/conf.sample	Mon Oct 26 11:29:10 2026 +0100
@@ -0,0 +1,41 @@
+# botblockd configuration example.
+#
+# Every setting below is shown commented out at its compiled-in default,
+# which is what botblockd uses when the setting is absent or no config
+# file exists.  Uncomment a line and change the value to override it.  A
+# setting that is present must have a valid value: on a malformed value
+# botblockd refuses to start, or rejects the reload, rather than silently
+# falling back to the default.  Unknown settings and lines that are not
+# KEY=VALUE are errors too.  Numbers must be positive integers, paths
+# must be absolute.
+
+# Inspection window: time or request count, whichever triggers first.
+#INSPECT_SECONDS=30
+#INSPECT_REQUEST_COUNT=20
+
+# Minimum number of errors a suspect must have caused before it is first
+# blocked.  A floor against one-shot 404/499 false positives -- a real
+# bot reliably causes more than one error.
+#MIN_ERROR_COUNT=2
+
+# Which HTTP status codes count as errors.  Comma-separated list of
+# single codes and lo-hi ranges, e.g. 401,403,404,444 or 400-599.
+# Anything not listed counts as a successful request.
+#ERROR_STATUSES=400-599
+
+# Cooldown: forget a suspect after this many seconds without errors;
+# successful requests do not keep it.  An address on probation is
+# forgotten this many seconds after its block was lifted.
+#COOLDOWN_SECONDS=600
+
+# Block duration in seconds: how long an IP stays in the pf table before
+# the block is lifted and the IP enters probation.
+#BLOCK_SECONDS=600
+
+# Input: nginx access log in combined format, raw or syslog-aggregated.
+# Followed across rotation.  A reload that changes it is rejected; a
+# change takes effect on restart.
+#INPUT_LOG=/var/log/nginx/access.log
+
+# Whitelist: one IPv4 address or CIDR subnet per line.
+#WHITELIST_FILE=/usr/local/etc/botblockd/whitelist