Traffic gate

A quality filter that sits between a traffic source and a monetization page. It scores each visit, and in enforce mode it diverts the visits the rules reject instead of passing them on.

Endpoints

PathWhat it does
/g?clickid=…Gate entry. Scores the visit, then serves the JS check page.
/g/jJS handshake landing. Verifies the signed token, then redirects onward.
/api/statsCounter snapshot. Requires the stats token.

Modes

observe scores and logs everything but never blocks — run this first. enforce applies the verdict. The mode lives in lib/config.js.

No cookies, no personal data stored. Counters are per-edge and ephemeral.