mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-17 05:44:57 +00:00
feat: add various robots.txt and YAML configurations for user agent handling and crawl delays
This commit is contained in:
16
cmd/robots2policy/testdata/wildcards.yaml
vendored
Normal file
16
cmd/robots2policy/testdata/wildcards.yaml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: robots-txt-policy-disallow-1
|
||||
action: CHALLENGE
|
||||
expression:
|
||||
single: path.matches("^/search.*")
|
||||
- name: robots-txt-policy-disallow-2
|
||||
action: CHALLENGE
|
||||
expression:
|
||||
single: path.matches("^/.*/private")
|
||||
- name: robots-txt-policy-disallow-3
|
||||
action: CHALLENGE
|
||||
expression:
|
||||
single: path.matches("^/file.\\.txt")
|
||||
- name: robots-txt-policy-disallow-4
|
||||
action: CHALLENGE
|
||||
expression:
|
||||
single: path.matches("^/admin/.*.action=delete")
|
||||
Reference in New Issue
Block a user