

I’m currently following this guide to setup caddy reverse proxy with coraza web app firewall.
But be warned, this whole rabbit hole of WAF isn’t trivial, some protections don’t work well with some apps (e.g. portainer triggers some rules about system command execution) and it needs some tuning. I personally set it up to learn more about WAFs because I believe it will help me in my career, but I would not blindly recommend it to everyone.
Approaches like crowdsec and fail2ban seem much more suitable for selfhosters – and keep your server software updated.
I mostly try to read the docs, but sadly good documentation is pretty rare.