Doublelord Information Technology

Get Started
How to Harden Firefox for Better Security on Linux

Hardening Firefox on Linux is mostly about reducing attack surface, strengthening privacy, and keeping usability at a level you're comfortable with. Here are the most effective changes.

  1. Keep Firefox Updated

The most important security measure is running the latest version, since updates frequently patch security vulnerabilities.

If your Linux distribution ships an older Firefox version, consider using Mozilla's official release instead.

  1. Enable HTTPS-Only Mode

Go to:

Settings → Privacy & Security → HTTPS-Only Mode

Turn on Enable HTTPS-Only Mode in all windows.

This forces encrypted connections whenever possible.

  1. Enable DNS over HTTPS (DoH)

Navigate to:

Settings → Privacy & Security → DNS over HTTPS

Choose a trusted provider or your own secure DNS service.

  1. Turn On Enhanced Tracking Protection

Set Enhanced Tracking Protection to:

Strict for maximum privacy

Standard if Strict breaks some websites

Strict blocks many trackers, cryptominers, and fingerprinting scripts.

  1. Disable Telemetry (Optional)

Open about:config and set:

toolkit.telemetry.enabled = false toolkit.telemetry.unified = false datareporting.healthreport.uploadEnabled = false

This reduces data sent to Mozilla.

  1. Enable Fission

Modern Firefox enables site isolation (Fission) by default on most systems.

Verify:

about:support

Search for Fission and ensure it is enabled.

  1. Enable HTTPS Certificate Revocation

In about:config:

security.OCSP.enabled = 1

This helps Firefox check whether certificates have been revoked.

  1. Disable WebRTC if You Don't Need It

If you never use browser-based video calls:

media.peerconnection.enabled = false

This can reduce IP address leakage.

  1. Resist Fingerprinting

Enable:

privacy.resistFingerprinting = true

Be aware this may cause some websites to behave differently.

  1. Enable First-Party Isolation (Advanced)

privacy.firstparty.isolate = true

This provides stronger separation between websites but may break some sign-in flows.

  1. Use Secure Extensions Sparingly

Only install extensions you truly need. Every extension increases attack surface.

Good choices include:

A reputable password manager

A content blocker such as uBlock Origin

Multi-Account Containers if you separate work and personal browsing

Avoid installing many extensions from unknown developers.

  1. Review Site Permissions

Go to:

Settings → Privacy & Security → Permissions

Disable or tightly control:

Camera

Microphone

Location

Notifications

Autoplay

Remove permissions you no longer use.

  1. Disable Pocket (Optional)

If unused:

extensions.pocket.enabled = false

  1. Enable Secure DNS and Safe Browsing

Keep these enabled:

Fraud protection

Malware protection

Download protection

These features help detect malicious websites and files.

  1. Clear Data on Exit

Under:

Privacy & Security → Cookies and Site Data

Enable:

Delete cookies and site data when Firefox is closed

Or use Temporary Containers if you want automatic isolation between browsing sessions.

  1. Use Firefox Containers

Containers isolate cookies between different contexts.

For example:

Work

Banking

Social media

Shopping

This limits cross-site tracking and reduces session leakage.

  1. Sandbox Firefox Further on Linux

Run Firefox using an additional sandbox such as:

Flatpak (with carefully reviewed permissions)

Firejail

Bubblewrap

This adds another layer of isolation beyond Firefox's own sandbox.

  1. Harden about:config Carefully

Useful settings include:

privacy.trackingprotection.enabled = true privacy.resistFingerprinting = true network.cookie.cookieBehavior = 5 media.peerconnection.enabled = false

Avoid copying large "hardening lists" from the internet without understanding them, as they often break websites or become outdated.

For Maximum Security

If security is your top priority:

Keep Firefox updated.

Use Strict Enhanced Tracking Protection.

Enable HTTPS-Only Mode.

Install only trusted, minimal extensions.

Use a password manager and enable multi-factor authentication on important accounts.

Run Firefox inside an additional sandbox.

Keep your Linux system fully updated.

Use a standard (non-root) user account for daily work.

These measures provide strong protection while maintaining good compatibility for most users.

Leave a Reply

Your email address will not be published. Required fields are marked *