WebApiThrottle icon indicating copy to clipboard operation
WebApiThrottle copied to clipboard

Using IpWhitelist while IpThrottling = false

Open asdegani opened this issue 8 years ago • 3 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

asdegani avatar Mar 02 '17 14:03 asdegani

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.

stefanprodan avatar Mar 04 '17 08:03 stefanprodan

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.

avesse avatar May 21 '17 16:05 avesse

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

avesse avatar May 21 '17 16:05 avesse