From af831f0d7fa6ed23a7818771e7d2a492c9329dc6 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 18 Apr 2025 13:57:02 -0400 Subject: [PATCH] Add 'Opera' to 'generic-browser' bot policy rule (#220) After deploying Anubis bot traffic is drastically reduced but I still see a lot of requests from User-Agents that claim to be 'Opera' like so: "Opera/9.90.(Windows NT 6.0; mt-MT) Presto/2.9.173 Version/10.00" "Opera/8.46.(X11; Linux i686; fo-FO) Presto/2.9.161 Version/11.00" Add 'Opera' to the generic-browser rule to also challenge them. Signed-off-by: Michael Jeanson Signed-off-by: Xe Iaso Co-authored-by: Xe Iaso --- data/botPolicies.json | 2 +- docs/docs/CHANGELOG.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/botPolicies.json b/data/botPolicies.json index 0852f50..7d6e4cb 100644 --- a/data/botPolicies.json +++ b/data/botPolicies.json @@ -675,7 +675,7 @@ }, { "name": "generic-browser", - "user_agent_regex": "Mozilla", + "user_agent_regex": "Mozilla|Opera", "action": "CHALLENGE" } ], diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index 8280533..ebcd35c 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Whitelisted [DuckDuckBot](https://duckduckgo.com/duckduckgo-help-pages/results/duckduckbot/) in botPolicies - Improvements to build scripts to make them less independent of the build host - Improved the OpenGraph error logging +- Added `Opera` to the `generic-browser` bot policy rule - Added FreeBSD rc.d script so can be run as a FreeBSD daemon. - Allow requests from the Internet Archive - Added example nginx configuration to documentation