How do you prevent and remove viruses?

While the best way is antivirus software, operating systems already come with programs like Windows Defender and Windows Security. There are also other, free programs like Avast and Kaspersky.

They may seem simple, but they’re highly effective at destroying Trojan horses, worms and spyware. It’s also important to keep on top of updates. There are other ways to prevent viruses infecting your devices:

  • Take special care on social media. Never open files without checking their source.
  • Close websites when the browser tells you they’re not secure.
  • Do not accept files from people you don’t know.
  • Back up your files regularly.

1. Install antivirus or anti-malware software

It might seem obvious, but many home computers don’t have this protection. It's essential to keep your PC virus free.

2. Keep your antivirus software up to date

Protective software is one thing; but keeping it up to date is another. While free antivirus software is better than nothing, it’s not the best solution. Microsoft has a free security package if you operate with Windows, even though you would’ve already paid for the Windows licence. Many people don’t know about it; but, actually, it’s a good form of protection.

3. Run antivirus scans regularly

This might also go without saying, but we often forget to do it. Adjust the settings so scans run at regular intervals (like once a week). Using the device while antivirus software is running can be challenging. Try running it at night when the computer is idle. Because we usually turn our devices off at night, we tend to overlook scans. Set the antivirus software to run on a specific night and only leave the computer on at that time. Make sure it doesn’t switch off automatically or go into hibernation mode.

4. Keep your operating system up to date

Whether you use Windows, Mac OS X, Linux or another operating system, always keep it up to date. Developers regularly release patches to plug security leaks. The patches will help keep your system safe. You should also keep your antivirus software up to date. New viruses and malware are emerging constantly. Their software scanning is as sophisticated as their databases, so make sure you’re on top of things.

5. Protect your network

Many PCs connect to files, printers and the Internet via Wi-Fi.  Make sure the network requires a secure password and never browse on open networks.

Use WPA or WPA2 encryption. PME is no longer secure enough. Expert hackers can circumvent it in minutes. It's also a good idea not to disclose the name of your Wi-Fi network (the SSID). You can connect to the network manually on your device by typing in the SSID and password. If you usually let guests use your Internet, give them an alternative SSID and password just in case. 

If you think your computer has a virus or malware, act quickly before the infection spreads. Following a few simple steps, and using malware removal software, you can get rid of the virus easily. Keep reading to learn how to remove a virus and other malware from your Windows PC, Mac or laptop, or let our free virus removal software handle it for you.

Download AVG AntiVirus FREE

Get it for Android, iOS, Mac

Download AVG AntiVirus FREE

Get it for iOS, Android, PC

Install free AVG AntiVirus

Get it for PC, Mac, iOS

Install free AVG Mobile Security

Get it for Mac, PC , Android

How do you prevent and remove viruses?

2020
Top Rated
product

How do you prevent and remove viruses?

2020
Top Rated
product

How do you prevent and remove viruses?

Editor's Rating
Excellent

How do you prevent and remove viruses?


Copy article link

Link copied

How do you prevent and remove viruses?

A virus or other malware infection can steal your personal data, damage your devices, and wreak all kinds of havoc. Whether you have a PC or Mac, you need to remove the virus immediately.

Unlike what many people think, Macs can get malware just like PCs. And while there are fewer viruses targeting Apple computers, other forms of Mac malware are on the rise.

This article contains:

This article contains:

This article contains:

How to remove a virus from a PC

Whether you have a virus or another kind of malware, the following steps will help you get rid of the virus immediately and repair your machine.

1. Download antivirus software

There are two main types of antivirus software that can detect and remove computer viruses and malware: real-time and on-demand. A real-time malware scanner scans for viruses in the background while you’re using your computer. An on-demand scanner, like Microsoft Defender, has to be turned on every time you want to check for malware.

For full virus and malware protection, especially against new and emerging threats, install real-time malware scanning and removal software like AVG AntiVirus FREE, which offers stronger protection than the standard tools you get from PC manufacturers.

Download AVG AntiVirus FREE

Get it for Android, iOS, Mac

Download AVG AntiVirus FREE

Get it for iOS, Android, PC

Install free AVG AntiVirus

Get it for PC, Mac, iOS

Install free AVG Mobile Security

Get it for Mac, PC , Android

2. Run a virus scan

After installing your antivirus, you need to scan your computer for any malware by running a full virus scan. A comprehensive scanner like AVG’s will search your computer for any malicious code hiding in Windows. Simply open your antivirus app and select Scan or Smart Scan.

3. Delete or quarantine infected files

After scanning your PC, your antivirus software will let you know if any malware is found. Follow the steps to remove the virus or put any infected files to quarantine.

How do you prevent and remove viruses?
AVG AntiVirus FREE easily removes viruses and prevents future malware infections.

4. Restart your computer

After deleting the infected files, restart your computer and your malware infection will be gone.

More virus removal options

If the steps above don’t get rid of the infection, you’ll need to scan your computer more thoroughly in case you have malware, like a Trojan to adware, lodged deep in your system.

Enter Safe Mode

First, restart your computer in safe mode, which is Windows’s basic startup settings with only your necessary files, programs, and drivers running.

To enter Safe Mode on Windows 10, hold down the Shift key while selecting Power > Restart. After your computer restarts, select Troubleshoot > Advanced options > Startup Settings > Enable Safe Mode.

Delete temporary files

Next, erase your temporary files to remove any malicious apps or programs you may have recently downloaded that might be causing your malware infection.

Here’s how to delete temporary files in Windows 10 while you’re in Safe Mode.

Start typing Disk Cleanup into the search field on the Windows taskbar and select it when it comes up. Then, scroll through the list of files to delete and check the box next to Temporary files. Then click OK.

How do you prevent and remove viruses?

Removing temporary files will get rid of any malware that recently entered your system — and it will help you speed up your computer, too.

Schedule a boot-time scan

If you can’t get rid of the virus after deleting your temp files, then the malware could be programmed to start when your computer boots up. In that case, you need to run a boot-time virus scan.

A boot-time scan is an advanced antivirus feature designed to root out system-level malware before the operating system and other programs boot up.

To run a boot-time scan, open your antivirus app and in the scans tab or in the settings, you’ll see an option for a boot-time scan. You should also see options about what to do with any infected files found during the scan: fix, move to quarantine, or delete. Choose your preferred setting.

After you’ve set up your boot-time scan, the next time you restart your PC, your antivirus will automatically scan your computer for any threats. Note that boot-time scans can take a while, so your next restart will likely take longer than normal.

How to remove a virus from a Mac

If your Mac has malware, you need to get rid of it straight away. These steps will help you remove malware on a Macbook, iMac, Mac mini, or any other type of Apple computer running the macOS (formerly known as OS X) operating system.

To learn more about the Mac threatscape, check out our in-depth Mac security guide. Otherwise, if you’re noticing suspicious activity, here’s how to get rid of malware on your Mac:

1. Install the latest macOS update

Updated software often includes patches that plug security vulnerabilities in previous versions. The latest version of macOS will have the most up-to-date anti-malware protections.

To update macOS, click the Apple icon in the top left of your screen, select About this Mac, and then click Software update. If an updated version of macOS is available, follow the steps to install it. After installation is complete, restart your computer and that could fix your malware problem.

2. Use a specialized Mac antivirus tool

The best way to make sure all malware is found and removed is to use antivirus software to scan your Macbook for viruses and malware. An anti-malware app will detect and repair malware infections on macOS, OS X, and other versions of Apple’s operating system. Here’s how to remove Mac malware with a specialized Mac virus scanner.

To begin, download AVG AntiVirus FREE for Mac.

Download AVG AntiVirus FREE

Get it for PC, Android, iOS

Download AVG AntiVirus FREE

Get it for iOS, Android, PC

Download AVG AntiVirus FREE

Get it for Android, PC, iOS

Download AVG AntiVirus FREE

Get it for iOS, PC , Android

After the download is complete, click on the installation file to install it. Then, open the app and run a Mac scan.

How do you prevent and remove viruses?

If malicious software is found, follow the on-screen instructions to delete the Mac malware.

How do you prevent and remove viruses?

And that’s it. Your Mac malware problem is fixed, and AVG AntiVirus FREE’s non-stop protection against new and emerging threats will keep your computer protected against viruses and malware in the future.

3. Uninstall suspicious apps

If you have the latest OS installed and are using dedicated antivirus and your malware problem persists, you should look more closely at certain apps and programs.

If the virus infection started around the time you downloaded new software, that new software may be responsible for the problem. Although the Apple App Store vets apps, malware can sneak through. And if you downloaded anything directly from a developer’s website, it could also contain malware.

Here’s how to get rid of suspicious apps on your Mac to root out a malware infection.

Open Finder > Applications and find any suspicious apps (apps with strange names or programs you don’t remember downloading yourself). Right-click on the suspicious app and choose Move to Trash.

How do you prevent and remove viruses?

Now click on Go in the top navigation menu and choose Go to Folder. Find the folder associated with the app you just deleted and drag it to your Trash.

How do you prevent and remove viruses?

Finally, right-click on your Trash and select Empty Trash to make sure the suspicious file is completely removed from your computer.

4. Remove harmful browser extensions

Browser extensions are a common malware vector. If your web browser’s settings have changed and you’re seeing things like a different homepage, new toolbars, or tons of ads, you may have a browser hijacker or adware infection. Removing these unwanted browser extensions can help get rid of a malware infection.

Remove browser extensions from Safari

To get rid of malware in Safari browser extensions, open the Safari menu and choose Preferences.

How do you prevent and remove viruses?

Choose Extensions in the top navigation and look for any browser extensions that you don’t remember installing.

How do you prevent and remove viruses?

Choose the extensions you don’t need — and which may be malicious — and click Uninstall.

And check out our guide to managing your Safari pop-up settings, which can help you minimize the risk of inadvertently getting malware from a risky ad or pop-up.

Remove browser extensions from Google Chrome

If you use Google Chrome on your Mac, here’s how to remove browser extensions in Chrome in case they’re concealing malware.

Open Chrome and click the three vertical dots in the upper right of the browser window. Select More Tools > Extensions.

How do you prevent and remove viruses?

Choose any extensions that may contain malware or that you don’t need and click Remove.

How do you prevent and remove viruses?

To avoid malicious browser extensions altogether, use a browser with built-in security and privacy that will block malicious extensions automatically.

What is a computer virus?

A computer virus is a type of malicious software that infects a computer and borrows its resources to self-replicate and spread. Computer viruses inject their own code into programs or files and can take a variety of malicious actions, including corrupting or erasing files and stealing sensitive data.

How do computer viruses spread?

Computer viruses spread by self-replication. Once inside your computer, they make copies of themselves and spread via infected email attachments, poisoned macros, or malicious links. A virus might email itself out to all your contacts, who then unwittingly send it on to all their contacts, and then their contacts’ contacts, causing exponential spread.

Email is one of the most popular malware delivery methods, which is why email security is critical. Viruses and other malware can also spread through file sharing and software bundles. When you download an app from an unreputable source outside Apple’s App Store or Google Play, it can come packaged with malicious software or bloatware.

Malware also spreads through vulnerabilities in outdated software. Many software updates are released to plug security holes. If you don’t update your software regularly, dangerous hackers can exploit the vulnerabilities in old software to gain access to a system and spread malware.

How to tell if your computer has a virus

To see if your computer has a virus or other malware, look for abnormal behavior, suspicious files or downloads, as well as the following signs of virus infection:

  • A very slow computer

  • Unfamiliar programs or apps

  • Different settings that you didn’t change

  • Corrupted or erased files

  • The sound of your hard drive in constant action

  • An incessantly loud computer fan

  • An overheating computer

  • Frequent crashes, freezes, or other unusual behavior

Any one of these symptoms might be caused by a virus or a different kind of malware like spyware or a crytominer. If you’re experiencing two or three of them at the same time, that’s a strong indication that you’ve got a virus or may even have had your computer hacked.

How to avoid viruses and malware in the future

Malware prevention is always easier than malware removal. Here are some quick and easy things you can do to avoid downloading malware:

  • How do you prevent and remove viruses?
    Install the latest software updates
    Software updates include security fixes. Update your software regularly to stay protected against the latest virus and malware strains.

  • How do you prevent and remove viruses?
    Get an antivirus program
    Using an antivirus app will protect you against malware and viruses before they infect your computer. The best antivirus software also includes protection against malicious websites, phishing scams, unsafe downloads, and more.

  • How do you prevent and remove viruses?
    Back up your data regularly
    Many malware strains, especially ransomware, can compromise your data. If you have a backup of all your data, you’ll be able to factory reset your computer without losing anything. Learn more with our complete guide to Mac ransomware.

  • How do you prevent and remove viruses?
    Be wary of pop-ups
    Avoid clicking on pop-up messages, especially those that claim to have detected a problem with your computer. Pop-ups designed to scare you into downloading unsafe security apps are often just malware in disguise.

  • How do you prevent and remove viruses?
    Watch out for strange emails
    Practice safe email practices, and don’t open emails from unknown or untrusted addresses. If you do happen to open one, do not click on any links and don’t open any attachments.

  • How do you prevent and remove viruses?
    Use strong antivirus software
    A strong antivirus is your best defense in the fight against online threats. AVG AntiVirus FREE features powerful built-in technology to block dangerous downloads and malicious websites. And with round-the-clock software monitoring, you’ll stay protected against any suspicious activity.

Download AVG AntiVirus FREE

Get it for Android, iOS, Mac

Download AVG AntiVirus FREE

Get it for iOS, Android, PC

Install free AVG AntiVirus

Get it for PC, Mac, iOS

Install free AVG Mobile Security

Get it for Mac, PC , Android

How to avoid Mac malware

Mac malware is on the rise, but some Mac users are still far too cavalier about their online security. So here are some tips to avoid Mac viruses and malware.

  • Look out for fake Mac antivirus apps.
    Some Mac malware poses as antivirus apps, hitting your computer with scary messages about a problem with your Mac and prompting you to run a virus scan.

    If you click, you’ll actually download malware instead. This type of scareware might be called MacDefender, MacProtector, MacSecurity, or something similar.

    Don’t fall for this message. If you download something malicious from a website, quit your browser, go to your Downloads folder, and drag any items in there to the Trash. Then empty the Trash. And don’t visit the website again because it’s possible that it has been hacked.

  • Quit the infected app.
    If you think malware has already been installed on your Mac — especially if you’re seeing pop-up messages asking for your Apple ID or credit card details — quit the app or shut down the software that you think might be infected.

    Open your Activity Monitor and find the app in question — or search for the malware from the list of names above. When you’ve identified the malware, click the Quit Process button, and then quit the Activity Monitor. Finally, go into your Applications folder, drag the unwanted software into the Trash, and empty the Trash.

  • Keep all your software and apps updated.
    Make sure that your Mac is running the latest operating system and that you’ve installed any updates directly from Apple.

  • Use specialized Mac antivirus software.
    Just like with a PC, it is a good idea to equip your Mac with strong protection against malware. AVG AntiVirus for Mac is a free and comprehensive cybersecurity tool with real-time protection against malware and other security risks. And it’s updated automatically to safeguard your Mac against the latest online threats.

Download AVG AntiVirus FREE

Get it for PC, Android, iOS

Download AVG AntiVirus FREE

Get it for iOS, Android, PC

Download AVG AntiVirus FREE

Get it for Android, PC, iOS

Download AVG AntiVirus FREE

Get it for iOS, PC , Android

Can’t I just use Windows Defender?

PC users may be wondering if they can simply use Windows Defender, Microsoft’s built-in antivirus program, to stop malware. Although it’s improved in recent years, Windows Defender doesn’t offer as much protection as dedicated antivirus programs.

Windows Defender, now called Microsoft Defender, has good malware prevention scores in independent tests, but it sometimes struggles with malware detection. In a 2021 test from AV-Comparatives, Windows Defender’s virus detection rate was much lower than most third-party security solutions.

Defender also lacks adequate protection against phishing attacks, Wi-Fi threats, and unsafe websites (unless you use Microsoft Edge). Plus, Windows’s own updates have a history of introducing bugs that hamstring Defender’s protection abilities.

Without dedicated antivirus software on your machine, Windows Defender will provide some protection for your PC. But to defend against the latest, most cutting-edge threats — those like zero-day attacks — we recommend AVG AntiVirus FREE, a comprehensive security suite that scores higher in AV Comparatives tests and provides more advanced features.

Are my other devices safe?

Any connected device is vulnerable to malicious software. While a traditional computer virus is unlikely to spread to mobile devices, Android phones and tablets are susceptible to mobile spyware, Android ransomware, and other phone hacking tricks.

iOS devices are a bit more resistant to malware than Androids. That mainly has to do with Apple’s defenses, such as app sandboxing and security updates on all devices — but your iPhone isn’t immune to threats. Phishing scams, unsafe Wi-Fi networks, and identity theft can all plague iOS users. For more, check out our guide to the best security apps for your iPhone.

If your phone has been acting strangely and you think there’s an infection, learn how to remove a virus and malware from your phone, or get an app that will do it for you:

  • Android antivirus
  • iPhone antivirus

Get rid of viruses and malware the easy way

Whether you want to learn how to remove a virus from a PC or get rid of malware on Mac, the easiest way is to use a robust antivirus program from a reputable developer. AVG AntiVirus FREE works around the clock to give you 24/7 protection while also having a light system load that won’t slow you down.

Remove all traces of malicious software and stay safe against future infections and emerging threats. Download AVG today and join the world’s largest threat detection network.

Download AVG AntiVirus FREE

Get it for Android, iOS, Mac

Download AVG AntiVirus FREE

Get it for iOS, Android, PC

Install free AVG AntiVirus

Get it for PC, Mac, iOS

Install free AVG Mobile Security

Get it for Mac, PC , Android

How do you prevent and remove viruses?
by Jonathan Lemonnier & Joseph Regan on March 14, 2022

Updated on August 29, 2022

DESKTOP MAC WINDOWS

Copy article link

Link copied

How do you prevent and remove viruses?

How to Find and Remove Viruses on Android Phones and iPhones How to Find and Remove Viruses on Android Phones and iPhones

How do you prevent and remove viruses?

Fake Virus Warnings: How to Spot and Avoid Them Fake Virus Warnings: How to Spot and Avoid Them

How do you prevent and remove viruses?

Can iPads Get Viruses? What You Need to Know Can iPads Get Viruses? What You Need to Know

How do you prevent and remove viruses?

What Is a Macro Virus and How Do I Remove it? What Is a Macro Virus and How Do I Remove it?

Remove malware and protect your phone with AVG AntiVirus

Free install

Remove malware and protect your iPhone with AVG Mobile Security

Free install

Viruses

Security

Jonathan Lemonnier & Joseph Regan

14-03-2022

About AVG

  • Profile
  • Media Center
  • Policies
  • Contact Us

Home Products

  • Free Antivirus Download
  • Internet Security
  • Android Antivirus
  • Free Mac Antivirus
  • Secure VPN
  • Tune Up
  • Virus Scanning & Malware Removal
  • Installation Files
  • Beta Downloads
  • Driver Updater

Customer Area

  • Register Your License
  • Anti-Theft Login
  • Home Product Support
  • Security & Performance Tips
  • Online Research

Partners & Business

  • Business Antivirus Software
  • Partner Support
  • Business Support
  • Affiliates

How do you prevent and remove viruses?
  • Twitter
  • Facebook
  • YouTube
  • LinkedIn

English

How do you prevent and remove viruses?

Log in to AVG MyAccount

Privacy | Report vulnerability | Contact security | License agreements | Modern Slavery Statement | Cookies | Accessibility Statement | Do not sell my info | | All third party trademarks are the property of their respective owners.  | © 1988-2022 Copyright Avast Software s.r.o.

We use cookies and similar technologies to recognize your repeat visits and preferences, to measure the effectiveness of campaigns, and improve our websites. For settings and more information about cookies, view our Cookie Policy. By clicking “I accept” on this banner or using our site, you consent to the use of cookies.

How do you remove viruses?

How to remove a virus from an Android phone.
Clear your cache and downloads. Open Settings, go to Apps & notifications, and select Chrome. ... .
Restart your Android device in safe mode. ... .
Find and remove malicious apps. ... .
Activate Google Play Protect. ... .
Install anti-malware software..

How do you prevent and remove a virus from your computer?

Follow the instructions to download and install the latest Windows Updates..
Use the free Microsoft Safety Scanner. ... .
Use the Windows Malicious Software Removal Tool. ... .
Manually remove the rogue security software. ... .
Run Microsoft Defender Offline..

What is the most effective way to remove a virus?

How to remove a virus from a PC.
Download antivirus software. There are two main types of antivirus software that can detect and remove computer viruses and malware: real-time and on-demand. ... .
Run a virus scan. ... .
Delete or quarantine infected files. ... .
Restart your computer..

What are the ways of prevent a virus explain?

While the best way is antivirus software, operating systems already come with programs like Windows Defender and Windows Security. There are also other, free programs like Avast and Kaspersky. They may seem simple, but they're highly effective at destroying Trojan horses, worms and spyware.