Firefox Hardening
Maximum Privacy and Security Settings via a Python script
Important: Install Python3 first if needed with: sudo apt install python3 -y
⚠️ ENSURE FIREFOX IS CLOSED before running this script!
Download Firefox Max Privacy Script
Step 1: Download the script
curl -s https://graphenegoat.com/wp-content/uploads/firefox_max_privacy.txt -o firefox_privacy.py
ℹ️ Select the command above (triple-click works best), then copy with Ctrl+C
Step 2: Run the script using this command:
python3 firefox_privacy.py
ℹ️ Select the command above (triple-click works best), then copy with Ctrl+C
This Firefox script is written in Python, ensure you have Python3 on your system. To check if you have it already installed, run this command in your terminal first:
python3 --version
If you don’t see a version number, install Python3 before downloading and running the script. Once you’ve confirmed that you have Python3 on your system, copy and paste both commands listed above into your terminal to download and run the script. (Firefox MUST be closed before you do this!) This script will automatically apply the following settings to your Firefox browser, making it as hardened as possible. This may break some sites, but provides the maximum privacy and security possible. To revert to stock Firefox, you can either uninstall, then reinstall Firefox, or, search for the ‘user.js’ file in the following directory, enter this into your terminal:
cd ~/.mozilla/firefox/
Then look for the folder with your unique user ID and change directory into that folder. Your ‘user.js’ file will be located there, simply delete that file and Firefox will revert back to previous settings, relaunch Firefox to ensure changes took effect.


