tarpit2
v0.2.1
Published
tarpit actions based on a key
Downloads
1
Readme
tarpit
tarpit actions based on a key
tarpit
is a package that allows you to exponentially stall responses based on the frequency of a keyed
request. for example, if a specific IP requests an endpoint too frequently, you can use tarpit to
stall the handler sending a response back, until the rate of request is reduced.
installation
npm install tarpit --save
usage
see this example.
tarpit
uses redis. you'll need to have a redis-server running for tarpit
to work.