Redirect & DB Tuning
Cloudflare Orange-Cloud Proxy vs Direct VPS DNS for Short Links
Compare edge DDoS absorption and CF-IPCountry headers against direct Caddy/Nginx VPS routing for ultra-low-latency branded redirects.
Direct VPS: 2.4 ms Local · CF Proxy: DDoS Shield + Edge Cache
Choosing Proxy Mode Based on Threat Profile
Public creator shorteners face frequent automated vulnerability scans and L7 link-enumeration floods. Enabling Cloudflare orange-cloud proxy absorbs junk floods before they touch your VPS and supplies free CF-IPCountry headers.
Preserving Real Client IP for GeoIP2 and Rate Limits
When proxying through Cloudflare, always configure Caddy or Nginx trusted_proxies to extract CF-Connecting-IP so GeoIP2 city lookups and per-IP rate limiters never mistake Cloudflare edge nodes for a single abusive user.
Measured Thresholds & Shortener Stack Parameters
| DNS Routing Mode | Pros for URL Shorteners | Operational Tradeoffs |
|---|---|---|
| Cloudflare Proxied (Orange) | Absorbs L7 floods, hides origin IP, injects CF-IPCountry | Adds 1 edge hop; disables origin raw IP unless CF-Connecting-IP read |
| DNS-Only Direct VPS (Grey) | Lowest single-hop TLS to Caddy, exact client TCP metrics | Origin IP exposed; requires host UFW + Nginx rate limits |