Why does my computer get viruses and why are all these data breaches happening? If you want to protect your computer from viruses use an operating system that many people do not use. Use mail services that are smaller in size. Use on prem software that is not main stream, and support the vendor to keep them in business. Keep the software as varied as much as possible.