ClientRules does not overwrite GeneralRules
See original GitHub issueHi, i think client rules does not overwrite general rules. This is my configuration:
"ClientRateLimiting": {
"EnableEndpointRateLimiting": false,
"StackBlockedRequests": false,
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"ClientRules": [
{
"ClientId": "cid123",
"Rules": [
{
"Endpoint": "*",
"Period": "1h",
"Limit": 100
}
]
}
],
"GeneralRules": [
{
"Endpoint": "*",
"Period": "1s",
"Limit": 2
},
{
"Endpoint": "*",
"Period": "1h",
"Limit": 5
}
]
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (2 by maintainers)
Top Results From Across the Web
ClientRateLimitMiddleware
Override general rules for specific clients appsettings.json: ... defined period that is not present in the Client rules then this general rule is...
Read more >Symantec Endpoint Protection Installation and ...
Searching for the clients that do not have the client software installed. ... Preventing and allowing users to change the client's user interface....
Read more >A Professional ASP.NET Core API - Rate Limit
We need to override the virtual OnActionExecuting method from our inherited class. Within this method we are doing the following: Obtaining the ...
Read more >Configure API throttling settings
Throttling limits are applied to overall API usage by any single caller, client, organization, or endpoint. If an API call has reached its...
Read more >AspNetCoreRateLimit Does not use query parameters ...
I'm using AspNetCoreRateLimit library with Asp.Net Core 2.2 web api. I've taken IpRateLimiting into use with it's default settings in Startup.cs ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@roycornelissen, please find the gist https://gist.github.com/r4nc1d/f01e4594917843189299eed98f5043e2
For simplicity i just used RedisCache, that way I could just used the AbsoluteExpirationRelativeToNow, The key will get removed automatically once set time has expired.
Try changing:
to