aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis ten Hoove <36002865+dennis1248@users.noreply.github.com>2025-03-22 18:52:14 +0100
committerGitHub <noreply@github.com>2025-03-22 13:52:14 -0400
commit1509b06cb921aff842e71fbb6636646be6ed5b46 (patch)
tree0b6c607990bef3ceaadf2b208dfd227616230652
parent56cdb2e51b6435ed21b81eebb763e19e7aec3ce6 (diff)
downloadanubis-1509b06cb921aff842e71fbb6636646be6ed5b46.tar.xz
anubis-1509b06cb921aff842e71fbb6636646be6ed5b46.zip
Cleanup regex (#66)
* Cleanup regex Were were going overkill on the escape characters * Update docs/docs/CHANGELOG.md Co-authored-by: Xe Iaso <me@xeiaso.net> Signed-off-by: Dennis ten Hoove <36002865+dennis1248@users.noreply.github.com> --------- Signed-off-by: Dennis ten Hoove <36002865+dennis1248@users.noreply.github.com> Co-authored-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--cmd/anubis/botPolicies.json10
-rw-r--r--docs/docs/CHANGELOG.md1
2 files changed, 6 insertions, 5 deletions
diff --git a/cmd/anubis/botPolicies.json b/cmd/anubis/botPolicies.json
index aad2e9e..0e33706 100644
--- a/cmd/anubis/botPolicies.json
+++ b/cmd/anubis/botPolicies.json
@@ -7,7 +7,7 @@
},
{
"name": "googlebot",
- "user_agent_regex": "\\+http\\:\\/\\/www\\.google\\.com/bot\\.html",
+ "user_agent_regex": "\\+http\\://www\\.google\\.com/bot\\.html",
"action": "ALLOW",
"remote_addresses": [
"2001:4860:4801:10::/64",
@@ -271,7 +271,7 @@
},
{
"name": "bingbot",
- "user_agent_regex": "\\+http\\:\\/\\/www\\.bing\\.com/bingbot\\.htm",
+ "user_agent_regex": "\\+http\\://www\\.bing\\.com/bingbot\\.htm",
"action": "ALLOW",
"remote_addresses": [
"157.55.39.0/24",
@@ -306,7 +306,7 @@
},
{
"name": "qwantbot",
- "user_agent_regex": "\\+https\\:\\/\\/help\\.qwant\\.com/bot/",
+ "user_agent_regex": "\\+https\\://help\\.qwant\\.com/bot/",
"action": "ALLOW",
"remote_addresses": [
"91.242.162.0/24"
@@ -314,7 +314,7 @@
},
{
"name": "kagibot",
- "user_agent_regex": "\\+https\\:\\/\\/kagi\\.com/bot",
+ "user_agent_regex": "\\+https\\://kagi\\.com/bot",
"action": "ALLOW",
"remote_addresses": [
"216.18.205.234/32",
@@ -345,7 +345,7 @@
},
{
"name": "us-artificial-intelligence-scraper",
- "user_agent_regex": "\\+https\\:\\/\\/github\\.com\\/US-Artificial-Intelligence\\/scraper",
+ "user_agent_regex": "\\+https\\://github\\.com/US-Artificial-Intelligence/scraper",
"action": "DENY"
},
{
diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index 95b82e5..fc573d4 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -20,6 +20,7 @@ Livia sas Junius: Echo 2
- Remove default RSS reader rule as it may allow for a targeted attack against rails apps
[#67](https://github.com/TecharoHQ/anubis/pull/67)
- Whitelist MojeekBot in botPolicies [#47](https://github.com/TecharoHQ/anubis/issues/47)
+- botPolicies regex has been cleaned up [#66](https://github.com/TecharoHQ/anubis/pull/66)
## v1.14.1