about summary refs log tree commit diff
path: root/bundles/go-away/files/config/snippets/challenges-non-js.yml
blob: b8aff89be8e7f2d8736430da0f717528799c096d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
challenges:
  # Challenges with a cookie, self redirect (non-JS, requires HTTP parsing)
  cookie:
    runtime: "cookie"

  # Challenges with a redirect via Link header with rel=preload and early hints (non-JS, requires HTTP parsing, fetching and logic)
  # Works on HTTP/2 and above!
  preload-link:
    condition: '"Sec-Fetch-Mode" in headers && headers["Sec-Fetch-Mode"] == "navigate"'
    runtime: "preload-link"
    parameters:
      preload-early-hint-deadline: 2s

  # Challenges with a redirect via Refresh header (non-JS, requires HTTP parsing and logic)
  header-refresh:
    runtime: "refresh"
    parameters:
      refresh-via: "header"

  # Challenges with a redirect via Refresh meta (non-JS, requires HTML parsing and logic)
  meta-refresh:
    runtime: "refresh"
    parameters:
      refresh-via: "meta"

  # Challenges with loading a random CSS or image document (non-JS, requires HTML parsing and logic)
  resource-load:
    runtime: "resource-load"