test(lib): ensure that Cf-Worker via expression works

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-04-27 22:50:24 -04:00
parent 4e1db3842e
commit ea4e5751ab
3 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
bots:
- name: cloudflare-workers
expression: '"Cf-Worker" in headers'
action: DENY

View File

@@ -0,0 +1,5 @@
bots:
- name: cloudflare-workers
headers_regex:
CF-Worker: .*
action: DENY