feat: add various robots.txt and YAML configurations for user agent handling and crawl delays

This commit is contained in:
Jason Cameron
2025-06-13 13:31:47 -04:00
parent 5a85cd41a2
commit 714496e317
14 changed files with 231 additions and 356 deletions

16
cmd/robots2policy/testdata/simple.json vendored Normal file
View 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\")"
}
}
]