implement - basic rate limiting with a Dictionary
How do I do this? This is for my discord bot
5 Replies
when i googled it didnt show me what I was looking for
I guess, use the authentication system for that. Keep track of how many times the user attempted a specific action, and then deny the access in a middleware
@AntonCwdym
Anyone here
you might want to look at https://devblogs.microsoft.com/dotnet/announcing-rate-limiting-for-dotnet/
.NET Blog
Announcing Rate Limiting for .NET - .NET Blog
Announcing built-in Rate Limiting support in .NET 7. Rate limiting provides a way to protect a resource to avoid overwhelming your app.
A Microsoft employee talked to me. I feel honoured