Tag: fail2ban

Nginx + Fail2ban Blocking IP behind AWS Load Balancer

You know there is this problem, if you have some web servers behind an Amazon ELB it’s hard to block some malicious hosts. Why is it hard? Well, first of all, on the ELB you can use only security groups to allow/block IP/nets, BUT AWS Security Group doesn’t permit you to block something but only to allow, […]


Stop/Block Apache/Nginx hack attempts with fail2ban

Here is a useful quick post to stop hack attempts to your WordPress web server like wp-login brute force and xmlrpc exploits attacks. First of all, install the package “fail2ban“: sudo apt-get install fail2ban Then add these two rules to your jail file on /etc/fail2ban/jail.conf Please change the logpath according to your web servers access […]


Categories