Repository navigation
Flag possible scammers for review: sign-in country, Tor/VPN, writing hints, plus a one-time check of old-site members - #17
Merged
Conversation
…GeoIP, no IPs kept), Tor/VPN, writing hints; one-time risk-check over old-site members Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015x8UvPor5y4oThmpSRWg2D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Jeff Oakes · project thread
What it does
Gives the moderation team hints about likely scammers and bots. Nothing is blocked or suspended automatically; an admin decides.
Signals (
packages/core/src/network-risk.ts, plain functions with no database or platform code, so they can later run as their own metered moderation service):Where it shows: Moderation has a new "Possible scammer" card with the reasons, a See profile button, and Looks fine / Suspend member. Looks fine keeps the same flags quiet until something new turns up. Members shows badges plus the first reason, and the member profile view lists every hint and the countries they sign in from.
When it checks: at email-code and Apple/Google sign-in, and when a member changes their location or About me. Signup sets the country after the first sign-in, so a new account is checked once the profile is filled in.
Privacy
apps/api/src/ipintel.ts). Member IPs are never sent to an outside service.Data sources (no account needed)
GEOIP_COUNTRY_URL/GEOIP_ASN_URLcan point to MaxMind GeoLite2 instead. That needs a free MaxMind account and licence key, and both.mmdb.gzand.tar.gzdownloads work.GEOIP=offturns all of this off. If a download fails, sign-in carries on with fewer or no hints.One-time check of existing members
The old AspNetDating databases keep each member's signup IP and a full login log (
IPLogs). The SkaDate extractor also reads Oxwall'sjoinIp. There is a new risk-check mode in the "Import members" workflow, run with the same backups asload. It:It changes nothing else: no profile text, no status. The sign-in countries are used for the check and not stored. It is safe to re-run, because an open item or a "Looks fine" decision is respected.
Local trial on the Nov 28 backups (the June 2026 copy of DB-IP; the real run downloads the current one):
Every member had at least one logged IP. The SkaDate members weren't in this trial because the SkaDate dump is only in Azure.
How to roll out
risk-checkonce per site, with the same backup names as the load runs.Tests
npm test -w @whatbox/core: 55 pass, including 6 new ones (mismatch, travel, Tor, VPN-only, history cap and pruning, writing hints and scoring).npm test -w @whatbox/api: 12 pass, including database unpacking (.mmdb, .gz, MaxMind .tar.gz) and lookups.npm run typecheck: clean across all workspaces.Screenshots (from the preview, which now includes one demo flagged member):
screenshots/scam-review-queue.pngandscreenshots/scam-review-profile.pngin project files.Generated by Claude Code