Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace AddressRateLimiting

The IP rate limiting configuration. Defines the amount of allowed requests from a unique IP address and the resulting block response code when that threshold is exceeded.

Properties

Optional allowedRatePerAddress

allowedRatePerAddress: undefined | number

The number of allowed requests per second from one IP address. If unspecified, defaults to 1. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Optional blockResponseCode

blockResponseCode: undefined | number

The response status code returned when a request is blocked. If unspecified, defaults to 503. The list of available response codes: 400, 401, 403, 404, 405, 408, 409, 411, 412, 413, 414, 415, 416, 422, 494, 495, 496, 497, 499, 500, 501, 502, 503, 504, 507. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

isEnabled

isEnabled: boolean

Enables or disables the address rate limiting Web Application Firewall feature.

Optional maxDelayedCountPerAddress

maxDelayedCountPerAddress: undefined | number

The maximum number of requests allowed to be queued before subsequent requests are dropped. If unspecified, defaults to 10. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Functions

getJsonObj