blog.weyland.tech
Banning with basic auth and Fail2Ban | Weylands Techblog
Banning with basic auth and Fail2Ban By using basic auth on you apps there is nothing stopping people from trying to brute force their way in. But by implementing Fail2ban, you can give the user or intruder x amount of retries before getting banned. Creating the .htpasswd file SSH into your server and create the .htpasswd file Use this command to create a .htpasswd file. Just drop the docker part if you don't use that. docker exec -it letsencrypt htpasswd -c /config/nginx/.htpasswd USER-NAME New password: Re-type new password: Adding password for user yourusername The outcome...