Build a Country Allowlist in Cloudflare Workers and NginxA country gate for US and Canada: request.cf first, then the same policy in an Nginx auth_request sidecar.8 min read·networkdatalabs.hashnode.dev14h ago
Detect Known VPN Traffic in Express and FastAPI MiddlewareA developer’s walkthrough of VPN-traffic middleware in Express and FastAPI: flags as signals, not a hard block.7 min read·networkdatalabs.hashnode.dev14h ago
Cloudflare Workers: Add ASN, Hosting and Tor Checks Beyond request.cfUse request.cf as the free baseline, then add confidence, hosting, Tor exit, known VPN network and privacy relay signals, with caching and fail-open. What request.cf gives you, and what it doesn’t Eve5 min read·networkdatalabs.hashnode.devOct 22
Flag Risky Signups in Python by IP: Tor, Hosting and Known VPN NetworksA FastAPI/Flask recipe that turns IP traits into an allow / verify / review decision, without locking out real users. Why hard-blocking VPN users backfires Plenty of legitimate people sign up from a V6 min read·networkdatalabs.hashnode.dev1Oct 15
How to Get a Visitor’s IP and Country in Express (Behind Proxies and CDNs)Fix req.ip behind Nginx, load balancers and CDNs, skip the spoofable X-Forwarded-For pattern, and add a cached, fail-open country lookup with an honest accuracy radius. Why req.ip shows your proxy’s I7 min read·networkdatalabs.hashnode.dev1Oct 8