From a987f72afbaede5b99dc881c6fefa85618bb8711 Mon Sep 17 00:00:00 2001 From: yokoffing <11689349+yokoffing@users.noreply.github.com> Date: Wed, 5 Mar 2025 15:32:02 -0500 Subject: [PATCH] Updated Optional Hardening (markdown) --- Optional-Hardening.md | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/Optional-Hardening.md b/Optional-Hardening.md index 43e1250..d135919 100644 --- a/Optional-Hardening.md +++ b/Optional-Hardening.md @@ -127,17 +127,6 @@ user_pref("network.trr.mode", 3); *** -### Disk Cache -Keep in mind that disabling the disk cache is only available on Firefox. It is not an option in any other browser. - -Disable the disk cache if you believe it helps your privacy or performance. -```javascript -// PREF: disable disk cache -user_pref("browser.cache.disk.enable", false); -``` - -*** - ### Downloads #### Always ask where to save files @@ -205,9 +194,10 @@ These settings automatically clear your browsing data, such as browser history, ```javascript // PREF: delete all browsing data on shutdown user_pref("privacy.sanitize.sanitizeOnShutdown", true); -user_pref("privacy.clearOnShutdown_v2.cache", true); // DEFAULT -user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true); // DEFAULT -user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", true); // DEFAULT +user_pref("privacy.clearOnShutdown_v2.cache", true); +user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true); +user_pref("privacy.clearOnShutdown_v2.browsingHistoryAndDownloads", true); +user_pref("privacy.clearOnShutdown_v2.formdata", true); // PREF: after crashes or restarts, do not save extra session data // such as form content, scrollbar positions, and POST data @@ -215,18 +205,19 @@ user_pref("browser.sessionstore.privacy_level", 2); ``` #### Option 2: Clear only cookies and cache on shutdown -This option allows you to retain browser history and restore [previously opened tabs](https://support.mozilla.org/en-US/kb/how-do-i-restore-my-tabs-last-time#w_restore-the-previous-session-every-time-you-open-firefox) (optional). +This option allows you to *retain site history* and restore [previously opened tabs](https://support.mozilla.org/en-US/kb/how-do-i-restore-my-tabs-last-time#w_restore-the-previous-session-every-time-you-open-firefox) (optional). * `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Delete cookies and site data when Firefox is closed* ```javascript // PREF: delete cookies, cache, and site data on shutdown user_pref("privacy.sanitize.sanitizeOnShutdown", true); -user_pref("privacy.clearOnShutdown_v2.cache", true); // DEFAULT -user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true); // DEFAULT -user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", false); +user_pref("privacy.clearOnShutdown_v2.browsingHistoryAndDownloads", false); // Browsing & download history +user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true); // Cookies and site data +user_pref("privacy.clearOnShutdown_v2.cache", true); // Temporary cached files and pages +user_pref("privacy.clearOnShutdown_v2.formdata", true); // Saved form info ``` #### Allow exceptions -For either option, you can create exceptions to stay logged in to some sites. +For Option 2, you can create exceptions to stay logged in to some sites between sessions. * `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Manage Exceptions* ***