feat: upgrade max_retry logic and change version
All checks were successful
build / build (push) Successful in 2m9s

This commit is contained in:
d3m0k1d
2026-02-22 18:27:21 +03:00
parent 97eb626237
commit 7bba444522
6 changed files with 18 additions and 9 deletions

View File

@@ -79,5 +79,6 @@ These command help you to create and manage detection rules in CLI interface.
| -m -method | - |
| -c -status | - |
| -t -ttl | -(if not used default ban 1 year) |
| -r -max_retry | - |
You must specify at least 1 of the optional flags to create a rule.

View File

@@ -47,4 +47,5 @@ Example:
**Description**
The [[rule]] section require name and one of the following parameters: service, path, status, method. To add a rule, create a [[rule]] block and specify the parameters.
ban_time require in format "1m", "1h", "1d", "1M", "1y".
If you want to ban all requests to PHP files (e.g., path = "*.php") or requests to the admin panel (e.g., path = "/admin/*")
If you want to ban all requests to PHP files (e.g., path = "*.php") or requests to the admin panel (e.g., path = "/admin/*").
If max_retry = 0 ban on first request.