docs: add crawl delay weight adjustment and deny user agents option to robots2policy CLI

This commit is contained in:
Jason Cameron
2025-06-13 14:14:50 -04:00
parent 995abcbe68
commit 7a74dddb3e
2 changed files with 12 additions and 10 deletions

View File

@@ -39,17 +39,17 @@ type Weight struct {
}
type Challenge struct {
Difficulty int `yaml:"difficulty,omitempty" json:"difficulty,omitempty"`
Algorithm string `yaml:"algorithm,omitempty" json:"algorithm,omitempty"`
Difficulty int `yaml:"difficulty,omitempty" json:"difficulty,omitempty"`
ReportAs int `yaml:"report_as,omitempty" json:"report_as,omitempty"`
}
type AnubisRule struct {
Name string `yaml:"name" json:"name"`
Action string `yaml:"action" json:"action"`
Expression map[string]interface{} `yaml:"expression,omitempty" json:"expression,omitempty"`
Challenge *Challenge `yaml:"challenge,omitempty" json:"challenge,omitempty"`
Weight *Weight `yaml:"weight,omitempty" json:"weight,omitempty"`
Name string `yaml:"name" json:"name"`
Action string `yaml:"action" json:"action"`
}
func main() {