Skip to content

bug(robots2policy): Handle multiple User-agents #857

@JasonLovesDoggo

Description

@JasonLovesDoggo

e.g. https://lwn.net/robots.txt

https://lwn.net/SubscriberLink/1028558/6640bdca9c856920/#:~:text=The%20release%20introduces,or%20disallow%20rule.

robots2policy  -input https://lwn.net/robots.txt
- action: CHALLENGE
  expression: path.startsWith("/Search")
  name: robots-txt-policy-disallow-1
- action: CHALLENGE
  expression: path.startsWith("/ml")
  name: robots-txt-policy-disallow-2
- action: DENY
  expression: userAgent.contains("ChatGLM-Spider")
  name: robots-txt-policy-blacklist-3

should output more than the 3rd expr

cc @jzb

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions