fail2ban nginx-botsearch

This commit is contained in:
Sam 2025-03-02 23:07:58 +00:00
parent 6582e62fc6
commit cce83b0c08

View file

@ -13,6 +13,7 @@
enable = true;
maxretry = 5;
ignoreIP = [
"86.173.148.116"
];
bantime-increment = {
enable = true;
@ -29,6 +30,15 @@
bantime = 600;
maxretry = 10;
};
nginx-botsearch.settings = {
filter = "nginx-botsearch";
action = "iptables-allports";
logpath = "/var/log/nginx/access.log";
backend = "auto";
findtime = 600;
bantime = 86400;
maxretry = 3;
};
};
};
}