After Hugging Face there was this silly discourse about how you can't do anything against zero-day exploits.
Assume you have one of those enterprise gateway/firewall appliances that have zero-days found in their web management interfaces every other week.
For arguments sake, I'm going to simply accept that you can't take the management interface offline. You can't configure it to be accessible only from the local network. It has to be accessible to anyone connecting from anywhere.
The overwhelming majority of threat actors (including state-sponsored ones) tend to be overly reliant on internet scanning. They use services like Shodan/Censys, which scan every IPv4 address, then create indexes listing all the devices they find.
Threat actors then come along, use a search query to export a list of "<insert appliance type> by <insert vendor>", then either mass-exploit them, or pick and choose the devices belonging to organizations they're interested in.
One option: Create a subdomain, ideally something not easily guessable like "firewall-a4f8d5.yourcompany.com".
Sign up for a proxy/CDN provider like Cloudflare or similar. Configure the provider to forward traffic designated for that domain to the public IP address of your appliance, then enable revere proxy mode.
Now, go into your firewall and set up a rule to block all access to the management interface from IPs not belonging to Cloudflare. Either with an CIDR or ASN allow list.
Your device now doesn't show up in any internet scans at all, including those provided by Shodan or Censys, and the device is not directly accessible via IP address. But it is still accessible to anyone with the domain.
You've now reduced your blast radius from "every zero-day (or n-day if you don't patch immediately) is rocking my device" to "99.9% of exploitation attempts don't even see it", all without sacrificing availability.
Highly targeted attacker may go to the extra effort of figuring out the subdomain you use, and try to exploit the devices through the reverse proxy. But the way reverse proxies work breaks a lot of exploits, and Web Application Firewalls add a layer of additional protection.
Techniques like this work for most web-based appliances (which tend to get hit a lot as the result of internet scans). And there are plenty of simple things you can do for other software/devices which massively reduces your attack surface. Just one extra layer between the attacker and the target works wonders.
The whole "zero-day exploits are unstoppable" attitude is extremely defeatists, and also extremely wrong. Ask your friendly neighborhood blue teamer or threat intelligence professional for attack surface reduction advice.