aboutsummaryrefslogtreecommitdiff
path: root/lib/policy/config/testdata/bad/regex_ends_newline.json
blob: 14c7fa95ccbb99cc515fc4257a3b1d7acd4b8552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  "bots": [
    {
      "name": "user-agent-ends-newline",
      "user_agent_regex": "Mozilla\n",
      "action": "CHALLENGE"
    },
    {
      "name": "path-ends-newline",
      "path_regex": "^/evil/.*$\n",
      "action": "CHALLENGE"
    },
    {
      "name": "headers-ends-newline",
      "headers_regex": {
        "CF-Worker": ".*\n"
      },
      "action": "CHALLENGE"
    }
  ]
}