Home Reference Source
public class | source

NodeAPIAntiDos

You can directly use an instance of this class. nodeAPIAntiDos

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

waitlist: *[]

Method Summary

Public Methods
public

addRouteWeight(route: *, totalWeight: *)

public

allowIP(ip: *): boolean

public

protectRoute(route: *, callback: *): *

Private Methods
private

Public Constructors

public constructor() source

Public Members

public totalWeights: {} source

public waitlist: *[] source

Public Methods

public addRouteWeight(route: *, totalWeight: *) source

Params:

NameTypeAttributeDescription
route *
totalWeight *

public allowIP(ip: *): boolean source

Params:

NameTypeAttributeDescription
ip *

Return:

boolean

public protectRoute(route: *, callback: *): * source

Params:

NameTypeAttributeDescription
route *
callback *

Return:

*

Private Methods

private _reduceWeights() source