comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:9f8d79c98fd2
1 # botblockd configuration example.
2 #
3 # Every setting below is shown commented out at its compiled-in default,
4 # which is what botblockd uses when the setting is absent or no config
5 # file exists. Uncomment a line and change the value to override it. A
6 # setting that is present must have a valid value: on a malformed value
7 # botblockd refuses to start, or rejects the reload, rather than silently
8 # falling back to the default. Unknown settings and lines that are not
9 # KEY=VALUE are errors too. Numbers must be positive integers, paths
10 # must be absolute.
11
12 # Inspection window: time or request count, whichever triggers first.
13 #INSPECT_SECONDS=30
14 #INSPECT_REQUEST_COUNT=20
15
16 # Minimum number of errors a suspect must have caused before it is first
17 # blocked. A floor against one-shot 404/499 false positives -- a real
18 # bot reliably causes more than one error.
19 #MIN_ERROR_COUNT=2
20
21 # Which HTTP status codes count as errors. Comma-separated list of
22 # single codes and lo-hi ranges, e.g. 401,403,404,444 or 400-599.
23 # Anything not listed counts as a successful request.
24 #ERROR_STATUSES=400-599
25
26 # Cooldown: forget a suspect after this many seconds without errors;
27 # successful requests do not keep it. An address on probation is
28 # forgotten this many seconds after its block was lifted.
29 #COOLDOWN_SECONDS=600
30
31 # Block duration in seconds: how long an IP stays in the pf table before
32 # the block is lifted and the IP enters probation.
33 #BLOCK_SECONDS=600
34
35 # Input: nginx access log in combined format, raw or syslog-aggregated.
36 # Followed across rotation. A reload that changes it is rejected; a
37 # change takes effect on restart.
38 #INPUT_LOG=/var/log/nginx/access.log
39
40 # Whitelist: one IPv4 address or CIDR subnet per line.
41 #WHITELIST_FILE=/usr/local/etc/botblockd/whitelist