You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/admin/configuration/import.mdx
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ bots:
13
13
- # This correlates to data/bots/ai-catchall.yaml in the source tree
14
14
import: (data)/bots/ai-catchall.yaml
15
15
- import: (data)/bots/cloudflare-workers.yaml
16
+
# Import all the rules in the default configuration
17
+
- import: (data)/meta/default-config.yaml
16
18
```
17
19
18
20
Of note, a bot rule can either have inline bot configuration or import a bot config snippet. You cannot do both in a single bot rule.
@@ -35,6 +37,33 @@ config.BotOrImport: rule definition is invalid, you must set either bot rules or
35
37
36
38
Paths can either be prefixed with `(data)` to import from the [the data folder in the Anubis source tree](https://github.com/TecharoHQ/anubis/tree/main/data) or anywhere on the filesystem. If you don't have access to the Anubis source tree, check /usr/share/docs/anubis/data or in the tarball you extracted Anubis from.
37
39
40
+
## Importing the default configuration
41
+
42
+
If you want to base your configuration off of the default configuration, import `(data)/meta/default-config.yaml`:
43
+
44
+
```yaml
45
+
bots:
46
+
- import: (data)/meta/default-config.yaml
47
+
# Write your rules here
48
+
```
49
+
50
+
This will keep your configuration up to date as Anubis adapts to emerging threats.
51
+
52
+
## How do I exempt most modern browsers from Anubis challenges?
53
+
54
+
If you want to exempt most modern browsers from Anubis challenges, import `(data)/common/acts-like-browser.yaml`:
55
+
56
+
```yaml
57
+
bots:
58
+
- import: (data)/meta/default-config.yaml
59
+
- import: (data)/common/acts-like-browser.yaml
60
+
# Write your rules here
61
+
```
62
+
63
+
These rules will allow traffic that "looks like" it's from a modern copy of Edge, Safari, Chrome, or Firefox. These rules used to be enabled by default, however user reports have suggested that AI scraper bots have adapted to conform to these rules to scrape without regard for the infrastructure they are attacking.
64
+
65
+
Use these rules at your own risk.
66
+
38
67
## Importing from imports
39
68
40
69
You can also import from an imported file in case you want to import an entire folder of rules at once.
0 commit comments