Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

npm/tarpit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tarpit

tarpit actions based on a key

Build Status

artax

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.