1
0
mirror of https://github.com/yokoffing/Betterfox.git synced 2026-06-12 15:40:48 +05:30

Updated Optional Hardening (markdown)

yokoffing
2025-03-05 15:32:02 -05:00
parent 21fcc56d12
commit a987f72afb
+10 -19
@@ -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 ### Downloads
#### Always ask where to save files #### Always ask where to save files
@@ -205,9 +194,10 @@ These settings automatically clear your browsing data, such as browser history,
```javascript ```javascript
// PREF: delete all browsing data on shutdown // PREF: delete all browsing data on shutdown
user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("privacy.sanitize.sanitizeOnShutdown", true);
user_pref("privacy.clearOnShutdown_v2.cache", true); // DEFAULT user_pref("privacy.clearOnShutdown_v2.cache", true);
user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true); // DEFAULT user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true);
user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", true); // DEFAULT 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 // PREF: after crashes or restarts, do not save extra session data
// such as form content, scrollbar positions, and POST 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 #### 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* * `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Delete cookies and site data when Firefox is closed*
```javascript ```javascript
// PREF: delete cookies, cache, and site data on shutdown // PREF: delete cookies, cache, and site data on shutdown
user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("privacy.sanitize.sanitizeOnShutdown", true);
user_pref("privacy.clearOnShutdown_v2.cache", true); // DEFAULT user_pref("privacy.clearOnShutdown_v2.browsingHistoryAndDownloads", false); // Browsing & download history
user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true); // DEFAULT user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true); // Cookies and site data
user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", false); user_pref("privacy.clearOnShutdown_v2.cache", true); // Temporary cached files and pages
user_pref("privacy.clearOnShutdown_v2.formdata", true); // Saved form info
``` ```
#### Allow exceptions #### 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* * `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Manage Exceptions*
*** ***