stefanprodan / WebApiThrottle

ASP.NET Web API rate limiter for IIS and Owin hosting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using IpWhitelist while IpThrottling = false

asdegani opened this issue · comments

Hi,
I need to use throttling NOT based on user IP (i.e. a total of 100 requests per second from all users), but I want local requests to pass without being throttled. I tried setting IpThrottling = false and populating IpWhitelist, but the local requests are still being throttled.
Is there a way to configure the throttler so my scenario will work?
Thanks

The IpWhitelist works only if you have enabled IpThrottling, see here

I could change this behavior and allow IP white listing no matter the policy.

I have a similar situation. I want to do only IpThrottling, i.e. you get throttled based on all requests from an IP, but have a list of white-listed endpoints.

FYI, my workaround is to not use a whitelist, but to use EndpointRules (or IpRules) with very high limits.