Skip to content

stefanprodan/AspNetCoreRateLimit

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

32b0ad1 · Oct 23, 2023
Nov 9, 2020
Jul 31, 2023
Oct 23, 2023
Jul 21, 2016
Jul 21, 2016
May 25, 2021
Dec 3, 2022
Jul 21, 2016
Oct 31, 2022
Nov 19, 2021
Sep 7, 2020

Repository files navigation

AspNetCoreRateLimit

AspNetCoreRateLimit is an ASP.NET Core rate limiting solution designed to control the rate of requests that clients can make to a Web API or MVC app based on IP address or client ID. The AspNetCoreRateLimit package contains an IpRateLimitMiddleware and a ClientRateLimitMiddleware, with each middleware you can set multiple limits for different scenarios like allowing an IP or Client to make a maximum number of calls in a time interval like per second, 15 minutes, etc. You can define these limits to address all requests made to an API or you can scope the limits to each API URL or HTTP verb and path.

Build status NuGet NuGet GitHub stars GitHub forks License: MIT

Built-in Rate Limiting support - part of .NET 7

Documentation

Version 3.x.x Breaking Changes

Rate limiting based on client IP

Rate limiting based on client ID

Advanced configuration