sodcalculator

10 Tech How-To

How to Secure a Computer: Step-by-Step Guide

Guide 10-28022 · Updated · Step by step

This guide walks you through the essential steps to protect your computer from malware, unauthorized access, and data loss. You’ll learn how to set up strong authentication, keep your system updated, and adopt safe browsing habits. No prior technical expertise is required—just follow the steps in order.

What You’ll Need

  • A computer running Windows, macOS, or a major Linux distribution
  • Administrator access to the system (to change settings and install software)
  • An internet connection for updates and downloads
  • A smartphone or secondary email for two-factor authentication (optional but recommended)

Step-by-Step

  1. Enable automatic updates. Go to your operating system’s update settings and turn on automatic updates. For Windows: Settings → Update & Security → Windows Update → Advanced options → enable “Install updates automatically.” For macOS: System Settings → General → Software Update → enable “Install macOS updates” and “Install Security Responses.” For Linux: use your package manager (e.g., sudo apt update && sudo apt upgrade) regularly.
  2. Create a strong login password. Set a password that is at least 12 characters long, mixing uppercase, lowercase, numbers, and symbols. Avoid using personal information or common words. On Windows, go to Settings → Accounts → Sign-in options → Password. On macOS, System Settings → Users & Groups → Change Password.
  3. Enable two-factor authentication (2FA) on your user account. For Windows, use a Microsoft account and enable 2FA via the Microsoft account security page. For macOS, use an Apple ID and enable two-factor authentication in System Settings → Apple ID → Password & Security. For Linux, use a TOTP app with the google-authenticator package.
  4. Set up a screen lock. Configure your computer to lock after a short period of inactivity (e.g., 5 minutes). Windows: Settings → Accounts → Sign-in options → “Require sign-in” → When PC wakes from sleep. macOS: System Settings → Lock Screen → “Require password after” → 5 minutes. Linux: use your desktop environment’s power management settings.
  5. Install a reputable antivirus/anti-malware program. Windows has built-in Microsoft Defender, which is sufficient for most users—ensure it’s enabled in Windows Security. macOS has XProtect built-in, but you can also install a third-party tool like Malwarebytes for extra protection. Linux users can install ClamAV or use a firewall like UFW.
  6. Enable the built-in firewall. Windows: Settings → Network & Internet → Windows Defender Firewall → ensure it’s on for all network types. macOS: System Settings → Network → Firewall → turn on. Linux: enable UFW with sudo ufw enable.
  7. Use a standard (non-administrator) account for daily tasks. Create a separate user account without admin rights and use it for browsing, email, and document work. Use the admin account only for installing software or changing system settings. This limits the damage malware can do.
  8. Encrypt your hard drive. Windows: enable BitLocker in Control Panel → System and Security → BitLocker Drive Encryption. macOS: turn on FileVault in System Settings → Privacy & Security → FileVault. Linux: use LUKS during installation or with cryptsetup.
  9. Back up your data regularly. Use the built-in backup tools (Windows File History, macOS Time Machine) or a cloud service. Back up to an external drive or cloud storage at least weekly. Keep the backup disconnected from the computer when not in use to protect against ransomware.
  10. Review and adjust privacy settings. Disable unnecessary telemetry and ad tracking. Windows: Settings → Privacy & security → General → turn off “Let apps show me personalized ads.” macOS: System Settings → Privacy & Security → disable “Allow Apple to use your Siri and dictation data.” Linux: use privacy-focused browser extensions.
  11. Secure your web browser. Install an ad blocker (e.g., uBlock Origin) and a script blocker (e.g., NoScript) to reduce malvertising and drive-by downloads. Set your browser to block third-party cookies and disable autofill for passwords unless you use a password manager.
  12. Use a password manager. Install a reputable password manager (like Bitwarden or KeePass) to generate and store unique, strong passwords for each site. Never reuse passwords across accounts.
  13. Be cautious with email and downloads. Never open attachments or click links from unknown senders. Verify the sender’s email address. Only download software from official websites or trusted app stores.

Common Mistakes

  • Using the same password for multiple accounts—if one is breached, all are at risk.
  • Ignoring update prompts—delaying updates leaves known vulnerabilities open.
  • Disabling the firewall because it prompts for access—firewalls are essential.
  • Running as administrator all the time—malware inherits your privileges.
  • Not backing up—data loss from ransomware or hardware failure is permanent.
  • Clicking “Allow” on every browser popup—many are social engineering tricks.

Tips

  • Use a VPN when on public Wi-Fi to encrypt your traffic.
  • Regularly audit your installed programs and remove ones you don’t use.
  • Set your browser to “Do Not Track” (though not all sites respect it).
  • Keep your router firmware updated—it’s the gateway to your network.
  • Consider using a separate browser profile for sensitive activities like banking.

Troubleshooting

If you encounter issues during the steps, here’s what to try:

  • Can’t enable BitLocker/FileVault? Ensure your hardware supports encryption (TPM chip on Windows, or a Mac with a T2 chip or Apple Silicon). If not, use VeraCrypt as an alternative.
  • Firewall blocks legitimate software? Add an exception in the firewall settings for the specific program, rather than disabling the firewall entirely.
  • 2FA setup fails? Make sure your system clock is accurate, as TOTP codes rely on time synchronization. Also check that the authenticator app is installed correctly.
  • Updates fail to install? Run the Windows Update Troubleshooter, or on macOS, try restarting and checking disk space. On Linux, run sudo apt --fix-broken install.
  • Antivirus conflicts? If you have multiple antivirus programs, uninstall one—they interfere with each other. Keep only one real-time scanner.
  • Forgot your password? Use the recovery options you set up (security questions, recovery email, or recovery key). If you encrypted the drive and lose the key, data recovery may be impossible—always keep a backup.

Frequently Asked Questions

Is Windows Defender enough for antivirus protection?

Yes, for most home users. Windows Defender provides real-time protection against malware and is regularly updated. Just ensure it’s enabled and keep Windows updated.

How often should I back up my data?

At least weekly, but more often if you work with important files daily. Use the 3-2-1 rule: three copies, on two different media, one offsite.

What is two-factor authentication and why do I need it?

2FA adds a second verification step (like a code from your phone) beyond your password. It prevents unauthorized access even if your password is stolen.

Should I use a VPN all the time?

Not necessarily. A VPN is crucial on public Wi-Fi to protect your data from snooping. At home, it’s optional but can add privacy from your ISP.

How do I know if my computer is already infected?

Signs include sudden slowdowns, pop-ups, browser redirects, or unusual network activity. Run a full antivirus scan and check for unfamiliar programs in your startup list.

Is it safe to use public Wi-Fi without a VPN?

No, it’s risky. Attackers can intercept unencrypted traffic. Always use a VPN or at least ensure websites use HTTPS (look for the padlock icon).

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →