To protect your computer from viruses, you should use antivirus software, keep your operating system and software up to date, avoid downloading software from untrusted sources, and be cautious with email attachments and web links.