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

Updated Optional Hardening (markdown)

yokoffing
2023-10-09 18:37:17 -04:00
parent d50ab008e7
commit 8f668b71a1
+6 -4
@@ -99,10 +99,10 @@ user_pref("security.cert_pinning.enforcement_level", 2);
*** ***
### Sanitize on close ### Sanitize on close
#### Option 1: Clear browsing data on shutdown, except browser history #### Option 1: Clear cookies and cache on shutdown
* `☰` *→ 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: clear browsing data on shutdown (except browser history) // PREF: delete cookies and site data on shutdown
user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("privacy.sanitize.sanitizeOnShutdown", true);
user_pref("privacy.clearOnShutdown.cache", true); user_pref("privacy.clearOnShutdown.cache", true);
user_pref("privacy.clearOnShutdown.cookies", true); user_pref("privacy.clearOnShutdown.cookies", true);
@@ -111,8 +111,10 @@ user_pref("browser.sessionstore.privacy_level", 2);
``` ```
#### Option 2: Clear all browsing data on shutdown #### Option 2: Clear all browsing data on shutdown
* `☰` *→ Settings → Privacy & Security → History → Clear history when Firefox closes*
```javascript ```javascript
// PREF: clear 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.history", true); user_pref("privacy.clearOnShutdown.history", true);
user_pref("privacy.clearOnShutdown.formdata", true); user_pref("privacy.clearOnShutdown.formdata", true);
@@ -124,7 +126,7 @@ user_pref("privacy.clearOnShutdown.siteSettings", false);
user_pref("browser.sessionstore.privacy_level", 2); user_pref("browser.sessionstore.privacy_level", 2);
``` ```
:warning: If you have session restore enable (_Settings → General → Startup → Open previous windows and tabs_), then you will need to use **Option 1** for session restore to work. :warning: If you have session restore enable (`☰` _Settings → General → Startup → Open previous windows and tabs_), then you will need to use **Option 1** for session restore to work.
#### Allow exceptions #### Allow exceptions
You can allow exceptions if you want to stay logged in to some sites: You can allow exceptions if you want to stay logged in to some sites: