PDF download Download Article
Make sure your computer is safe from viruses when browsing the internet
PDF download Download Article

Downloading malicious code can be devastating to your devices, your security, your privacy, and your data. We talked to cybersecurity specialist Michael Thompson-Brown to find out the best ways to protect your computer. This wikiHow article teaches you to avoid downloading malicious code.

Quick Steps

  1. Install and update antivirus software.
  2. Download and install all patches and software updates.
  3. Be careful of all programs, links, and attachments you open.
  4. Avoid unsecured websites.
  5. Disable pop-ups and autorun/autoplay features.
  6. Change your password frequently.
  7. Use a firewall.
1

Install Antivirus Software

PDF download Download Article
  1. Make sure you install antivirus software from a reputable source and keep it updated. Set it to run scans automatically on a regular basis. Windows has its own antivirus program built-in but you can also use additional third-party software from reputable source. If you suspect your computer is infected with malicious code, run a virus scan immediately. [1]
  2. Advertisement
2

Install Updates and Patches

PDF download Download Article
  1. Make sure you keep your computer's operating system up-to-date, as well as the apps and software you use on your computer.
3

Avoid Unsecured Websites

PDF download Download Article
  1. You can tell if a website is secure by checking to make sure it says "https" in the URL (rather than "http"). You can also check for a padlock icon displayed somewhere in your web browser. This indicates that the website has an SSL certificate and that the connection is encrypted. Make sure all websites you visit and download from are secure. [2]
  2. Advertisement
4

Be Careful of Links and Attachments

PDF download Download Article
  1. Don't click links or download attachments that were sent to you by people you don't know and trust. Before clicking a link, hover over it and check the URL. Make sure it goes to the website it says it goes to. Also, check the spelling of the link to make sure it's not a spoof link designed to look official. If you receive a message claiming to be from an official institution, such as a bank, asking you to click a link and sign in, don't follow the link. Sign in on their official website or contact the company directly.
    • If a link has a file that contains a ".exe" extension at the end of it, do not click on it.
    • Scan all files with an antivirus scanner before opening them.
5

Be Careful When Downloading Free Software

PDF download Download Article
  1. Avoid downloading free software from sources that you don't know and trust. Especially if the software isn't normally free or seems too good to be true. Free software downloads may intentionally or unintentionally contain malicious code.
    • Scan any files and programs you download with an antivirus scanner before opening them.
    • Check ratings and reviews for any program you download it. Lots of negative reviews could be an indication of malware or malicious code.
    • Make sure you read the install prompts during the installation process of any software you install. [3]
    • If you have to download free software, read the terms and conditions carefully. Try to stick with open-source software that has its source code publically available so that it can be scanned by malicious code by experts.
  2. Advertisement
6

Change Your Passwords Frequently

PDF download Download Article
  1. Also, make sure you are using strong passwords as well as using a different password for each account. This will go a long way to prevent unauthorized access to your accounts. You can manage your passwords using a password manager. If you suspect your device is infected with malicious code, change your passwords immediately.
    • Cybersecurity expert and computer repair specialist Michael Thompson-Brown says "People use, and reuse the same username and password combination over and over again. They use it for four different things, which is extremely risky. For example, if you use that same password/username at some little site, and they get hacked, [the hacker now has] that pairing. If you've used that same username/password combination for your email, you're in a lot of trouble."
    • Michael Thompson-Brown goes on to say "Use a password manager you know, and use better passwords. A better password is a longer password, not necessarily more complex. Adding numbers and symbols doesn't necessarily help. The total number of characters is the most important thing."


7

Block Pop-Ups

PDF download Download Article
  1. Pop-up blockers can block pop-up advertisements and windows that may potentially contain malicious code. Most web browsers have a free pop-up blocker built in . You can also use third-party pop-up blockers.
  2. Advertisement
8

Disable AutoRun and AutoPlay

PDF download Download Article
  1. Disabling autoplay and autorun can prevent malicious code from executing through media and software that you install on your computer.
9

Limit Web Browsing Access

PDF download Download Article
  1. You can purchase software that blocks content and applies DNS filtering to block individual websites or website categories. Content blockers can be installed on a specific computer to block content on that computer, or applied to a router to block content on the entire network. If you are administering a network or home network, it is recommended you apply content blockers and DNS filtering to your entire network. [4]
  2. Advertisement
10

Use a Firewall

PDF download Download Article
  1. Windows and macOS have their own built-in firewall . You can also enable an external firewall on your router or server. This will protect your network from being attacked by malicious code.
    • Cybersecurity expert and computer repair specialist Michael Thompson-Brown says that disabling your firewall puts your computer at risk for unauthorized communication with people and programs you don't know or trust.
11

PDF download Download Article
  1. Make sure you have two-factor authentication enabled on all of your accounts. Check your bank account for unauthorized activity. If you see anything suspicious, change your passwords and contact the account provider immediately.
  2. Advertisement
12

Back Up Your Data

PDF download Download Article
  1. You can back up your data using a cloud storage service like Google Drive , Dropbox or iCloud . You can also use an external hard drive. If your device does get infected with malicious code, you will not lose all your important data.
13

Avoid Public Wi-Fi

PDF download Download Article
  1. Hackers can create hotspots that spoof public Wi-Fi. When you connect to it, they can steal your data and infect your device with malicious code. Avoid using public Wi-Fi whenever possible.
    • If you have to use public Wi-Fi, consult the business owner to make sure you are connecting to the correct Wi-Fi hotspot. Use a VPN to protect your privacy.
  2. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      About This Article

      Thanks to all authors for creating a page that has been read 1,069 times.

      Is this article up to date?

      Advertisement