WebApiThrottle
WebApiThrottle copied to clipboard
ASP.NET Web API rate limiter for IIS and Owin hosting
Adding effective increment for requests
There are scenarios where API calls need to be incremented with not one but multiple. For example, if the API is of the form: https:///getbookinfo?start=1&end=100 This is effectively calling data...
Should I use this instead of Recaptcha?
I have the following in my web.config ``` ``` On one particular API controller action I have the following attribute: ``` [EnableThrottling(PerSecond = 2, PerMinute = 3)] ``` After 3...
Make Authorization-Token Configurable
Setting a new CustomIpAddressParser() for Owin setup doesn't actually call the custom parser. The bug exists in ThrottlingMiddleware, SetIdentity. this is missing a call to core.IpAddressParser. Inside ThrottlingHandler, SetIdentity we...
Is their any chance will be upgraded soon with .net 5 support?
As you point out in the documentation > If, from the same IP, in the same second, you'll make two calls to api/values, the last call will get blocked. But...
When request size is too large eg. 8MB then it fails with object reference error { "Message": "An error has occurred.", "ExceptionMessage": "Object reference not set to an instance of...