Viruses can come from anywhere - emails, downloads, even just browsing the internet.
Make sure your computer has up-to-date antivirus software installed.
Be wary of suspicious emails or links, especially from unknown senders.
Don't download anything from untrusted sources.
Keep your operating system and software up-to-date with the latest security patches.
Use strong and unique passwords for all your accounts.
Don't use public Wi-Fi without a VPN. Back up your important files regularly.
Be cautious when using USB drives from unknown sources.
If you suspect your computer has been infected, disconnect from the internet and run a virus scan immediately.
For more such interesting stuff, click on the link given below