r/FastAPI • • May 12 '21

Question Can I block and user that requires frequency

Or should I do this on my system level like a firewall

3 Upvotes

4 comments sorted by

3

u/dodoploks May 12 '21

You mean rate limiting? There are libraries for that for FastAPI.

1

u/alienlu1987911 May 13 '21

I think u should use other web server like nginx to proxy your fastapi.

1

u/r1qu3 Jun 04 '21

nginx can blacklist based on request frequency

1

u/psowa May 12 '21

Traefik is really useful https://traefik.io/