# UrlRule

**Kind:** Interface

**Source:** [`atloria-monorepo/apps/api/src/tours/tour-targeting.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/tours/tour-targeting.ts#L14)

Pure targeting-rule evaluation for tour experiences (D2).

SERVER-SIDE authority: the public config endpoint evaluates URL rules and
segment filters here, so the widget only ever receives the experiences that
may run on the page it asked about. The widget keeps a mirrored, minimal
client evaluator ONLY for the state the server cannot know (localStorage
frequency caps, first-visit) — see packages/tour-widget/src/targeting.ts.

No Nest / DOM / IO dependencies — everything here is unit-testable in
isolation and safe to reason about.

## Properties

| Property | Type |
|---|---|
| `match` | `'exact' | 'prefix' | 'regex'` |
| `value` | `string` |
