Dev Tools · 1h ago
Deployment Topology Impacts Rate-Limiting and Trust Proxy Settings
Rate-limiting based on client IP fails when requests pass through multiple proxies, as the backend sees the proxy's IP instead. Developers must configure 'trust proxy' in Express to skip known proxies and read the real client IP from X-Forwarded-For. The setting can be numeric, 'uniquelocal', or an IP array, depending on network topology.
Meridian48 take
A practical reminder that simple rate-limiting breaks in multi-hop architectures, but the fix is well-documented—if you know your proxy chain.
Read the full reporting
Impact of deployment topology on rate-limiting and trust proxy →
DEV Community
rate-limitingtrust-proxy