2.0.1 • Published 8 years ago

bedrock-request-limiter v2.0.1

Weekly downloads
22
License
-
Repository
github
Last release
8 years ago

bedrock-request-limiter

A bedrock module that adds HTTP(S) request limiting to bedrock-express to, for example, help mitigate DoS attacks.

bedrock-request-limiter is built using redback.

Requirements

  • npm v3+

Quick Examples

npm install bedrock-request-limiter

Request limiting is controlled via the configuration system; simply include bedrock-request-limiter and set the maximum number of requests per IP per hour to allow.

var bedrock = require('bedrock');

require('bedrock-server');
require('bedrock-express');
require('bedrock-request-limiter');

// limit number of requests per hour per IP address (0 means no limit)
bedrock.config.limiter.ipRequestsPerHour = 3600;

bedrock.start();

Configuration

For more documentation on configuration, such as where to set your Redis host, port, and password information, see config.js.

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago