Skip to content

Netlify Deployment

Any-DNS CNAME + Deno-runtime Edge Function. On par with Vercel; pick whichever dashboard your team prefers.

One-click deploy

Deploy to Netlify

Or paste this template repo URL into the Netlify console:

https://github.com/suxuemi/email-track-domain

Configuration

VariableDefaultDescription
BACKEND_HOSTcf-track.laifa.xinTracking backend hostname
BACKEND_PROTOCOLhttp:Backend protocol (colon required)
REDIRECT_TARGEThttps://www.google.comWhere to send rejected requests

After deploying, modify in Netlify Dashboard → Site Settings → Environment Variables.

Custom domain

See Bind a Custom Domain.

Differences vs Cloudflare

CloudflareNetlify
L0/L1 path filtering
L2 detection methodNative ASN 8075 (high accuracy)IP-range match (medium)
L2 IP range refresh needed?NoEvery 3-6 months
L3 reverse proxy
Domain flexibilityDNS must be hosted on CFAny DNS via CNAME
RuntimeV8 isolateDeno

Best for: DNS not on Cloudflare, don't want to migrate, want CNAME-based setup.

Vercel or Netlify?: Features are nearly equivalent — pick the dashboard your team prefers.

IP ranges live in netlify/edge-functions/track.js's MICROSOFT_IPV4_RANGES constant; see shared/microsoft-ranges.js for update guidance.