mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-12 15:40:48 +05:30
Secure August 2021 (#27)
* Secure August 2021
* Mark defaults
Mark default prefs in SecureFox; remove defaults from user.js
* Update SecureFox.js
* correct appCache default status
* reorder ETP
* Network predictor active
* add note to PRELOADING
* Comment out prefs dealing with URL backends
user_pref("app.normandy.api_url", "");
user_pref("breakpad.reportURL", "");
user_pref("toolkit.coverage.endpoint.base", "");
* edit description network.http.speculative-parallel-limit
* added dash to https-first
This commit is contained in:
+83
-70
@@ -11,7 +11,7 @@
|
|||||||
* SecureFox *
|
* SecureFox *
|
||||||
* "Natura non constristatur." *
|
* "Natura non constristatur." *
|
||||||
* priority: provide sensible security and privacy *
|
* priority: provide sensible security and privacy *
|
||||||
* version: July 2021 *
|
* version: August 2021 *
|
||||||
* url: https://github.com/yokoffing/Better-Fox *
|
* url: https://github.com/yokoffing/Better-Fox *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@@ -19,6 +19,28 @@
|
|||||||
* SECTION: TRACKING PROTECTION *
|
* SECTION: TRACKING PROTECTION *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
// PREF: Enhanced Tracking Protection (ETP)
|
||||||
|
// Tracking Content blocking will strip cookies and block all resource requests to domains listed in Disconnect.me.
|
||||||
|
// Firefox deletes all stored site data (incl. cookies, browser storage) if the site is a known tracker and hasn’t
|
||||||
|
// been interacted with in the last 30 days.
|
||||||
|
// [NOTE] FF86: "Strict" tracking protection enables dFPI.
|
||||||
|
// [1] https://blog.mozilla.org/firefox/control-trackers-with-firefox/
|
||||||
|
// [2] https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop
|
||||||
|
// [3] https://www.reddit.com/r/firefox/comments/l7xetb/network_priority_for_firefoxs_enhanced_tracking/gle2mqn/?web2x&context=3
|
||||||
|
user_pref("browser.contentblocking.category", "strict");
|
||||||
|
user_pref("privacy.trackingprotection.enabled", true);
|
||||||
|
user_pref("privacy.trackingprotection.pbmode.enabled", true); // default
|
||||||
|
user_pref("privacy.trackingprotection.cryptomining.enabled", true); // default
|
||||||
|
user_pref("privacy.trackingprotection.fingerprinting.enabled", true); // default
|
||||||
|
user_pref("privacy.trackingprotection.socialtracking.enabled", true);
|
||||||
|
user_pref("privacy.socialtracking.block_cookies.enabled", true); // default
|
||||||
|
// user_pref("browser.contentblocking.customBlockList.preferences.ui.enabled", true);
|
||||||
|
|
||||||
|
// PREF: allow embedded tweets and Instagram posts
|
||||||
|
// [1] https://www.reddit.com/r/firefox/comments/l79nxy/firefox_dev_is_ignoring_social_tracking_preference/gl84ukk
|
||||||
|
user_pref("urlclassifier.trackingSkipURLs", "*.twitter.com, *.twimg.com"); // hidden
|
||||||
|
user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com"); // hidden
|
||||||
|
|
||||||
// PREF: Network Partitioning
|
// PREF: Network Partitioning
|
||||||
// Network Partitioning will allow Firefox to save resources like the cache, favicons, CSS files, images, and more
|
// Network Partitioning will allow Firefox to save resources like the cache, favicons, CSS files, images, and more
|
||||||
// on a per-website basis rather than together in the same pool.
|
// on a per-website basis rather than together in the same pool.
|
||||||
@@ -39,9 +61,9 @@ user_pref("privacy.partition.network_state", true); // default
|
|||||||
// in certain circumstances for usability.
|
// in certain circumstances for usability.
|
||||||
// [1] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Privacy/State_Partitioning#dynamic_state_partitioning
|
// [1] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Privacy/State_Partitioning#dynamic_state_partitioning
|
||||||
// [2] https://blog.mozilla.org/security/2021/02/23/total-cookie-protection/
|
// [2] https://blog.mozilla.org/security/2021/02/23/total-cookie-protection/
|
||||||
user_pref("network.cookie.cookieBehavior", 5);
|
user_pref("network.cookie.cookieBehavior", 5); // changes to 5 when Enhanced Tracking Protection is set to "Strict"
|
||||||
user_pref("browser.contentblocking.state-partitioning.mvp.ui.enabled", true); // default
|
user_pref("browser.contentblocking.state-partitioning.mvp.ui.enabled", true); // default
|
||||||
// user_pref("browser.contentblocking.reject-and-isolate-cookies.preferences.ui.enabled", true); // hidden? Nightly-only?
|
user_pref("browser.contentblocking.reject-and-isolate-cookies.preferences.ui.enabled", true); // default
|
||||||
|
|
||||||
// PREF: Redirect Tracking Prevention
|
// PREF: Redirect Tracking Prevention
|
||||||
// All storage is cleared (more or less) daily from origins that are known trackers and that
|
// All storage is cleared (more or less) daily from origins that are known trackers and that
|
||||||
@@ -51,29 +73,7 @@ user_pref("browser.contentblocking.state-partitioning.mvp.ui.enabled", true); //
|
|||||||
// [3] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Privacy/Redirect_tracking_protection
|
// [3] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Privacy/Redirect_tracking_protection
|
||||||
// [4] https://www.ghacks.net/2020/03/04/firefox-75-will-purge-site-data-if-associated-with-tracking-cookies/
|
// [4] https://www.ghacks.net/2020/03/04/firefox-75-will-purge-site-data-if-associated-with-tracking-cookies/
|
||||||
// [5] https://github.com/arkenfox/user.js/issues/1089
|
// [5] https://github.com/arkenfox/user.js/issues/1089
|
||||||
user_pref("privacy.purge_trackers.enabled", true);
|
user_pref("privacy.purge_trackers.enabled", true); // default
|
||||||
|
|
||||||
// PREF: Enhanced Tracking Protection (ETP)
|
|
||||||
// Tracking Content blocking will strip cookies and block all resource requests to domains listed in Disconnect.me.
|
|
||||||
// Firefox deletes all stored site data (incl. cookies, browser storage) if the site is a known tracker and hasn’t
|
|
||||||
// been interacted with in the last 30 days.
|
|
||||||
// [NOTE] FF86: "Strict" tracking protection enables dFPI.
|
|
||||||
// [1] https://blog.mozilla.org/firefox/control-trackers-with-firefox/
|
|
||||||
// [2] https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop
|
|
||||||
// [3] https://www.reddit.com/r/firefox/comments/l7xetb/network_priority_for_firefoxs_enhanced_tracking/gle2mqn/?web2x&context=3
|
|
||||||
user_pref("browser.contentblocking.category", "custom");
|
|
||||||
user_pref("privacy.trackingprotection.enabled", true);
|
|
||||||
user_pref("privacy.trackingprotection.pbmode.enabled", true); // default
|
|
||||||
user_pref("privacy.trackingprotection.cryptomining.enabled", true); // default
|
|
||||||
user_pref("privacy.trackingprotection.fingerprinting.enabled", true); // default
|
|
||||||
user_pref("privacy.trackingprotection.socialtracking.enabled", true); // default
|
|
||||||
user_pref("privacy.socialtracking.block_cookies.enabled", true);
|
|
||||||
user_pref("browser.contentblocking.customBlockList.preferences.ui.enabled", true);
|
|
||||||
|
|
||||||
// PREF: allow embedded tweets and Instagram posts
|
|
||||||
// [1] https://www.reddit.com/r/firefox/comments/l79nxy/firefox_dev_is_ignoring_social_tracking_preference/gl84ukk
|
|
||||||
user_pref("urlclassifier.trackingSkipURLs", "*.twitter.com, *.twimg.com"); // hidden
|
|
||||||
user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com"); // hidden
|
|
||||||
|
|
||||||
// PREF: Hyperlink Auditing (click tracking).
|
// PREF: Hyperlink Auditing (click tracking).
|
||||||
user_pref("browser.send_pings", false); // default
|
user_pref("browser.send_pings", false); // default
|
||||||
@@ -110,7 +110,7 @@ user_pref("dom.storage.next_gen", true);
|
|||||||
// PREF: disable offline cache (appCache)
|
// PREF: disable offline cache (appCache)
|
||||||
// [WARNING] The API is easily fingerprinted, do not disable!
|
// [WARNING] The API is easily fingerprinted, do not disable!
|
||||||
// [1] https://github.com/arkenfox/user.js/issues/1055
|
// [1] https://github.com/arkenfox/user.js/issues/1055
|
||||||
// user_pref("browser.cache.offline.enable", false); // default
|
// user_pref("browser.cache.offline.enable", false);
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* SECTION: CLEARING DATA DEFAULTS *
|
* SECTION: CLEARING DATA DEFAULTS *
|
||||||
@@ -155,6 +155,9 @@ user_pref("privacy.history.custom", true);
|
|||||||
* SECTION: PRELOADING *
|
* SECTION: PRELOADING *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
// You can customize this section to your comfort-level.
|
||||||
|
// [WARNING] Some PREFs affect content-blocking.
|
||||||
|
|
||||||
// PREF: DNS prefetching
|
// PREF: DNS prefetching
|
||||||
// [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control
|
// [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control
|
||||||
user_pref("network.dns.disablePrefetch", true);
|
user_pref("network.dns.disablePrefetch", true);
|
||||||
@@ -175,25 +178,35 @@ user_pref("browser.urlbar.speculativeConnect.enabled", false);
|
|||||||
user_pref("network.prefetch-next", false);
|
user_pref("network.prefetch-next", false);
|
||||||
|
|
||||||
// PREF: Link-mouseover opening connection to linked server.
|
// PREF: Link-mouseover opening connection to linked server.
|
||||||
// TCP and SSL handshakes are set up in advance but page contents are not downloaded until a click on the link is registered.
|
// To improve the loading speed, Firefox will open predictive connections to sites when the user hovers their mouse over
|
||||||
|
// thumbnails on the New Tab Page or the user starts to search in the Search Bar, or in the search field on the Home or the
|
||||||
|
// New Tab Page. In case the user follows through with the action, the page can begin loading faster since some of the work
|
||||||
|
// was already started in advance.
|
||||||
|
// [NOTE] TCP and SSL handshakes are set up in advance but page contents are not downloaded until a click on the link is registered.
|
||||||
// [1] https://news.slashdot.org/story/15/08/14/2321202/how-to-quash-firefoxs-silent-requests
|
// [1] https://news.slashdot.org/story/15/08/14/2321202/how-to-quash-firefoxs-silent-requests
|
||||||
// [2] https://www.ghacks.net/2015/08/16/block-firefox-from-connecting-to-sites-when-you-hover-over-links
|
// [2] https://www.ghacks.net/2015/08/16/block-firefox-from-connecting-to-sites-when-you-hover-over-links
|
||||||
user_pref("network.http.speculative-parallel-limit", 0;
|
user_pref("network.http.speculative-parallel-limit", 0);
|
||||||
|
|
||||||
// PREF: Enable <link rel=preload>.
|
// PREF: Enable <link rel=preload>.
|
||||||
// Developer hints to the browser to preload some resources with a higher priority and in advance.
|
// Developer hints to the browser to preload some resources with a higher priority and in advance.
|
||||||
// Helps the web page to render and get into the stable and interactive state faster.
|
// Helps the web page to render and get into the stable and interactive state faster.
|
||||||
|
// [WARNING] Interferes with content blocking, so we disable this.
|
||||||
// [1] https://www.janbambas.cz/firefox-enables-link-rel-preload-support/
|
// [1] https://www.janbambas.cz/firefox-enables-link-rel-preload-support/
|
||||||
// [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1639607
|
// [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1639607
|
||||||
user_pref("network.preload", false;
|
user_pref("network.preload", false);
|
||||||
|
|
||||||
// PREF: Network predictor
|
// PREF: Network predictor
|
||||||
// Uses a local file to remember which resources were needed when the user visits a webpage (such as image.jpg and script.js),
|
// Uses a local file to remember which resources were needed when the user visits a webpage (such as image.jpg and script.js),
|
||||||
// so that the next time the user mouseovers a link to that webpage, this history can be used to predict what resources will
|
// so that the next time the user mouseovers a link to that webpage, this history can be used to predict what resources will
|
||||||
// be needed rather than wait for the document to link those resources.
|
// be needed rather than wait for the document to link those resources. Only performs pre-connect, not prefetch. No data is actually
|
||||||
// [1] https://github.com/dillbyrne/random-agent-spoofer/issues/238#issuecomment-110214518
|
// sent to the site until a user actively clicks a link.
|
||||||
user_pref("network.predictor.enabled", false);
|
// [NOTE] I have NOT found any interference with content blocking using these setting.
|
||||||
user_pref("network.predictor.enable-hover-on-ssl", false);
|
// [SETTINGS] uBlock Origin -> Settings -> Privacy -> uncheck "Disable pre-fetching"
|
||||||
|
// [1] https://wiki.mozilla.org/Privacy/Reviews/Necko
|
||||||
|
// [2] https://www.ghacks.net/2014/05/11/seer-disable-firefox/
|
||||||
|
// [3] https://github.com/dillbyrne/random-agent-spoofer/issues/238#issuecomment-110214518
|
||||||
|
user_pref("network.predictor.enabled", true); // default
|
||||||
|
// user_pref("network.predictor.enable-hover-on-ssl", true);
|
||||||
user_pref("network.predictor.enable-prefetch", false); // default
|
user_pref("network.predictor.enable-prefetch", false); // default
|
||||||
|
|
||||||
// PREF: New tab tile ads and preload
|
// PREF: New tab tile ads and preload
|
||||||
@@ -201,7 +214,7 @@ user_pref("network.predictor.enable-prefetch", false); // default
|
|||||||
// [1] https://wiki.mozilla.org/Tiles/Technical_Documentation#Ping
|
// [1] https://wiki.mozilla.org/Tiles/Technical_Documentation#Ping
|
||||||
// [2] https://gecko.readthedocs.org/en/latest/browser/browser/DirectoryLinksProvider.html#browser-newtabpage-directory-source
|
// [2] https://gecko.readthedocs.org/en/latest/browser/browser/DirectoryLinksProvider.html#browser-newtabpage-directory-source
|
||||||
// [3] https://gecko.readthedocs.org/en/latest/browser/browser/DirectoryLinksProvider.html#browser-newtabpage-directory-ping
|
// [3] https://gecko.readthedocs.org/en/latest/browser/browser/DirectoryLinksProvider.html#browser-newtabpage-directory-ping
|
||||||
user_pref("browser.newtab.preload", true); /* default */
|
user_pref("browser.newtab.preload", true); // default
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* SECTION: SEARCH / URL BAR *
|
* SECTION: SEARCH / URL BAR *
|
||||||
@@ -209,7 +222,7 @@ user_pref("browser.newtab.preload", true); /* default */
|
|||||||
|
|
||||||
// PREF: trim certain parts of the URL
|
// PREF: trim certain parts of the URL
|
||||||
// [1] https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/browser.urlbar.trimURLs#values
|
// [1] https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/browser.urlbar.trimURLs#values
|
||||||
user_pref("browser.urlbar.trimURLs", true); /*default*/
|
user_pref("browser.urlbar.trimURLs", true); // default
|
||||||
|
|
||||||
// PREF: Enable a seperate search engine for Private Windows
|
// PREF: Enable a seperate search engine for Private Windows
|
||||||
// Remember to go into Preferences -> Search and select another search provider (like DuckDuckGo)
|
// Remember to go into Preferences -> Search and select another search provider (like DuckDuckGo)
|
||||||
@@ -219,7 +232,7 @@ user_pref("browser.search.separatePrivateDefault.ui.enabled", true);
|
|||||||
// PREF: Disable live search engine suggestions (Google, Bing, etc.)
|
// PREF: Disable live search engine suggestions (Google, Bing, etc.)
|
||||||
// [!] Search engines keylog every character you type from the URL bar
|
// [!] Search engines keylog every character you type from the URL bar
|
||||||
user_pref("browser.search.suggest.enabled", false);
|
user_pref("browser.search.suggest.enabled", false);
|
||||||
user_pref("browser.search.suggest.enabled.private", false);
|
user_pref("browser.search.suggest.enabled.private", false); // default
|
||||||
|
|
||||||
// PREF: URL bar suggestions (bookmarks, history, open tabs)
|
// PREF: URL bar suggestions (bookmarks, history, open tabs)
|
||||||
// user_pref("browser.urlbar.suggest.searches", false);
|
// user_pref("browser.urlbar.suggest.searches", false);
|
||||||
@@ -232,10 +245,10 @@ user_pref("browser.search.suggest.enabled.private", false);
|
|||||||
// NOTE: Items (bookmarks/history/openpages) with a high "frequency"/"bonus" will always
|
// NOTE: Items (bookmarks/history/openpages) with a high "frequency"/"bonus" will always
|
||||||
// be displayed (no we do not know how these are calculated or what the threshold is),
|
// be displayed (no we do not know how these are calculated or what the threshold is),
|
||||||
// and this does not affect the search by search engine suggestion.
|
// and this does not affect the search by search engine suggestion.
|
||||||
// NOTE: This setting is only useful if you want to enable search engine keywords but
|
// [NOTE] This setting is only useful if you want to enable search engine keywords but
|
||||||
// you want to limit suggestions shown. (I like to set this to 1.)
|
// you want to limit suggestions shown. (I like to set this to 1.)
|
||||||
// default=10, disable=0
|
// default=10, disable=0
|
||||||
// user_pref("browser.urlbar.maxRichResults", 0);
|
// user_pref("browser.urlbar.maxRichResults", 5);
|
||||||
|
|
||||||
// PREF: URL bar domain guessing
|
// PREF: URL bar domain guessing
|
||||||
// Domain guessing intercepts DNS "hostname not found errors" and resends a
|
// Domain guessing intercepts DNS "hostname not found errors" and resends a
|
||||||
@@ -264,6 +277,19 @@ user_pref("security.insecure_connection_text.pbmode.enabled", true);
|
|||||||
// [4] https://www.xudongz.com/blog/2017/idn-phishing/
|
// [4] https://www.xudongz.com/blog/2017/idn-phishing/
|
||||||
user_pref("network.IDN_show_punycode", true);
|
user_pref("network.IDN_show_punycode", true);
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* SECTION: HTTPS-FIRST POLICY *
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
// PREF: HTTPS-First Policy
|
||||||
|
// Firefox attempts to make all connections to websites secure, and falls back to insecure
|
||||||
|
// connections only when a website does not support it. Unlike HTTPS-Only Mode, Firefox
|
||||||
|
// will NOT ask for your permission before connecting to a website that doesn’t support secure connections.
|
||||||
|
// [NOTE] HTTPS-Only Mode needs to be disabled for HTTPS First to work.
|
||||||
|
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1706552
|
||||||
|
user_pref("dom.security.https_first", true);
|
||||||
|
user_pref("dom.security.https_first_pbm", true); // default
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* SECTION: HTTPS-ONLY MODE *
|
* SECTION: HTTPS-ONLY MODE *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
@@ -271,12 +297,12 @@ user_pref("network.IDN_show_punycode", true);
|
|||||||
// PREF: HTTPS-only connections
|
// PREF: HTTPS-only connections
|
||||||
// Firefox asks for your permission before connecting to a website that doesn’t support secure connections.
|
// Firefox asks for your permission before connecting to a website that doesn’t support secure connections.
|
||||||
// [1] https://blog.mozilla.org/security/2020/11/17/firefox-83-introduces-https-only-mode/
|
// [1] https://blog.mozilla.org/security/2020/11/17/firefox-83-introduces-https-only-mode/
|
||||||
user_pref("dom.security.https_only_mode", true);
|
// user_pref("dom.security.https_only_mode", true);
|
||||||
user_pref("dom.security.https_only_mode_ever_enabled", true);
|
// user_pref("dom.security.https_only_mode_ever_enabled", true);
|
||||||
|
|
||||||
// PREF: HTTPS-only connection in Private Browsing windows only
|
// PREF: HTTPS-only connection in Private Browsing windows only
|
||||||
// user_pref("dom.security.https_only_mode_pbm", true);
|
user_pref("dom.security.https_only_mode_pbm", true);
|
||||||
// user_pref("dom.security.https_only_mode_ever_enabled_pbm", true);
|
user_pref("dom.security.https_only_mode_ever_enabled_pbm", true);
|
||||||
|
|
||||||
// PREF: Disable HTTP background requests
|
// PREF: Disable HTTP background requests
|
||||||
// When attempting to upgrade, if the server doesn't respond within 3 seconds, Firefox
|
// When attempting to upgrade, if the server doesn't respond within 3 seconds, Firefox
|
||||||
@@ -289,18 +315,6 @@ user_pref("dom.security.https_only_mode_send_http_background_request", false);
|
|||||||
// PREF: Enable HTTPS-Only mode for local resources
|
// PREF: Enable HTTPS-Only mode for local resources
|
||||||
user_pref("dom.security.https_only_mode.upgrade_local", true);
|
user_pref("dom.security.https_only_mode.upgrade_local", true);
|
||||||
|
|
||||||
/******************************************************************************
|
|
||||||
* SECTION: HTTPS FIRST *
|
|
||||||
******************************************************************************/
|
|
||||||
// PREF: HTTPS-First Policy
|
|
||||||
// Firefox attempts to make all connections to websites secure, and falls back to insecure
|
|
||||||
// connections only when a website does not support it. Unlike HTTPS-Only Mode, Firefox
|
|
||||||
// will NOT ask for your permission before connecting to a website that doesn’t support secure connections.
|
|
||||||
// [NOTE] HTTPS-Only Mode needs to be disabled for HTTPS First to work.
|
|
||||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1706552
|
|
||||||
// user_pref("dom.security.https_first", true);
|
|
||||||
// user_pref("dom.security.https_first_pbm", true);
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* SECTION: DNS-over-HTTPS *
|
* SECTION: DNS-over-HTTPS *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
@@ -409,7 +423,7 @@ user_pref("browser.formfill.enable", false);
|
|||||||
* SECTION: MIXED CONTENT + CROSS-SITE *
|
* SECTION: MIXED CONTENT + CROSS-SITE *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
// PREF: Limit (or disable) HTTP authentication credentials dialogs triggered by sub-resources
|
// PREF: limit (or disable) HTTP authentication credentials dialogs triggered by sub-resources
|
||||||
// Hardens against potential credentials phishing
|
// Hardens against potential credentials phishing
|
||||||
// 0=don't allow sub-resources to open HTTP authentication credentials dialogs
|
// 0=don't allow sub-resources to open HTTP authentication credentials dialogs
|
||||||
// 1=don't allow cross-origin sub-resources to open HTTP authentication credentials dialogs
|
// 1=don't allow cross-origin sub-resources to open HTTP authentication credentials dialogs
|
||||||
@@ -448,7 +462,7 @@ user_pref("extensions.postDownloadThirdPartyPrompt", false);
|
|||||||
// permissions, and fullscreen requests. Disabling delegation means any prompts
|
// permissions, and fullscreen requests. Disabling delegation means any prompts
|
||||||
// for these will show/use their correct 3rd party origin
|
// for these will show/use their correct 3rd party origin
|
||||||
// [1] https://groups.google.com/forum/#!topic/mozilla.dev.platform/BdFOMAuCGW8/discussion
|
// [1] https://groups.google.com/forum/#!topic/mozilla.dev.platform/BdFOMAuCGW8/discussion
|
||||||
user_pref("permissions.delegation.enabled", false);
|
user_pref("permissions.delegation.enabled", false); // default
|
||||||
|
|
||||||
// PREF: Enforce TLS 1.0 and 1.1 downgrades as session only
|
// PREF: Enforce TLS 1.0 and 1.1 downgrades as session only
|
||||||
user_pref("security.tls.version.enable-deprecated", false); // default
|
user_pref("security.tls.version.enable-deprecated", false); // default
|
||||||
@@ -461,18 +475,17 @@ user_pref("dom.targetBlankNoOpener.enabled", true); // default
|
|||||||
// PREF: Enable "window.name" protection
|
// PREF: Enable "window.name" protection
|
||||||
// If a new page from another domain is loaded into a tab, then window.name is set to an empty string. The original
|
// If a new page from another domain is loaded into a tab, then window.name is set to an empty string. The original
|
||||||
// string is restored if the tab reverts back to the original page. This change prevents some cross-site attacks.
|
// string is restored if the tab reverts back to the original page. This change prevents some cross-site attacks.
|
||||||
user_pref("privacy.window.name.update.enabled", true);
|
user_pref("privacy.window.name.update.enabled", true); // default
|
||||||
|
|
||||||
// PREF: Downgrade Cross-Origin (Third-Party) Referers
|
// PREF: Downgrade Cross-Origin (Third-Party) Referers
|
||||||
// CROSS ORIGIN: control when to send a referer
|
// CROSS ORIGIN: control when to send a referer
|
||||||
// [1] https://github.com/arkenfox/user.js/issues/1077
|
// [1] https://github.com/arkenfox/user.js/issues/1077
|
||||||
// 0=always (default), 1=only if base domains match, 2=only if hosts match
|
// 0=always (default), 1=only if base domains match, 2=only if hosts match
|
||||||
user_pref("network.http.referer.XOriginPolicy", 0);
|
user_pref("network.http.referer.XOriginPolicy", 0); // default
|
||||||
// Control the amount of information to send.
|
// Control the amount of information to send.
|
||||||
// 0=send full URI (default), 1=scheme+host+port+path, 2=scheme+host+port
|
// 0=send full URI (default), 1=scheme+host+port+path, 2=scheme+host+port
|
||||||
user_pref("network.http.referer.XOriginTrimmingPolicy", 2);
|
user_pref("network.http.referer.XOriginTrimmingPolicy", 2);
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* SECTION: VARIOUS *
|
* SECTION: VARIOUS *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
@@ -489,7 +502,7 @@ user_pref("network.http.referer.XOriginTrimmingPolicy", 2);
|
|||||||
// user_pref("network.ftp.enabled", true);
|
// user_pref("network.ftp.enabled", true);
|
||||||
|
|
||||||
// PREF: Decode URLs in other languages
|
// PREF: Decode URLs in other languages
|
||||||
// I leave this off because it has unintended consequecnes when copy+paste links with underscores.
|
// [NOTE] I leave this off because it has unintended consequecnes when copy+paste links with underscores.
|
||||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1320061
|
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1320061
|
||||||
// user_pref("browser.urlbar.decodeURLsOnCopy", true);
|
// user_pref("browser.urlbar.decodeURLsOnCopy", true);
|
||||||
|
|
||||||
@@ -539,15 +552,14 @@ user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
|
|||||||
// PREF: Use Mozilla geolocation service instead of Google when geolocation is enabled
|
// PREF: Use Mozilla geolocation service instead of Google when geolocation is enabled
|
||||||
// user_pref("permissions.default.geo", 0);
|
// user_pref("permissions.default.geo", 0);
|
||||||
user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
|
user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
|
||||||
// PREF: Disable logging geolocation to the console
|
// PREF: enable logging geolocation to the console
|
||||||
user_pref("geo.provider.network.logging.enabled", false);
|
// user_pref("geo.provider.network.logging.enabled", true);
|
||||||
|
|
||||||
// PREF: Enforce Firefox blocklist for extensions + No hiding tabs
|
// PREF: Enforce Firefox blocklist for extensions + No hiding tabs
|
||||||
// This includes updates for "revoked certificates".
|
// This includes updates for "revoked certificates".
|
||||||
// [1] https://blog.mozilla.org/security/2015/03/03/revoking-intermediate-certificates-introducing-onecrl/
|
// [1] https://blog.mozilla.org/security/2015/03/03/revoking-intermediate-certificates-introducing-onecrl/
|
||||||
// [2] https://trac.torproject.org/projects/tor/ticket/16931
|
// [2] https://trac.torproject.org/projects/tor/ticket/16931
|
||||||
user_pref("extensions.blocklist.enabled", true);
|
user_pref("extensions.blocklist.enabled", true); // default
|
||||||
user_pref("extensions.webextensions.tabhide.enabled", false);
|
|
||||||
|
|
||||||
// PREF: Disable automatic extension updates
|
// PREF: Disable automatic extension updates
|
||||||
// user_pref("extensions.update.enabled", false);
|
// user_pref("extensions.update.enabled", false);
|
||||||
@@ -582,7 +594,7 @@ user_pref("corroborator.enabled", false);
|
|||||||
// Telemetry Coverage
|
// Telemetry Coverage
|
||||||
user_pref("toolkit.telemetry.coverage.opt-out", true);
|
user_pref("toolkit.telemetry.coverage.opt-out", true);
|
||||||
user_pref("toolkit.coverage.opt-out", true);
|
user_pref("toolkit.coverage.opt-out", true);
|
||||||
user_pref("toolkit.coverage.endpoint.base", "");
|
// user_pref("toolkit.coverage.endpoint.base", "");
|
||||||
|
|
||||||
// Health Reports
|
// Health Reports
|
||||||
// [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to send technical data.
|
// [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to send technical data.
|
||||||
@@ -603,20 +615,21 @@ user_pref("app.shield.optoutstudies.enabled", false);
|
|||||||
user_pref("browser.discovery.enabled", false);
|
user_pref("browser.discovery.enabled", false);
|
||||||
|
|
||||||
// PREF: disable crash reports
|
// PREF: disable crash reports
|
||||||
user_pref("breakpad.reportURL", "");
|
// user_pref("breakpad.reportURL", "");
|
||||||
user_pref("browser.tabs.crashReporting.sendReport", false);
|
user_pref("browser.tabs.crashReporting.sendReport", false);
|
||||||
user_pref("browser.crashReports.unsubmittedCheck.enabled", false); // default
|
user_pref("browser.crashReports.unsubmittedCheck.enabled", false); // default
|
||||||
// backlogged crash reports
|
// PREF: backlogged crash reports
|
||||||
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);
|
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);
|
||||||
|
|
||||||
// PREF: Captive Portal detection
|
// PREF: Captive Portal detection
|
||||||
// [WARNING] May NOT be able to use your browser at hotels and coffee shops.
|
// [WARNING] Do NOT use for mobile devices. May NOT be able to use Firefox on public wifi (hotels, coffee shops, etc).
|
||||||
// [1] https://www.eff.org/deeplinks/2017/08/how-captive-portals-interfere-wireless-security-and-privacy
|
// [1] https://www.eff.org/deeplinks/2017/08/how-captive-portals-interfere-wireless-security-and-privacy
|
||||||
// [2] https://wiki.mozilla.org/Necko/CaptivePortal
|
// [2] https://wiki.mozilla.org/Necko/CaptivePortal
|
||||||
// user_pref("captivedetect.canonicalURL", "");
|
// user_pref("captivedetect.canonicalURL", "");
|
||||||
// user_pref("network.captive-portal-service.enabled", false);
|
// user_pref("network.captive-portal-service.enabled", false);
|
||||||
|
|
||||||
// PREF: Network Connectivity checks
|
// PREF: Network Connectivity checks
|
||||||
|
// [WARNING] Do NOT use for mobile devices. May NOT be able to use Firefox on public wifi (hotels, coffee shops, etc).
|
||||||
// [1] https://bugzilla.mozilla.org/1460537
|
// [1] https://bugzilla.mozilla.org/1460537
|
||||||
// user_pref("network.connectivity-service.enabled", false);
|
// user_pref("network.connectivity-service.enabled", false);
|
||||||
|
|
||||||
@@ -629,7 +642,7 @@ user_pref("extensions.abuseReport.enabled", false);
|
|||||||
// PREF: Normandy/Shield [extensions tracking]
|
// PREF: Normandy/Shield [extensions tracking]
|
||||||
// Shield is an telemetry system (including Heartbeat) that can also push and test "recipes"
|
// Shield is an telemetry system (including Heartbeat) that can also push and test "recipes"
|
||||||
user_pref("app.normandy.enabled", false);
|
user_pref("app.normandy.enabled", false);
|
||||||
user_pref("app.normandy.api_url", "");
|
// user_pref("app.normandy.api_url", "");
|
||||||
|
|
||||||
// PREF: PingCentre telemetry (used in several System Add-ons)
|
// PREF: PingCentre telemetry (used in several System Add-ons)
|
||||||
// Currently blocked by 'datareporting.healthreport.uploadEnabled'
|
// Currently blocked by 'datareporting.healthreport.uploadEnabled'
|
||||||
|
|||||||
Reference in New Issue
Block a user