---
title: "Network Data Labs (@networkdatalabs) | Hashnode"
description: "IP geolocation API with ASN, timezone and risk signals (Tor, hosting, known VPN networks). Free plan: 1,000 requests/day. Docs in English and Spanish."
url: "https://hashnode.com/@networkdatalabs"
---

@networkdatalabs

# Network Data Labs

@networkdatalabs · Joined October 2026

IP geolocation API with ASN, timezone and risk signals (Tor, hosting, known VPN networks). Free plan: 1,000 requests/day. Docs in English and Spanish.

[Website](https://www.networkdatalabs.com/)

### [Build a Country Allowlist in Cloudflare Workers and Nginx](https://networkdatalabs.hashnode.dev/build-a-country-allowlist-in-cloudflare-workers-and-nginx?utm_source=hashnode&utm_medium=feed)

A country gate for US and Canada: request.cf first, then the same policy in an Nginx auth\_request sidecar.

8 min read · [networkdatalabs.hashnode.dev](https://networkdatalabs.hashnode.dev/build-a-country-allowlist-in-cloudflare-workers-and-nginx?utm_source=hashnode&utm_medium=feed)

[14h ago](https://hashnode.com/posts/build-a-country-allowlist-in-cloudflare-workers-and-nginx/6afca5bb894f501fcc8512a7)

### [Detect Known VPN Traffic in Express and FastAPI Middleware](https://networkdatalabs.hashnode.dev/detect-known-vpn-traffic-in-express-and-fastapi-middleware?utm_source=hashnode&utm_medium=feed)

A developer’s walkthrough of VPN-traffic middleware in Express and FastAPI: flags as signals, not a hard block.

7 min read · [networkdatalabs.hashnode.dev](https://networkdatalabs.hashnode.dev/detect-known-vpn-traffic-in-express-and-fastapi-middleware?utm_source=hashnode&utm_medium=feed)

[15h ago](https://hashnode.com/posts/detect-known-vpn-traffic-in-express-and-fastapi-middleware/6afca5008a360161ad20bce1)

### [Cloudflare Workers: Add ASN, Hosting and Tor Checks Beyond request.cf](https://networkdatalabs.hashnode.dev/cloudflare-workers-add-asn-hosting-and-tor-checks-beyond-request-cf?utm_source=hashnode&utm_medium=feed)

Use 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 Eve

5 min read · [networkdatalabs.hashnode.dev](https://networkdatalabs.hashnode.dev/cloudflare-workers-add-asn-hosting-and-tor-checks-beyond-request-cf?utm_source=hashnode&utm_medium=feed)

[Oct 22](https://hashnode.com/posts/cloudflare-workers-add-asn-hosting-and-tor-checks-beyond-request-cf/6ada0d471660b15a5976f796)

### [Flag Risky Signups in Python by IP: Tor, Hosting and Known VPN Networks](https://networkdatalabs.hashnode.dev/flag-risky-signups-in-python-by-ip-tor-hosting-and-known-vpn-networks?utm_source=hashnode&utm_medium=feed)

A 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 V

6 min read · [networkdatalabs.hashnode.dev](https://networkdatalabs.hashnode.dev/flag-risky-signups-in-python-by-ip-tor-hosting-and-known-vpn-networks?utm_source=hashnode&utm_medium=feed)

[Oct 15](https://hashnode.com/posts/flag-risky-signups-in-python-by-ip-tor-hosting-and-known-vpn-networks/6ad0d362df3674ae2c6619fb)

### [How to Get a Visitor’s IP and Country in Express (Behind Proxies and CDNs)](https://networkdatalabs.hashnode.dev/how-to-get-a-visitor-s-ip-and-country-in-express-behind-proxies-and-cdns?utm_source=hashnode&utm_medium=feed)

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 I

7 min read · [networkdatalabs.hashnode.dev](https://networkdatalabs.hashnode.dev/how-to-get-a-visitor-s-ip-and-country-in-express-behind-proxies-and-cdns?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/how-to-get-a-visitor-s-ip-and-country-in-express-behind-proxies-and-cdns/6ac7e57f1ab4173f90651cd8) [Oct 8](https://hashnode.com/posts/how-to-get-a-visitor-s-ip-and-country-in-express-behind-proxies-and-cdns/6ac7e57f1ab4173f90651cd8)
