From 44efcea781a6231fec02df9091110b63eb98465c Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 22 Mar 2025 09:17:33 -0400 Subject: [PATCH] cmd/anubis: amend generic browser challenge to "Gecko" I'm gonna be honest, this is an extreme galaxy brain strategy and I'm not entirely sure if this will pan out. However I got the idea when reading [a community post][0] If this works, that would be so much funnier than just using "Mozilla" in the rules. I think that this could greatly backfire though, which is why I'm making a pull request and opening this for feedback from the community. It would be absolutely hilarious if this works though. [0]: https://github.com/TecharoHQ/anubis/discussions/68#discussioncomment-12583134 --- cmd/anubis/botPolicies.json | 4 ++-- docs/docs/CHANGELOG.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/anubis/botPolicies.json b/cmd/anubis/botPolicies.json index aad2e9ee..3976f202 100644 --- a/cmd/anubis/botPolicies.json +++ b/cmd/anubis/botPolicies.json @@ -390,9 +390,9 @@ }, { "name": "generic-browser", - "user_agent_regex": "Mozilla", + "user_agent_regex": "(?i:gecko|applewebkit)", "action": "CHALLENGE" } ], "dnsbl": true -} +} \ No newline at end of file diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index 95b82e5b..53c1e3ae 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - Fixed and clarified installation instructions +- Changed default challenge logic for "Gecko" or "AppleWebkit" in the User-Agent string + instead of "Mozilla" [#78](https://github.com/TecharoHQ/anubis/pull/78) ## v1.14.2