Rate-limit and mitigate WebSockets DDoS attacks with Cloudflare API - Blog - LocalCan™
Rate-limit and protect your WebSocket server from DDoS attacks with strategies using Cloudflare firewall (WAF). Example code implementation with CloudflareAPI, Fastify and node-cache.
localcan.com