How can I limit requests per minute on a web server (Flask)

If you want DDOS protection, use a service like Cloudflare. Rate-limiting won’t help stop DDOS.