From de796325bca1d35c633123bfbce9e4b1a3ca9e7e Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 25 Jul 2025 16:16:22 +0000 Subject: [PATCH] feat(default-rules): add weight to Custom-AsyncHttpClient Signed-off-by: Xe Iaso --- data/bots/_deny-pathological.yaml | 3 ++- data/bots/custom-async-http-client.yaml | 5 +++++ docs/docs/CHANGELOG.md | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 data/bots/custom-async-http-client.yaml diff --git a/data/bots/_deny-pathological.yaml b/data/bots/_deny-pathological.yaml index 09d4bfc5..ba64a04f 100644 --- a/data/bots/_deny-pathological.yaml +++ b/data/bots/_deny-pathological.yaml @@ -1,3 +1,4 @@ - import: (data)/bots/cloudflare-workers.yaml - import: (data)/bots/headless-browsers.yaml -- import: (data)/bots/us-ai-scraper.yaml \ No newline at end of file +- import: (data)/bots/us-ai-scraper.yaml +- import: (data)/bots/custom-async-http-client.yaml diff --git a/data/bots/custom-async-http-client.yaml b/data/bots/custom-async-http-client.yaml new file mode 100644 index 00000000..d42d2d86 --- /dev/null +++ b/data/bots/custom-async-http-client.yaml @@ -0,0 +1,5 @@ +- name: "custom-async-http-client" + user_agent_regex: "Custom-AsyncHttpClient" + action: WEIGH + weight: + adjust: 10 diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index bea36f1e..8092d7ba 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The [Thoth client](https://anubis.techaro.lol/docs/admin/thoth) is now public in the repo instead of being an internal package. +- [Custom-AsyncHttpClient](https://github.com/AsyncHttpClient/async-http-client)'s default User-Agent has an increased weight by default ([#852](https://github.com/TecharoHQ/anubis/issues/852)). ## v1.21.3: Minfilia Warde - Echo 3