From c09c86778d7f5dee57d522a78964e47734ff985a Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 11 Oct 2025 09:22:07 -0400 Subject: [PATCH] fix(default-config): remove preact challenge (#1184) * fix(default-config): remove the preact challenge from the default config Signed-off-by: Xe Iaso * docs: update CHANGELOG Signed-off-by: Xe Iaso --------- Signed-off-by: Xe Iaso --- data/botPolicies.yaml | 20 ++++++++------------ docs/docs/CHANGELOG.md | 1 + 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/data/botPolicies.yaml b/data/botPolicies.yaml index 5d66564..20b1fb7 100644 --- a/data/botPolicies.yaml +++ b/data/botPolicies.yaml @@ -250,14 +250,10 @@ thresholds: - weight < 20 action: CHALLENGE challenge: - # https://anubis.techaro.lol/docs/admin/configuration/challenges/preact - # - # This challenge proves the client can run a webapp written with Preact. - # The preact webapp simply loads, calculates the SHA-256 checksum of the - # challenge data, and forwards that to the client. - algorithm: preact - difficulty: 1 - report_as: 1 + # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work + algorithm: fast + difficulty: 2 # two leading zeros, very fast for most clients + report_as: 2 - name: mild-proof-of-work expression: all: @@ -267,8 +263,8 @@ thresholds: challenge: # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work algorithm: fast - difficulty: 2 # two leading zeros, very fast for most clients - report_as: 2 + difficulty: 4 + report_as: 4 # For clients that are browser like and have gained many points from custom rules - name: extreme-suspicion expression: weight >= 30 @@ -276,5 +272,5 @@ thresholds: challenge: # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work algorithm: fast - difficulty: 4 - report_as: 4 + difficulty: 6 + report_as: 6 diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index 3a8a161..cd06330 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Make the default configuration reward users using normal browsers. - Allow multiple consecutive slashes in a row in application paths ([#754](https://github.com/TecharoHQ/anubis/issues/754)). - Add option to set `targetSNI` to special keyword 'auto' to indicate that it should be automatically set to the request Host name ([424](https://github.com/TecharoHQ/anubis/issues/424)). +- The Preact challenge has been removed from the default configuration. It will be deprecated in the future. ### Bug Fixes