mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
55 lines
1.6 KiB
JSON
55 lines
1.6 KiB
JSON
{
|
|
"id": "badbehavior",
|
|
"order": 2,
|
|
"name": "Bad behavior",
|
|
"description": "Ban IP generating too much 'bad' HTTP status code in a period of time.",
|
|
"version": "0.1",
|
|
"settings": {
|
|
"USE_BAD_BEHAVIOR": {
|
|
"context": "multisite",
|
|
"default": "yes",
|
|
"help": "Activate Bad behavior feature.",
|
|
"id": "use-bad-behavior",
|
|
"label": "Activate bad behavior",
|
|
"regex": "^(yes|no)$",
|
|
"type": "check"
|
|
},
|
|
"BAD_BEHAVIOR_STATUS_CODES": {
|
|
"context": "multisite",
|
|
"default": "400 401 403 404 405 429 444",
|
|
"help": "List of HTTP status codes considered as 'bad'.",
|
|
"id": "bad-behavior-status-code",
|
|
"label": "Bad status codes",
|
|
"regex": "^.*$",
|
|
"type": "text"
|
|
},
|
|
"BAD_BEHAVIOR_BAN_TIME": {
|
|
"context": "multisite",
|
|
"default": "86400",
|
|
"help": "The duration time (in seconds) of a ban when the corresponding IP has reached the threshold.",
|
|
"id": "bad-behavior-ban-time",
|
|
"label": "Ban duration (in seconds)",
|
|
"regex": "^.*$",
|
|
"type": "text"
|
|
},
|
|
"BAD_BEHAVIOR_THRESHOLD": {
|
|
"context": "multisite",
|
|
"default": "10",
|
|
"help": "Maximum number of 'bad' HTTP status codes within the period of time before IP is banned.",
|
|
"id": "bad-behavior-threshold",
|
|
"label": "Threshold",
|
|
"regex": "^.*$",
|
|
"type": "text"
|
|
},
|
|
"BAD_BEHAVIOR_COUNT_TIME": {
|
|
"context": "multisite",
|
|
"default": "60",
|
|
"help": "Period of time where we count 'bad' HTTP status codes.",
|
|
"id": "bad-behavior-period",
|
|
"label": "Period (in seconds)",
|
|
"regex": "^.*$",
|
|
"type": "text"
|
|
}
|
|
}
|
|
}
|