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>
This commit is contained in:
Dennis ten Hoove 2025-03-22 18:52:14 +01:00 committed by GitHub
parent 56cdb2e51b
commit 1509b06cb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View file

@ -7,7 +7,7 @@
}, },
{ {
"name": "googlebot", "name": "googlebot",
"user_agent_regex": "\\+http\\:\\/\\/www\\.google\\.com/bot\\.html", "user_agent_regex": "\\+http\\://www\\.google\\.com/bot\\.html",
"action": "ALLOW", "action": "ALLOW",
"remote_addresses": [ "remote_addresses": [
"2001:4860:4801:10::/64", "2001:4860:4801:10::/64",
@ -271,7 +271,7 @@
}, },
{ {
"name": "bingbot", "name": "bingbot",
"user_agent_regex": "\\+http\\:\\/\\/www\\.bing\\.com/bingbot\\.htm", "user_agent_regex": "\\+http\\://www\\.bing\\.com/bingbot\\.htm",
"action": "ALLOW", "action": "ALLOW",
"remote_addresses": [ "remote_addresses": [
"157.55.39.0/24", "157.55.39.0/24",
@ -306,7 +306,7 @@
}, },
{ {
"name": "qwantbot", "name": "qwantbot",
"user_agent_regex": "\\+https\\:\\/\\/help\\.qwant\\.com/bot/", "user_agent_regex": "\\+https\\://help\\.qwant\\.com/bot/",
"action": "ALLOW", "action": "ALLOW",
"remote_addresses": [ "remote_addresses": [
"91.242.162.0/24" "91.242.162.0/24"
@ -314,7 +314,7 @@
}, },
{ {
"name": "kagibot", "name": "kagibot",
"user_agent_regex": "\\+https\\:\\/\\/kagi\\.com/bot", "user_agent_regex": "\\+https\\://kagi\\.com/bot",
"action": "ALLOW", "action": "ALLOW",
"remote_addresses": [ "remote_addresses": [
"216.18.205.234/32", "216.18.205.234/32",
@ -345,7 +345,7 @@
}, },
{ {
"name": "us-artificial-intelligence-scraper", "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" "action": "DENY"
}, },
{ {

View file

@ -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 - Remove default RSS reader rule as it may allow for a targeted attack against rails apps
[#67](https://github.com/TecharoHQ/anubis/pull/67) [#67](https://github.com/TecharoHQ/anubis/pull/67)
- Whitelist MojeekBot in botPolicies [#47](https://github.com/TecharoHQ/anubis/issues/47) - 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 ## v1.14.1