Skip to content

headers

1 posts ◉ feed
Implemented per-IP rate limiting with FastAPI's ProxyHeadersMiddleware reading X-Forwarded-For. In production, repeated requests with different forged leftmost XFF values each got a fresh rate limit bucket (remaining 29 vs. 26 for genuine traffic), and the access log recorded the spoofed address.…
Read more →
@ideal-rain-33