Hardening Firefox

October 2019 update: Restore Privacy's guide to Firefox may be the best yet. Arch Linux's wiki entry on Firefox privacy and Mozilla's own page on privacy settings are also good starting points.

February 2018 update: There is a handy site called Firefox Profilemaker that poses a few questions and, based on your answers, generates a custom privacy-optimized Firefox profile.

January 2018 update: The Privacy Tools page has a section how to change Firefox's about:config settings for security.

May 2016 update: Because other pages on Firefox privacy have more detail and are updated more often, I am deprecating this post.


Out of the box Firefox has a lot of "features" that leak information about your browsing and provide targets for malicious attacks. Let's talk about fixing this in Firefox 41 (and maybe older and newer versions as well).

about:config

Some of Firefox's unwanted features can be turned off in the options GUI. Here the desirable settings are pretty clear (e.g., it's obvious that you would want to check the box next to "tell sites not to track me" or whatever.) But if you want to see all Firefox's options, you need to use the about:config screen (which you get to by typing about:config in the address bar). Some of the about:config options mentioned below might already have been toggled to a safe default by your choices in the options GUI. Nonetheless, my advice is to make sure the following settings are such:

Note: the about:config screen shows in bold any settings that have been changed from the default.

Extensions

I recommend a few extensions. Some are for privacy and security, others are just to make the browsing experience a bit better.

Other neat things

Here are some other interesting changes you can make.

Further reading

I drew on a few sites for this post.