|
56 | 56 | - name: countries-with-aggressive-scrapers |
57 | 57 | action: WEIGH |
58 | 58 | geoip: |
59 | | - counties: |
| 59 | + countries: |
60 | 60 | - BR |
61 | 61 | - CN |
62 | 62 | weight: |
@@ -84,10 +84,88 @@ bots: |
84 | 84 |
|
85 | 85 | dnsbl: false |
86 | 86 |
|
| 87 | +# Open Graph passthrough configuration, see here for more information: |
| 88 | +# https://anubis.techaro.lol/docs/admin/configuration/open-graph/ |
| 89 | +openGraph: |
| 90 | + # Enables Open Graph passthrough |
| 91 | + enabled: false |
| 92 | + # Enables the use of the HTTP host in the cache key, this enables |
| 93 | + # caching metadata for multiple http hosts at once. |
| 94 | + considerHost: false |
| 95 | + # How long cached OpenGraph metadata should last in memory |
| 96 | + ttl: 24h |
| 97 | + # # If set, return these opengraph values instead of looking them up with |
| 98 | + # # the target service. |
| 99 | + # # |
| 100 | + # # Correlates to properties in https://ogp.me/ |
| 101 | + # override: |
| 102 | + # # og:title is required, it is the title of the website |
| 103 | + # "og:title": "Techaro Anubis" |
| 104 | + # "og:description": >- |
| 105 | + # Anubis is a Web AI Firewall Utility that helps you fight the bots |
| 106 | + # away so that you can maintain uptime at work! |
| 107 | + # "description": >- |
| 108 | + # Anubis is a Web AI Firewall Utility that helps you fight the bots |
| 109 | + # away so that you can maintain uptime at work! |
| 110 | + |
87 | 111 | # By default, send HTTP 200 back to clients that either get issued a challenge |
88 | 112 | # or a denial. This seems weird, but this is load-bearing due to the fact that |
89 | 113 | # the most aggressive scraper bots seem to really, really, want an HTTP 200 and |
90 | 114 | # will stop sending requests once they get it. |
91 | 115 | status_codes: |
92 | 116 | CHALLENGE: 200 |
93 | 117 | DENY: 200 |
| 118 | + |
| 119 | +# The weight thresholds for when to trigger individual challenges. Any |
| 120 | +# CHALLENGE will take precedence over this. |
| 121 | +# |
| 122 | +# A threshold has four configuration options: |
| 123 | +# |
| 124 | +# - name: the name that is reported down the stack and used for metrics |
| 125 | +# - expression: A CEL expression with the request weight in the variable |
| 126 | +# weight |
| 127 | +# - action: the Anubis action to apply, similar to in a bot policy |
| 128 | +# - challenge: which challenge to send to the user, similar to in a bot policy |
| 129 | +# |
| 130 | +# See https://anubis.techaro.lol/docs/admin/configuration/thresholds for more |
| 131 | +# information. |
| 132 | +thresholds: |
| 133 | + # By default Anubis ships with the following thresholds: |
| 134 | + - name: minimal-suspicion # This client is likely fine, its soul is lighter than a feather |
| 135 | + expression: weight <= 0 # a feather weighs zero units |
| 136 | + action: ALLOW # Allow the traffic through |
| 137 | + # For clients that had some weight reduced through custom rules, give them a |
| 138 | + # lightweight challenge. |
| 139 | + - name: mild-suspicion |
| 140 | + expression: |
| 141 | + all: |
| 142 | + - weight > 0 |
| 143 | + - weight < 10 |
| 144 | + action: CHALLENGE |
| 145 | + challenge: |
| 146 | + # https://anubis.techaro.lol/docs/admin/configuration/challenges/metarefresh |
| 147 | + algorithm: metarefresh |
| 148 | + difficulty: 1 |
| 149 | + report_as: 1 |
| 150 | + # For clients that are browser-like but have either gained points from custom rules or |
| 151 | + # report as a standard browser. |
| 152 | + - name: moderate-suspicion |
| 153 | + expression: |
| 154 | + all: |
| 155 | + - weight >= 10 |
| 156 | + - weight < 20 |
| 157 | + action: CHALLENGE |
| 158 | + challenge: |
| 159 | + # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work |
| 160 | + algorithm: fast |
| 161 | + difficulty: 2 # two leading zeros, very fast for most clients |
| 162 | + report_as: 2 |
| 163 | + # For clients that are browser like and have gained many points from custom rules |
| 164 | + - name: extreme-suspicion |
| 165 | + expression: weight >= 20 |
| 166 | + action: CHALLENGE |
| 167 | + challenge: |
| 168 | + # https://anubis.techaro.lol/docs/admin/configuration/challenges/proof-of-work |
| 169 | + algorithm: fast |
| 170 | + difficulty: 4 |
| 171 | + report_as: 4 |
0 commit comments