Skip to content
Toolkit

ADR-0090 — An excluded visitor sees what a missing link shows

Status: Accepted · Date: 2026-08-29 · Track: 007-enforcement, phase 01 · Follows ADR-0089, ADR-0083.

The question the first branch had to answer

links.display_rules narrows who a link is for. The data model says nothing about what a visitor outside that audience should receive: the rules are a filter with show/hide conditions, and there is no per-rule destination anywhere in the editor, the schema, or the matcher. So the first slice of phase 01 had to choose the refusal, and every later branch inherits the choice.

Three candidates: a 404; a 403 with an explanation; a redirect to some fallback.

The decision

A visitor the rules exclude gets exactly what a nonexistent slug gets — a 404, with no click recorded and no tracking cookie set.

  1. A 403 leaks the thing the rules were bought to control. "This link exists, but not for you" tells an excluded visitor that the resource is there, who it is for, and often why they missed — from a control the customer bought to narrow an audience. The refusal must not be more informative than the resource.
  2. A fallback redirect would be invented. expiration_url is collected beside clicks_limit and belongs to that branch; nothing in the link form collects a destination for an excluded audience. Serving one would be this track inventing product, which the charter forbids.
  3. A refusal is not a click. The branch sits above the tracking cookie and the click insert, so analytics count visits that resolved. A "click" on a link that served nothing would corrupt the one number this product sells about a link.

The gate reasons in phase 02 are deliberately not this: a password or a sensitive-content interstitial serves a document, because there the visitor is in the audience and is being asked for something. Refusal by audience is silent; refusal by gate is a conversation. The rule that keeps them apart: a branch that narrows who a link is for 404s; a branch that asks the visitor for something renders.

Consequences

  • The schedule branch (phase 01's next slice) takes the same 404 — out of window is out of audience in time.
  • The click-limit branch does not: expiration_url is collected data, and a link at its limit is exhausted rather than private, so it serves that URL and 404s only when it is empty.
  • Where two branches would both refuse, the order between them is unobservable, which is what keeps the composition test small: only the click limit's redirect is distinguishable, and it is evaluated last of the three.
  • Rules and evaluation share one definition of the visitor (newVisitorContext), so the biolink page's block filtering and the redirect path cannot disagree about which country a visitor is in.

Source: docs/decisions/0090-an-excluded-visitor-sees-what-a-missing-link-shows.md

Library