https://github.com/blockstarter/bs-ddos
Blockstarter DDOS protection
https://github.com/blockstarter/bs-ddos
ddos ico protection
Last synced: 4 months ago
JSON representation
Blockstarter DDOS protection
- Host: GitHub
- URL: https://github.com/blockstarter/bs-ddos
- Owner: blockstarter
- Created: 2017-11-01T14:19:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T14:26:54.000Z (over 8 years ago)
- Last Synced: 2025-10-04T05:48:27.370Z (8 months ago)
- Topics: ddos, ico, protection
- Language: LiveScript
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Blockstarter's DDOS Protection
Install
```
npm i bs-ddos
```
Use
```Livescript
require! {
\express
\ddos
}
app = express!
app.use ddos { static: 1000, api: 1000, ban: 10 * 1000 }
app.listen 80
```
Params
* api - limit requests in ms for /api/... requests
* static - limit requests in ms for all other requests
* ban - ban user in ms when he was rejected 4 times