This page covers a guide to configure the Mozilla Firefox web browser and make it more privacy-focused.
A recommended basic configuration via the about:preferences page.
The design of this page is a sort of mimic of what the settings in Firefox look like, what you need to edit is highlighted.
INFO
If you want the level of privacy described in this guide, "Out Of The Box", without the hassle of configuration, consider using Librewolf or Mullvad Browser. If you need even more anonymity, use Tor Browser instead.
DISCLAIMER
The proposed configuration will do:
+ May break some websites due the Enhanced Tracking Protection.
+ Delete the browsing history, cookies and site data when Firefox is closed.
Due to data being deleted each time Firefox is closed, you will need to log in to your accounts every session!
This is why we recommend the use of a password manager like Bitwarden or KeePassXC.
Also, backup your profile and start a new profile is highly recommended.
See the BACKUP YOUR PROFILE section below.
CONTENT
SUMMARY TLDR
This part summarizes the recommended options that are important to define for more privacy. You find these options here: ☰ → Settings.
☑ Enable |
☐ Disable |
☒ Personal Choice |
More Info |
Warning
SEARCH
☒ DEFAULT SEARCH ENGINE
Prefer a privacy focused search engine like DuckDuckGo as default search engine since it is already installed in Firefox.
☐ SEARCH SUGGESTIONS
☐ Disable ALL search suggestions
PRIVACY
☑ ENHANCED TRACKING PROTECTION
☑ Set ETP to Strict
☑ COOKIES AND SITE DATA
☑ Delete cookies and site data when Firefox is closed
☐ HISTORY
Firefox will [Use custom settings for history] ☒ Always use private browsing mode
☐ Remember browsing and download history
☐ Remember search and form history
☑ Clear history when Firefox closes
☒ PERMISSIONS
☒ Block Location
☒ Block Camera
☒ Block Microphone
☒ Block Notifications
☒ Block Autoplay [Audio and Video]
☒ Block Virtual Reality
☑ Block pop-up windows ☑ Warn you when websites try to install add-ons
☐ FIREFOX DATA COLLECTION AND USE (TELEMETRY)
☐ Allow Firefox to send technical and interaction data to Mozilla
☐ Allow Firefox to install and run studies
☐ Allow Firefox to send backlogged crash reports on your behalf
WEBSITE ADVERTISING PREFERENCES
☐ Allow webites to perform privacy-preserving ad measurement
SECURITY
☐ DECEPTIVE CONTENT AND DANGEROUS SOFTWARE PROTECTION (SAFE BROWSING)
☐ Block dangerous and deceptive content
☐ Block dangerous downloads
☐ Warn you about unwanted and uncommon software
☑ HTTPS-ONLY MODE
☑ Enable HTTPS-Only Mode in all windows
☒ DNS OVER HTTPS
Prefer a reliable and privacy focused DNS like AdGuard DNS, Mullvad DNS or Quad9.
☒ https://dns.adguard.com/dns-query
☒ https://extended.dns.mullvad.net/dns-query
☒ https://dns.quad9.net/dns-query
Open the menu by clicking the ☰ burger icon at the top right, then click on Settings.
Or you can type about:preferences in the adress bar.
GENERAL
Digital Right Management (DRM) Content
Uncheck Play DRM-controlled content, under Digital Rights Management (DRM) Content. DRM is a limitation to user freedom. Read about it.
Play DRM-contrrolled content
HOME
New Windows and Tabs
Prefer a clean Blank Page on Homepage and new windows and New tabs. Or use custom URLs. Or even better, if you know HTML, make your own home page!
Firefox Home Content
We suggest to uncheck everything in Firefox Home Content, Web Search is useless if you search via the adress bar (CTRL + L).
Web Search
Shortcuts
Sites you save or visit Sponsored shortcuts
Recent activity
A selection of recent sites and content Visited Pages Bookmarks Most Recent Download Pages Saved to Pocket
Snippets
Tips and news from Mozilla and Firefox
SEARCH
Prefer to switch to a more privacy-friendly search engine like DuckDuckGo, Startpage or Brave Search rather than Google as the default search engine. You can use Bangs shortcuts if needed.
Default Search Engine
TIP
It is possible to add a search engin from a website with right click on the adress bar of the website then Add "WebSite", it will appear in the Default Search Engine selection.
Brave SearchA privacy-preserving search engine based in the US. Search results are based on its own index.DuckDuckGoA privacy-preserving search engine based in the US. Search results are mainly based on Bing.StartpageA privacy-preserving search engine based in the Netherlands. Search results are mainly based on Google.
Search Suggestions
We do not need suggestions so we uncheck all.
Provide search suggestions Show suggestions in adress bar results Show sugestions ahead of browsing history in adress bar results Show suggestions in Private Windows
Standard
Balanced for protection and performance. Pages will load normally.
Strict
Stronger protection, but may cause some sites or content to break.
Firefox blocks the following:
· Social media trackers
· Cross-site cookies in all windows
· Tracking content in all windows
· Cryptominers
· Known and suspected fingerprinters ⚠ Heads up!
This setting may cause some websites to not display content or work correctly.
If a site seems broken, you may want to turn off tracking protection for that site to load all content.
Custom
Choose which trackers and scripts to block.
Website Privacy Preferences
No need to worry about the Do Not Track signal, Firefox sends it with ETP set to strict, unfortunately, it's often stated that most trackers don't comply with it and is used as a fingerprinting signal.
Tell websites not to sell or share my data
Send websites a “Do Not Track” request
Cookies and Site Data
We set Firefox to delete cookies, site data and cache when it is closed.
Check Delete cookies and site data when Firefox is closed.
Click [Clear Data...].
Delete cookies and site data when Firefox is closed
INFO
You can clear cookies and other site data stored on your computer. Settings > Privacy and Security > Cookies and Site Data > Manage Data
If you check the option Delete cookies and site data when Firefox is closed (Privacy & Security > Cookies and Site Data), you dont need to worry about cookies and site data, because the storage is cleared everytime Firefox is closed.
Logins and Passwords
We recommend to disable the Firefox password manager and use a better and more secure solution like Bitwarden or KeePassXC.
Ask to save logins and passwords for websites Autofill logins and passwords Suggest and generate strong passwords Show alerts about passwords for breached websites Use a Primary Password
Formerly known as Master Password Allow Windows single sign-on for Microsoft, work, and school accounts
Manage accounts in your device settings
History
We set Firefox to clear history when it closes.
Choose [Use custom settings for history] in the drop down menu, then click the [Settings] button to check all options in Settings for Clearing History.
Click [Clear History].
Always use private browsing mode Remember browsing and download history Remember search and form history Clear history when Firefox closes
Settings for Clearing History
When closed, Firefox should automatically clear all
History
Browsing & download history Cookies Active logins Cache Form & search history
Data
Site settings Offline website data
Address Bar
We recommend to uncheck all except the ones you need.
A useful choice would be Bookmarks.
When using the adress bar, suggest
Browsing history Bookmarks Open tabs Shortcuts Search engines
Permissions
We suggest to block ALL permissions access and new requests to get access to our device.
(Location, Camera, Microphone, Notifications, Autoplay Audio & Video, Virtual Reality).
Check "Block pop-up windows" and "Warn you when website try to install add-ons".
Click on the permission [Settings] button, at right.
LocationCameraMicrophoneSpeaker SelectionNotificationsAutoplayVirtual Reality Blocks pop-up windows Warn you when websites try to install add-ons
On each of the settings above, click on the [Settings] button, in the new window, check "Block new requests asking to..." at the bottom of the page, then [Save Changes]. Do this for all the items!
Settings for All Permissions
Block new requests asking to...
Open the Autoplay permissions settings and set [Block Audio and Video] as default for all websites, then click on [Save Changes].
Settings for Autoplay
Firefox Data Collection and Use
Uncheck all "Firefox Data Collection and Use" to disable Firefox telemetry.
Allow Firefox to send technical and interaction data to Mozilla Allow Firefox to make personalized extension recommendations Allow Firefox to install and run studies Allow Firefox to send backlogged crash reports on your behalf
Allow webites to perform privacy-preserving ad measurement
SECURITY
Deceptive Content and Dangerous Software Protection
We prefer disable the "Deceptive Content and Dangerous Software Protection", because the guide is privacy focused, but it is your choice, privacy or security...
Block dangerous and deceptive content Block dangerous downloads Warn you about unwanted and uncommon software
This setting makes the extensions like "HTTPS Everywhere" redundant.
Enable HTTPS-Only Mode in all windows Enable HTTPS-Only Mode in private windoes only Don't enable HTTPS-Only Mode
DNS over HTTPS
We recommend that you set the Domain Name System (DNS) over HTTPS to Off, and use the one you set on your system or router level. DoH should be at operating system level or router level, not browser based!
Enable secure DNS using:
Default Protection
Firefox decides when to use secure DNS to protect your privacy.
Increased Protection
You control when to use secure DNS and choose your provider.
Max Protection
Firefox will always use secure DNS. You’ll see a security risk warning before we use your system DNS.
PROVIDERURLFEATURESAdGuardhttps://dns.adguard.com/dns-queryad blocking, tracking protection.LibreDNShttps://doh.libredns.gr/noadsno logging, ad blocking, tracking protection.Mullvadhttps://all.dns.mullvad.net/dns-queryno logging, block ads, trackers, malwares, adult, gambling, social media.Quad9https://dns.quad9.net/dns-querymalware, phishing, spyware, and botnets protection.
SYNC
Firefox Accounts password is the basis of the encryption key, if you have no devices left with your logins and you need to reset your Firefox Accounts password, then all your synced data is lost, logins included.
Use advanced settings to customize Firefox deeper or enable/disable hidden features. For those who know what they are doing!
To access the advanced preferences in Firefox, type about:config into the adress bar.
Then click [Accept the Risk and Continue].
Type the preference in the search field to modify its value, on the right side of the list.
Disable Security.fileuri.strict origin policy
When local HTML files (e.g., those located on your hard drive) are loaded into the browser, the scripts and links within have restrictions on what they can see and do. Those restrictions are determined by the same-origin policy for local files, which this preference controls. More info.
True = Local documents have access to other local documents in the same directory and in subdirectories, but not directory listings. (Default)
False = Local documents have access to all other local documents, including directory listings.
If you do development with local files and need to be able to retrieve other local files, you may need to set this preference to false. Otherwise, leaving it set to true offers the most security.
WebRTC is a technology that allows users to communicate with video and audio directly in the browser without any plugins installed. An unfortunate side effect is that your real IP is at risk of being exposed, stripping you of your anonymity. Source
Prefetching refers to the practice of speculatively fetching documents or subresources in the background for pages that the user is likely to navigate to in the near future.
The extension uBlock Origin disables pre-fetching by default (dashboard/settings/privacy). More info.
Attribution is how advertisers learn whether their advertising works. Attribution measures how many people saw an ad on a website and then later visited the advertiser’s website to do something the advertiser cared about. Read more.
Firefox 89 and later, come with a built-in calculator feature in the address bar. You can type a mathematics problem in Firefox address bar and you’ll see an instant result in URL bar suggestions drop-down list. Example: 1+1.
browser.urlbar.suggest.calculator = true
Enable Built-In Unit Converter
It currently supports angle, force, length, mass, temperature and timezone but is limited to en-US. Examples: 1lb in g, 100f in c, 9:00am gmt in est, now in here, 1m to ft.
To backup your profile you need to access the profiles manager page by typing: about:profiles into the adress bar.
Click on Open Folder on the Root Directory. There are some important files you want to keep.
FILEDESCRIPTIONcookies.sqliteStore cookies between sessions.key4.dbContains a key used to encrypt and decrypt saved passwords.logins.jsonStores the encrypted names and passwords.places.sqliteStores the annotations, bookmarks, favorite icons, input history, keywords, and browsing history.
EXTENSIONS
By default, extensions are not enabled in Private Browsing mode and when you set Firefox to "Never remember history"!
The add-ons listed below are what we believe to be the best in their class. ⭐ are highly recommended.
For more add-ons, you can check the official Addons Mozilla Org, but remember, the less extensions you use, the better!
AdGuard AdBlocker
Unmatched adblock extension against advertising and pop-ups. Blocks ads on Facebook, Youtube and all other websites.
Translate web pages, highlighted text, Netflix subtitles, private messages, speak text, and save important translations to your personal dictionary to learn words in 130 languages.
SingleFile is an add-on for Firefox Desktop and Mobile that helps you to save an entire webpage including images, styling, frames, fonts etc. as a single HTML file.
SingleFileZ is an add-on for Firefox Desktop and Mobile that helps you to save a complete page (with CSS, images, fonts, frames, etc.) as a single HTML file. This HTML file is also a valid ZIP file containing all the page resources.
Some web pages use intermediary pages before redirecting to a final page. This add-on tries to extract the final url from the intermediary url and goes there straight away if successful.
The Mullvad Browser is a privacy-focused web browser developed in a collaboration between Mullvad VPN and the Tor Project. It’s designed to minimize tracking and fingerprinting. You could say it’s a Tor Browser to use without the Tor Network. Instead, you can use it with a trustworthy VPN.
/* The user.js file is a configuration file that allows you to customize and harden your Firefox browser settings. It’s a JavaScript file that stores user preferences and is loaded each time Firefox starts. The user.js file must be placed in your profile directory. Type about:profiles in your adress bar and click Open Directory under Root Directory to located it. */
// Add the line below to your user.js file to replace the default DOH provider list with more reliable ones. Adguard, DNS0, LibreDNS, Mullvad, Quad9. More info on these DNS providers / resolvers.