From 2859f037cdf0cfd7314768152a2a5ad0ec8cd638 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 17 Mar 2025 01:25:18 -0400 Subject: cmd/anubis: add rule hashes for admin-configured denials (#696) * cmd/anubis: add rule hashes for admin-configured denials Closes #695 Signed-off-by: Xe Iaso * cmd/anubis: remove theoretical nil pointer deference panic This won't actually happen in real life, but the code paths might change so we should be somewhat defensive. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Signed-off-by: Xe Iaso Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- cmd/anubis/testdata/everything_blocked.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cmd/anubis/testdata/everything_blocked.json (limited to 'cmd/anubis/testdata') diff --git a/cmd/anubis/testdata/everything_blocked.json b/cmd/anubis/testdata/everything_blocked.json new file mode 100644 index 0000000..e1763e4 --- /dev/null +++ b/cmd/anubis/testdata/everything_blocked.json @@ -0,0 +1,10 @@ +{ + "bots": [ + { + "name": "everything", + "user_agent_regex": ".*", + "action": "DENY" + } + ], + "dnsbl": false +} \ No newline at end of file -- cgit v1.2.3