mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-08-03 01:38:14 -04:00

* feat(lib): implement request weight Replaces #608 This is a big one and will be what makes Anubis a generic web application firewall. This introduces the WEIGH option, allowing administrators to have facets of request metadata add or remove "weight", or the level of suspicion. This really makes Anubis weigh the soul of requests. Signed-off-by: Xe Iaso <me@xeiaso.net> * fix(lib): maintain legacy challenge behavior Signed-off-by: Xe Iaso <me@xeiaso.net> * fix(lib): make weight have dedicated checkers for the hashes Signed-off-by: Xe Iaso <me@xeiaso.net> * feat(data): convert some rules over to weight points Signed-off-by: Xe Iaso <me@xeiaso.net> * docs: document request weight Signed-off-by: Xe Iaso <me@xeiaso.net> * fix(CHANGELOG): spelling error Signed-off-by: Xe Iaso <me@xeiaso.net> * chore: spelling Signed-off-by: Xe Iaso <me@xeiaso.net> * docs: fix links to challenge information Signed-off-by: Xe Iaso <me@xeiaso.net> * docs(policies): fix formatting Signed-off-by: Xe Iaso <me@xeiaso.net> * fix(config): make default weight adjustment 5 Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
27 lines
941 B
YAML
27 lines
941 B
YAML
- name: deny-aggressive-brazilian-scrapers
|
|
action: WEIGH
|
|
weight:
|
|
adjust: 20
|
|
expression:
|
|
any:
|
|
# Internet Explorer should be out of support
|
|
- userAgent.contains("MSIE")
|
|
# Trident is the Internet Explorer browser engine
|
|
- userAgent.contains("Trident")
|
|
# Opera is a fork of chrome now
|
|
- userAgent.contains("Presto")
|
|
# Windows CE is discontinued
|
|
- userAgent.contains("Windows CE")
|
|
# Windows 95 is discontinued
|
|
- userAgent.contains("Windows 95")
|
|
# Windows 98 is discontinued
|
|
- userAgent.contains("Windows 98")
|
|
# Windows 9.x is discontinued
|
|
- userAgent.contains("Win 9x")
|
|
# Amazon does not have an Alexa Toolbar.
|
|
- userAgent.contains("Alexa Toolbar")
|
|
# This is not released, even Windows 11 calls itself Windows 10
|
|
- userAgent.contains("Windows NT 11.0")
|
|
# iPods are not in common use
|
|
- userAgent.contains("iPod")
|