Preventing computer viruses is far easier than removing them once you’ve been infected. The following steps should help prevent a computer virus infection:
Install a reliable antivirus software
Don’t open suspicious mail attachments
Install and activate a firewall to block potentially malicious files from entering your device
Use a pop-up blocker and enable your browser’s privacy settings