Use crowdsec.net or fail2ban + bouncer to dynamically deny access to IP addresses that are scanning and/or trying to hack baselayer apps.