the field · lesson 4 of 6 · sources checked 2026-11-20
where the decision is made
This lesson shows where each product class makes its verdict, what the operator can see there, and why a vendor script is not a block.
purpose
Each product class decides at one place: its decision point. The person or team that runs the automation can see the result only at that place. Thus you must know this place before you read a failure or a success.
objectives
- Identify the decision point of a product class.
- Describe what the operator can observe at each decision point.
- Explain how session binding makes a valid token fail on a later request.
- Separate an ambient marker from a block signature in a response.
new terms
- decision point
- The place where a detection product makes its verdict: edge, page script, widget, SDK, or server.
- origin
- The server that holds the real content of a site, behind any edge network.
- polarity
- The direction of a risk score: if a high value means human or means threat.
- challenge token
- The value that a passed challenge gives to the client, which the origin verifies on its server.
- session binding
- A rule that some products apply. A token or a web session is valid only with the client values that got it. Examples are the IP address, the user agent, the TLS stack, and the device. Many challenge tokens have no such rule.
- clearance cookie
- A cookie that a passed challenge sets, which the site checks again on later requests.
- block signature
- A deterministic marker (status, header, cookie, body text) that marks a block when present.
- inconclusive
- A stage result that says the stage had nothing to assert; the next stage decides.
- configuration
- The set of factors of an attempt: the client, the browser build, the address class, the session state, the pace, and the entry path.
- interstitial
- A page that a site shows before the real content, for example a challenge or a device check.
- served challenge
- A challenge that the site actually showed, proved by a hard status, an interstitial marker, or no real content.
how it works
A detection product collects signals, makes a verdict, and then applies an action.
The decision point controls two things: the time of the verdict, and the part of the verdict that the operator can see.
Each product class uses a different decision point. I use four product classes:
| product class | decision point | what the operator sees |
|---|---|---|
| edge WAF | Each request, at the edge | The result in the first response |
| Page script | The browser, after the page loads | The verdict on a later request |
| CAPTCHA widget | The page, then a check of the token on the server | The verdict when the site accepts or refuses the form |
| fraud scorer | The backend of the site | No feedback in the browser |
One product can combine two classes, for example an edge check and a page script.
the edge
An edge WAF decides on each request before the request gets to the origin.
Thus the operator sees the result in the first response. The first response is one of these three: a hard status (the status 403, 429, or 503), a challenge page, or the real page.
example A request gets the status 403 and a block page in the first response. The operator sees this block at once.
claim of a company In 2020, Cloudflare stated that its bot management product applied all of its detection mechanisms to every request Cloudflare, source 1. It did this in real time, at its edge. Each request got a score: the likelihood that a human sent it. A high score meant a human. The customer set a threshold in firewall rules, with actions such as block and challenge.
The direction of a score, for example "a high score means a human", is its polarity.
the page script and the widget
A page script runs in the browser after the page loads. It collects signals and sends them to the vendor. Then the vendor can set a cookie or show a challenge on a later request. Thus the first response is the real page, and the verdict comes later.
A CAPTCHA widget gives a challenge token to the browser. The server of the site checks the token when the form arrives. Thus the operator sees the verdict only when the site accepts or refuses the form.
Two companies state how the server checks a token of their own widget:
- claim of a company Cloudflare: the widget alone does not protect a form, and the server must call its Siteverify API. Each token is valid for 300 seconds and is for single use Cloudflare, source 2.
- claim of a company Google: a reCAPTCHA token is valid for two minutes, and the server can verify it only one time Google, source 3.
the backend
A fraud scorer returns its verdict to the backend of the site, not to the browser. Thus the response to the browser gives the operator no feedback on the verdict. The operator sees the result later, for example as a declined order.
A site can also examine its server logs later. This review also gives no feedback to the operator.
claim of a company SEON documents the parts of its Fraud API SEON, source 4. The server of the site sends the user or transaction data. The backend of the site also sends a payload from the SEON browser SDK. The response holds a state and a fraud score.
session binding
A defender can apply session binding. Then a token or a clearance cookie is valid only with the client values that got it.
The values can be the IP address, the user agent, or the TLS stack. If one bound value changes, the token fails, and the product can show a new challenge. A defender does not have to bind each token.
example A clearance cookie is bound to the IP address A. The next request with that cookie comes from the IP address B. The cookie fails, and the edge shows a new challenge.
A W3C Editor's Draft, Device Bound Session Credentials, binds a web session to a key on the device W3C, source 5. For example, when a bound cookie expires, the browser signs a new value from the server with its private key, and the server checks it.
presence is not a block
A vendor script or cookie on a page with real content is an ambient marker. It shows that the site uses the vendor. It does not show a block.
Also, a later decision point, for example a fraud scorer, can still decline the action. Thus a missing block signature does not show success.
the marker rule
status of this section: documented in my test systemThe benchmark platform, my test system, has a marker rule. The rule gives one of three results for a response:
| sign in the response | the rule records | what it shows |
|---|---|---|
| A hard status, a challenge marker, or no real content | Block | A block |
| Real content and a vendor marker | Vendor present | The vendor is on the page. The block check is inconclusive. |
| Real content and no vendor marker | No vendor marker | The block check is inconclusive. |
The rule can classify a response wrong. A hard status or a page with no real content can also come from an outage or a change of the page.
The second code example prints these three results.
example A page has the status 200, real content, and a vendor sensor script. The marker rule records that the vendor is present, and the block check is inconclusive.
the two sides
| automation side | detection side |
|---|---|
| The operator sees the result only at the decision point. An edge block shows in the first response. A fraud scorer gives no feedback in the browser, and the operator sees a declined order later. | The defender selects the decision point. A product that gives no feedback in the response gives the operator less to learn from each failure. |
design decisions
| option | gain | cost | when it is correct |
|---|---|---|---|
| The site decides at the edge | The request stops before the origin does work for it. | Each block teaches the operator at once. The operator can compare two configurations fast. | Many simple requests from automated clients |
| The site decides with a page script or a widget | The product gets signals from the browser. | The page loads first. The visitor can see a challenge. | Pages where the site can accept a short delay of the verdict |
| The site decides at the backend | The verdict uses the business context. The operator gets no feedback in the browser. | The verdict comes late, after the action starts. | Actions of high value, for example a payment or a login |
| The product applies session binding | A token that a different client uses fails. | A real user who changes network can get a new challenge. | When the reuse of a token is a risk |
diagram
decision points by product class and what the operator can observe at each point
session binding: a clearance cookie that a defender can bind to the ip address, the user agent, and the tls stack
code example
The first example classifies a response with a list of block signatures. When a signature is present, the code records a block. But when no signature is present, the code does not report a success.
All signatures and responses are synthetic, and no signature describes a real product.
Classify each response of a JSON file into a product class with a list of block signatures. Show that a signature marks a block, but no signature does not show success.
import { readFileSync } from "node:fs";
// Synthetic signatures. No entry describes a real product.
type Resp = { status: number; headers: Record<string, string>; cookies: string[]; body: string };
type Sig = { cls: string; status?: number[]; header?: [string, string]; cookie?: string; body?: string };
const SIGNATURES: Sig[] = [
{ cls: "edge WAF", status: [403, 429, 503], header: ["x-edge-action", "block"] },
{ cls: "edge WAF", status: [403, 503], body: "edge-challenge-form" },
{ cls: "CAPTCHA interstitial", cookie: "challenge_state", body: "captcha-interstitial" },
];
function matches(r: Resp, s: Sig): boolean {
if (s.status && !s.status.includes(r.status)) return false;
if (s.header) {
const value = r.headers[s.header[0]];
if (value === undefined || !value.includes(s.header[1])) return false;
}
if (s.cookie && !r.cookies.some((c) => c.startsWith(s.cookie + "="))) return false;
if (s.body && !r.body.includes(s.body)) return false;
return true;
}
function classify(r: Resp): string {
const hit = SIGNATURES.find((s) => matches(r, s));
if (hit) return `block, class: ${hit.cls}`;
// No signature is not proof of success: a backend scorer gives no feedback in the browser.
return "no block signature: not proof of success";
}
// The argument is a JSON file: { "name": { status, headers, cookies, body } }.
// Header names are in lower case.
const responses: Record<string, Resp> = JSON.parse(readFileSync(process.argv[2], "utf8"));
for (const [name, r] of Object.entries(responses)) {
console.log(`${name}: ${classify(r)}`);
}output
One line for each response: the product class of the block, or a statement that no signature is present.
r1: block, class: edge WAF
r2: block, class: edge WAF
r3: block, class: CAPTCHA interstitial
r4: no block signature: not proof of successI ran the code with the Node runtime and the flag --experimental-strip-types, on a file of four synthetic responses:
- Response r1 has the status 403 and the header
x-edge-action: block. - Response r2 has the status 503 and the edge challenge form.
- Response r3 has the challenge cookie and the CAPTCHA interstitial.
- Response r4 has the status 200, real content, and a sensor cookie.
The second example separates an ambient marker from a served challenge. It prints "block" for a hard status, a challenge marker, or a page without the expected content. Else it prints "vendor present" when a sensor marker is present.
All markers and pages are synthetic.
Separate an ambient vendor marker on a real page from a served challenge, and print vendor present or block for each page.
import { readFileSync } from "node:fs";
// Synthetic markers. No marker belongs to a real product.
type Page = { status: number; cookies: string[]; body: string };
const HARD_STATUS = [403, 429, 503];
const CHALLENGE_MARKERS = ["challenge-interstitial", "verify-human-form"];
const SENSOR_SCRIPT = "vendor-sensor-script";
const SENSOR_COOKIE = "vendor_sensor=";
function verdict(p: Page, expected: string): string {
const challenge = CHALLENGE_MARKERS.some((m) => p.body.includes(m));
const realContent = p.body.includes(expected);
// A hard status, a challenge marker, or no real content: record a block.
if (HARD_STATUS.includes(p.status) || challenge || !realContent) return "block";
// A sensor on a page with real content is an ambient marker, not a block.
const sensor = p.body.includes(SENSOR_SCRIPT) || p.cookies.some((c) => c.startsWith(SENSOR_COOKIE));
return sensor ? "vendor present" : "no vendor marker";
}
// Argument 1: a JSON file { "name": { status, cookies, body } }.
// Argument 2: a text that each real page of the target holds.
const pages: Record<string, Page> = JSON.parse(readFileSync(process.argv[2], "utf8"));
const expected = process.argv[3];
for (const [name, p] of Object.entries(pages)) {
console.log(`${name}: ${verdict(p, expected)}`);
}output
One line for each page: block, vendor present, or no vendor marker.
p1: vendor present
p2: block
p3: block
p4: no vendor markerI ran the code in the same way, with four synthetic pages and the expected text "Product list":
- Page p1 has real content and the sensor script.
- Page p2 has the challenge marker and no real content.
- Page p3 has the status 429.
- Page p4 has real content and no marker.
data
challenge entries in the catalog, by kind
status of this figure: documented in my test system
source: Benchmark platform, code (my test system): catalog of challenges, 19 entries; date 2026-11-16
data table
| item | entries |
|---|---|
| CAPTCHA widget | 13 |
| anti-bot gate | 3 |
| proof-of-work widget | 2 |
| WAF challenge | 1 |
The benchmark platform keeps a catalog of challenges. The chart counts its 19 entries in 4 kinds.
Most entries are CAPTCHA widgets. By the first table, a CAPTCHA widget decides in the page, and then the server checks its token. Thus for most entries, the operator sees the verdict only when the site accepts or refuses the form.
failure modes
| problem | cause | correction |
|---|---|---|
| You record a page with a vendor script as a block. | The script is an ambient marker. It shows the vendor, not a block. | Record a block only with a hard status, a challenge marker, or no real content. Check each block against an outage or a change of the page. |
| You name a vendor from a general signal. | A general signal agrees with many products. | Name a vendor only with a signal that is specific to it, for example an endpoint pattern. Use a general signal only as a second piece of evidence. |
| You record a success, and the order is declined later. | A fraud scorer decides at the backend and gives no feedback in the browser. | Record the result of the action, not only the first response. |
| A valid token fails on a later request. | The product applies session binding, and one client value changed. | Record the client values with each token. Compare them when a token fails. |
| You compare the scores of two vendors directly. | The two scores can have a different polarity. | Change each score to one direction before you compare them. |
check questions
A product gets the account data and the payment data of an order from the site. Then the shop accepts or refuses the order. Which decision point does the product use?
- The edge
- A page script
- The backend of the site
- A CAPTCHA widget
answer
c. The backend of the site
A fraud scorer returns its verdict to the backend of the site, not to the browser.
Describe what the operator can observe at the edge and at the backend.
sample answer
At the edge, the operator sees the verdict in the first response: a hard status, a challenge page, or the real page. At the backend, the response gives no feedback in the browser. The operator sees the result later, for example as a declined order.
Explain why a valid clearance cookie can fail on a later request.
sample answer
A defender can apply session binding. The cookie is then valid only with the client values that got it, for example the IP address, the user agent, and the TLS stack. If one value changes, the cookie fails, and the product can show a new challenge.
A response has the status 200, the real content of the page, and a vendor sensor script. What does it show?
- The site uses the vendor, and the response shows no block.
- The vendor blocked the request.
- The request is a success at each decision point.
answer
a. The site uses the vendor, and the response shows no block.
The script is an ambient marker. It shows the vendor, not a block. A later decision point, for example a fraud scorer, can still decline the action.
exercise
exercise Do this task in your own lab, with synthetic data only. Do not send a request to a site.
- Save the second code example in an empty folder of your lab.
- Write a JSON file with four synthetic pages. Use the text "Product list" as the expected content.
- Make page A with the status 200, the expected content, and the text "vendor-sensor-script".
- Make page B with the status 200, the text "challenge-interstitial", and no expected content.
- Make page C with the status 403 and the expected content.
- Make page D with the status 200, the expected content, and no marker.
- Run the code with Node, the flag
--experimental-strip-types, the file, and the text "Product list". - Record the result for each page.
- Write the decision point that each result can show, and the decision point that no result can show.
sample answer
This sample answer uses the four synthetic pages only.
Page A gives "vendor present", because the sensor marker is on a page with real content. Page B gives "block", because it has a challenge marker and no real content. Page C gives "block", because 403 is a hard status. Page D gives "no vendor marker".
| result | what it can show |
|---|---|
| Block | A verdict of the edge, or a served challenge |
| Vendor present | Only that a page script is on the page, not its verdict |
| No vendor marker | Only that the page has no marker |
No result can show a fraud scorer at the backend. Thus "vendor present" and "no vendor marker" are not proof of success. Only the result of a later action can show the verdict of the backend.
sources
- Cloudflare Bot Management: machine learning and more (2020-05-06), Cloudflare, vendor page, read 2026-11-19
- Turnstile server-side validation, Cloudflare, documentation, read 2026-11-19
- Verify the user response, Google, documentation, read 2026-11-19
- SEON Fraud API, SEON, documentation, read 2026-11-19
- Device Bound Session Credentials, W3C, draft, read 2026-11-19
- My model of the decision points of the product classes and of session binding, 2026-11 (not public).
- Benchmark platform, code (my test system): the marker rule that separates an ambient marker from a block, 2026-11 (not public).