

We have been building layers of security for years. CDN’s can quickly block lots of things https://www.ioriver.io/blog/cdn-security-risk
If I was a security researcher and found an issue my first call would be the developer, my second would be some top CDN’s so they can search for and mitigate traffic in web applications.
Edit. I should also add docker and fast updating. I just updated everything I Run with internet exposed ports in about 20 minutes.

Or maybe you just got hacked because you didn’t update.
This line of thinking can go back and forth forever.