Variables
Const bruteForce
bruteForce: ExpressBrute = new Brute(store, {freeRetries: BRUTE_FREE_RETRIES,lifetime: BRUTE_LIFETIME})
Const bruteForceHandler
bruteForceHandler: prevent = bruteForce.prevent
Const publicRateLimiter
publicRateLimiter: function = RateLimit({windowMs: PUBLIC_RATE_LIMIT_TIME,max: PUBLIC_RATE_LIMIT_MAX})
Type declaration
-
- (req: Request, res: Response, next: NextFunction): void
-
Parameters
-
req: Request
-
res: Response
-
next: NextFunction
Returns void
Const rateLimiter
rateLimiter: function = RateLimit({windowMs: RATE_LIMIT_TIME,max: RATE_LIMIT_MAX})
Type declaration
-
- (req: Request, res: Response, next: NextFunction): void
-
Parameters
-
req: Request
-
res: Response
-
next: NextFunction
Returns void
Const speedLimiter
speedLimiter: RequestHandler = slowDown({windowMs: SPEED_LIMIT_TIME,delayAfter: SPEED_LIMIT_COUNT,delayMs: SPEED_LIMIT_DELAY})
Const store
store: MemoryStore = new Brute.MemoryStore()
Brute force middleware