mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-12 19:48:44 +00:00
feat: add various robots.txt and YAML configurations for user agent handling and crawl delays
This commit is contained in:
16
cmd/robots2policy/testdata/simple.json
vendored
Normal file
16
cmd/robots2policy/testdata/simple.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"name": "robots-txt-policy-disallow-1",
|
||||
"action": "CHALLENGE",
|
||||
"expression": {
|
||||
"single": "path.startsWith(\"/admin/\")"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "robots-txt-policy-disallow-2",
|
||||
"action": "CHALLENGE",
|
||||
"expression": {
|
||||
"single": "path.startsWith(\"/private\")"
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user