aboutsummaryrefslogtreecommitdiff
path: root/cmd/anubis/testdata
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-03-17 01:25:18 -0400
committerGitHub <noreply@github.com>2025-03-17 01:25:18 -0400
commit2859f037cdf0cfd7314768152a2a5ad0ec8cd638 (patch)
tree7031b50ed6509b9ce22ff8de7628d2771da33237 /cmd/anubis/testdata
parentc3f5f1f5463bb8c48dc341e31957a54527f299e9 (diff)
downloadx-2859f037cdf0cfd7314768152a2a5ad0ec8cd638.tar.xz
x-2859f037cdf0cfd7314768152a2a5ad0ec8cd638.zip
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 <me@xeiaso.net> * 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 <me@xeiaso.net> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Diffstat (limited to 'cmd/anubis/testdata')
-rw-r--r--cmd/anubis/testdata/everything_blocked.json10
1 files changed, 10 insertions, 0 deletions
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