This is a disappointing event. I've contacted Discord, but it will happen at Krydos timing.
I haven't heard any protection information around here, so it needs protection at the distribution and application level.
Use ssh encryption key instead of password, Change ssh port number, That's the recommended procedure,
I deal with this with an unusual server configuration. For example, My VPS uses Caddy as my web server instead of Apache.
https://caddyserver.com/
".htaccess" cannot be used. It is not subject to associated attacks. It doesn't do as much as nginx, but it's probably faster than Apache.
This also issues and manage the SSL (TLS) certificates. No SSL certificate app is required. I initially used this on Windows 10 and liked it.
And do not install and run other unnecessary applications. If you don't need PHP, don't install it. It's very effective.