User Agents

Web browsers and everyday web tech, explained

How to Secure Mozilla Firefox: Privacy & Safety Guide

· 6 min read · Settings and Privacy

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to harden Mozilla Firefox against tracking, malware, and data leaks. You'll adjust built-in settings, install a few privacy extensions, and adopt habits that keep your browsing safer. No technical expertise is needed—just a few minutes and a willingness to click through menus.

What You'll Need

  • A computer with Firefox installed (any recent version).
  • Administrator rights to change system-level settings (optional, for some steps).
  • An internet connection to download extensions.

Step-by-Step

  1. Update Firefox. Open the menu (three horizontal lines, top-right), click Help > About Firefox. Firefox checks for updates automatically and installs them. Restart if prompted. Always run the latest version—security patches are included.
  2. Set a strong master password. Go to Settings (or Preferences on macOS) > Privacy & Security > scroll to Logins and Passwords. Check Use a Primary Password. Choose a long, unique passphrase. This encrypts your saved passwords so they can't be read by someone who gains access to your profile.
  3. Enable Enhanced Tracking Protection. In Privacy & Security, under Enhanced Tracking Protection, select Strict. This blocks more trackers, cookies, and fingerprinting scripts. Some sites may break—you can temporarily disable it for a site via the shield icon in the address bar.
  4. Turn on 'Do Not Track' (optional). In the same section, check Send websites a 'Do Not Track' request. This is not a guarantee—many sites ignore it—but it's a signal of your preference.
  5. Block dangerous downloads. In Privacy & Security, under Permissions, ensure Block dangerous and deceptive content is checked. Also check Warn you about unwanted and uncommon software to avoid PUPs (potentially unwanted programs).
  6. Disable password saving for sensitive sites. In Logins and Passwords, uncheck Ask to save logins and passwords for websites if you prefer not to store credentials. Alternatively, use a dedicated password manager (like Bitwarden or KeePass) instead of the built-in one.
  7. Set Firefox to clear data on exit. In Privacy & Security, under Cookies and Site Data, check Delete cookies and site data when Firefox is closed. Also check Clear history when Firefox closes (click Settings next to it to choose what to clear—recommend all).
  8. Review permissions. In Privacy & Security, under Permissions, click Settings next to Location, Camera, Microphone, and Notifications. Set them to Block or Ask—never Allow by default. You can override per site when needed.
  9. Enable HTTPS-Only Mode. In Privacy & Security, scroll to HTTPS-Only Mode and select Enable HTTPS-Only Mode in all windows. This forces encrypted connections where possible. If a site doesn't support HTTPS, Firefox will warn you before loading it.
  10. Install privacy extensions. Go to addons.mozilla.org and install:
    • uBlock Origin – blocks ads, trackers, and malicious scripts.
    • Privacy Badger – learns to block invisible trackers.
    • HTTPS Everywhere (or rely on Firefox's built-in HTTPS-Only) – forces secure connections.
    After installing, click the extension icons to configure them—defaults are usually fine.
  11. Disable WebRTC leaks (optional). Type about:config in the address bar, accept the warning, search for media.peerconnection.enabled. Double-click to set it to false. This prevents websites from seeing your local IP address via WebRTC. Note: this breaks video calls in the browser; re-enable if you need them.
  12. Set a custom user agent (optional). In about:config, search general.useragent.override. If it doesn't exist, click the plus icon to create it. Set a value like a generic string that doesn't reveal your OS. This is advanced—only do it if you understand the trade-offs (some sites may not work).
  13. Use a separate profile for sensitive tasks. In the Firefox menu, go to Profile > About Profiles (or type about:profiles). Create a new profile with strict settings and use it only for banking or private work. This isolates cookies and history.
  14. Regularly review your extensions. Remove any you don't use. Every extension adds attack surface. Check permissions in Add-ons Manager (Ctrl+Shift+A) and revoke any that seem excessive.

Common Mistakes

  • Using 'Strict' tracking protection and then breaking sites. If a login page fails, it's often due to blocked cookies. Temporarily disable for that site via the shield icon, not globally.
  • Installing too many extensions. Each extension can slow down Firefox and increase fingerprinting. Stick to 2–3 reputable ones.
  • Ignoring update prompts. Firefox updates are critical—they patch security holes. Never postpone them for long.
  • Setting a weak primary password. A short one is easy to brute-force. Use a passphrase of 4+ random words.
  • Disabling WebRTC without understanding consequences. You'll lose video call functionality. Only do this if you don't use such services.

Tips

  • Use Firefox Multi-Account Containers to isolate different online identities (e.g., work vs. personal) in separate tabs with separate cookies.
  • Check your Firefox Monitor (in Settings > Privacy & Security) to see if your email has been in a data breach—it's free and built-in.
  • Periodically clear your site data manually: Settings > Privacy & Security > Cookies and Site Data > Manage Data.
  • For maximum privacy, use Private Browsing (Ctrl+Shift+P) for sensitive sessions, but note it doesn't hide your activity from your ISP.
  • Set Firefox to never remember history if you share your computer: in Privacy & Security > History, select Never remember history.

Troubleshooting

  • Websites break after enabling Strict tracking. Click the shield icon in the address bar and toggle off Enhanced Tracking Protection for that site. Alternatively, switch back to Standard.
  • HTTPS-Only Mode shows warnings. Some older sites don't support HTTPS. Click Continue to HTTP Site if you trust it. If you frequently visit such sites, you can add exceptions in the warning dialog.
  • Extensions not working. Update them via Add-ons Manager > gear icon > Check for Updates. If a specific extension causes issues, disable it temporarily to test.
  • Primary password forgotten. There's no recovery—you'll lose access to saved logins. You can remove the password by creating a new profile, but your saved credentials will be lost. Always keep a backup of important passwords elsewhere.
  • WebRTC disabled but video calls fail. Re-enable media.peerconnection.enabled in about:config or use a different browser for calls.

Frequently Asked Questions

Will these settings slow down my browsing?

Some may, especially Strict tracking protection and HTTPS-Only Mode, but the impact is usually minimal. uBlock Origin can actually speed up page loads by blocking ads.

Is Firefox more secure than Chrome?

Firefox offers stronger privacy defaults and less data collection by the vendor, but security depends on how you configure it. Both are secure if updated and used carefully.

Do I need a VPN for privacy?

No—these settings protect against trackers and malicious sites, but a VPN hides your IP from websites. That's a separate choice; not required for basic security.

Can I use these settings on mobile Firefox?

Most steps apply to desktop only. On mobile, you can enable Enhanced Tracking Protection and HTTPS-Only Mode in settings, but extensions are limited.

What is fingerprinting and how does Firefox block it?

Fingerprinting collects details about your browser (screen size, fonts, etc.) to identify you. Strict tracking protection blocks known fingerprinting scripts, but not all—consider adding an extension like CanvasBlocker for extra protection.

Will clearing cookies log me out of every website?

Yes, you'll need to log in again after each session. If that's annoying, you can whitelist sites in the cookie exceptions list.