|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
/******
|
|
|
|
|
* name: arkenfox user.js
|
|
|
|
|
* date: 6 November 2022
|
|
|
|
|
* version: 106
|
|
|
|
|
* date: 26 July 2023
|
|
|
|
|
* version: 115
|
|
|
|
|
* url: https://github.com/arkenfox/user.js
|
|
|
|
|
* license: MIT: https://github.com/arkenfox/user.js/blob/master/LICENSE.txt
|
|
|
|
|
|
|
|
|
@ -110,20 +110,12 @@ user_pref("geo.provider.ms-windows-location", false); // [WINDOWS]
|
|
|
|
|
user_pref("geo.provider.use_corelocation", false); // [MAC]
|
|
|
|
|
user_pref("geo.provider.use_gpsd", false); // [LINUX]
|
|
|
|
|
user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX]
|
|
|
|
|
/* 0203: disable region updates
|
|
|
|
|
* [1] https://firefox-source-docs.mozilla.org/toolkit/modules/toolkit_modules/Region.html ***/
|
|
|
|
|
user_pref("browser.region.network.url", ""); // [FF78+]
|
|
|
|
|
user_pref("browser.region.update.enabled", false); // [FF79+]
|
|
|
|
|
/* 0204: set search region
|
|
|
|
|
* [NOTE] May not be hidden if Firefox has changed your settings due to your region (0203) ***/
|
|
|
|
|
// user_pref("browser.search.region", "US"); // [HIDDEN PREF]
|
|
|
|
|
/* 0210: set preferred language for displaying pages
|
|
|
|
|
* [SETTING] General>Language and Appearance>Language>Choose your preferred language...
|
|
|
|
|
* [TEST] https://addons.mozilla.org/about ***/
|
|
|
|
|
user_pref("intl.accept_languages", "en-US, en");
|
|
|
|
|
/* 0211: use en-US locale regardless of the system or region locale
|
|
|
|
|
* [SETUP-WEB] May break some input methods e.g xim/ibus for CJK languages [1]
|
|
|
|
|
* [TEST] https://arkenfox.github.io/TZP/tests/formatting.html
|
|
|
|
|
* [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=867501,1629630 ***/
|
|
|
|
|
user_pref("javascript.use_us_english_locale", true); // [HIDDEN PREF]
|
|
|
|
|
|
|
|
|
@ -268,7 +260,8 @@ user_pref("_user.js.parrot", "0700 syntax error: the parrot's given up the ghost
|
|
|
|
|
/* 0701: disable IPv6
|
|
|
|
|
* IPv6 can be abused, especially with MAC addresses, and can leak with VPNs: assuming
|
|
|
|
|
* your ISP and/or router and/or website is IPv6 capable. Most sites will fall back to IPv4
|
|
|
|
|
* [STATS] Firefox telemetry (Sept 2022) shows ~8% of successful connections are IPv6
|
|
|
|
|
* [SETUP-WEB] PR_CONNECT_RESET_ERROR: this pref *might* be the cause
|
|
|
|
|
* [STATS] Firefox telemetry (Feb 2023) shows ~9% of successful connections are IPv6
|
|
|
|
|
* [NOTE] This is an application level fallback. Disabling IPv6 is best done at an
|
|
|
|
|
* OS/network level, and/or configured properly in VPN setups. If you are not masking your IP,
|
|
|
|
|
* then this won't make much difference. If you are masking your IP, then it can only help.
|
|
|
|
@ -302,10 +295,11 @@ user_pref("network.gio.supported-protocols", ""); // [HIDDEN PREF]
|
|
|
|
|
* [WARNING] If false, this will break the fallback for some security features
|
|
|
|
|
* [SETUP-CHROME] If you use a proxy and you understand the security impact
|
|
|
|
|
* [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1732792,1733994,1733481 ***/
|
|
|
|
|
// user_pref("network.proxy.allow_bypass", false); // [HIDDEN PREF FF95-96]
|
|
|
|
|
// user_pref("network.proxy.allow_bypass", false);
|
|
|
|
|
/* 0710: disable DNS-over-HTTPS (DoH) rollout [FF60+]
|
|
|
|
|
* 0=off by default, 2=TRR (Trusted Recursive Resolver) first, 3=TRR only, 5=explicitly off
|
|
|
|
|
* 0=default, 2=increased (TRR (Trusted Recursive Resolver) first), 3=max (TRR only), 5=off
|
|
|
|
|
* see "doh-rollout.home-region": USA 2019, Canada 2021, Russia/Ukraine 2022 [3]
|
|
|
|
|
* [SETTING] Privacy & Security>DNS over HTTPS
|
|
|
|
|
* [1] https://hacks.mozilla.org/2018/05/a-cartoon-intro-to-dns-over-https/
|
|
|
|
|
* [2] https://wiki.mozilla.org/Security/DOH-resolver-policy
|
|
|
|
|
* [3] https://support.mozilla.org/en-US/kb/firefox-dns-over-https
|
|
|
|
@ -432,7 +426,7 @@ user_pref("_user.js.parrot", "1200 syntax error: the parrot's a stiff!");
|
|
|
|
|
* but the problem is that the browser can't know that. Setting this pref to true is the only way for the
|
|
|
|
|
* browser to ensure there will be no unsafe renegotiations on the channel between the browser and the server
|
|
|
|
|
* [SETUP-WEB] SSL_ERROR_UNSAFE_NEGOTIATION: is it worth overriding this for that one site?
|
|
|
|
|
* [STATS] SSL Labs (Sept 2022) reports over 99.3% of top sites have secure renegotiation [4]
|
|
|
|
|
* [STATS] SSL Labs (Feb 2023) reports over 99.3% of top sites have secure renegotiation [4]
|
|
|
|
|
* [1] https://wiki.mozilla.org/Security:Renegotiation
|
|
|
|
|
* [2] https://datatracker.ietf.org/doc/html/rfc5746
|
|
|
|
|
* [3] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3555
|
|
|
|
@ -477,8 +471,7 @@ user_pref("security.OCSP.require", true);
|
|
|
|
|
user_pref("security.family_safety.mode", 0);
|
|
|
|
|
/* 1223: enable strict PKP (Public Key Pinning)
|
|
|
|
|
* 0=disabled, 1=allow user MiTM (default; such as your antivirus), 2=strict
|
|
|
|
|
* [SETUP-WEB] MOZILLA_PKIX_ERROR_KEY_PINNING_FAILURE: If you rely on an AV (antivirus) to protect
|
|
|
|
|
* your web browsing by inspecting ALL your web traffic, then override to current default ***/
|
|
|
|
|
* [SETUP-WEB] MOZILLA_PKIX_ERROR_KEY_PINNING_FAILURE ***/
|
|
|
|
|
user_pref("security.cert_pinning.enforcement_level", 2);
|
|
|
|
|
/* 1224: enable CRLite [FF73+]
|
|
|
|
|
* 0 = disabled
|
|
|
|
@ -491,14 +484,14 @@ user_pref("security.remote_settings.crlite_filters.enabled", true);
|
|
|
|
|
user_pref("security.pki.crlite_mode", 2);
|
|
|
|
|
|
|
|
|
|
/** MIXED CONTENT ***/
|
|
|
|
|
/* 1241: disable insecure passive content (such as images) on https pages [SETUP-WEB] ***/
|
|
|
|
|
user_pref("security.mixed_content.block_display_content", true);
|
|
|
|
|
/* 1241: disable insecure passive content (such as images) on https pages ***/
|
|
|
|
|
// user_pref("security.mixed_content.block_display_content", true); // Defense-in-depth (see 1244)
|
|
|
|
|
/* 1244: enable HTTPS-Only mode in all windows [FF76+]
|
|
|
|
|
* When the top-level is HTTPS, insecure subresources are also upgraded (silent fail)
|
|
|
|
|
* [SETTING] to add site exceptions: Padlock>HTTPS-Only mode>On (after "Continue to HTTP Site")
|
|
|
|
|
* [SETTING] Privacy & Security>HTTPS-Only Mode (and manage exceptions)
|
|
|
|
|
* [TEST] http://example.com [upgrade]
|
|
|
|
|
* [TEST] http://httpforever.com/ [no upgrade] ***/
|
|
|
|
|
* [TEST] http://httpforever.com/ | http://http.rip [no upgrade] ***/
|
|
|
|
|
user_pref("dom.security.https_only_mode", true); // [FF76+]
|
|
|
|
|
// user_pref("dom.security.https_only_mode_pbm", true); // [FF80+]
|
|
|
|
|
/* 1245: enable HTTPS-Only mode for local resources [FF77+] ***/
|
|
|
|
@ -564,15 +557,6 @@ user_pref("privacy.userContext.ui.enabled", true);
|
|
|
|
|
|
|
|
|
|
/*** [SECTION 2000]: PLUGINS / MEDIA / WEBRTC ***/
|
|
|
|
|
user_pref("_user.js.parrot", "2000 syntax error: the parrot's snuffed it!");
|
|
|
|
|
/* 2001: disable WebRTC (Web Real-Time Communication)
|
|
|
|
|
* Firefox uses mDNS hostname obfuscation on desktop (except Windows7/8) and the
|
|
|
|
|
* private IP is NEVER exposed, except if required in TRUSTED scenarios; i.e. after
|
|
|
|
|
* you grant device (microphone or camera) access
|
|
|
|
|
* [SETUP-HARDEN] Test first. Windows7/8 users only: behind a proxy who never use WebRTC
|
|
|
|
|
* [TEST] https://browserleaks.com/webrtc
|
|
|
|
|
* [1] https://groups.google.com/g/discuss-webrtc/c/6stQXi72BEU/m/2FwZd24UAQAJ
|
|
|
|
|
* [2] https://datatracker.ietf.org/doc/html/draft-ietf-mmusic-mdns-ice-candidates#section-3.1.1 ***/
|
|
|
|
|
// user_pref("media.peerconnection.enabled", false);
|
|
|
|
|
/* 2002: force WebRTC inside the proxy [FF70+] ***/
|
|
|
|
|
user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true);
|
|
|
|
|
/* 2003: force a single network interface for ICE candidates generation [FF42+]
|
|
|
|
@ -603,34 +587,21 @@ user_pref("media.eme.enabled", false);
|
|
|
|
|
user_pref("_user.js.parrot", "2400 syntax error: the parrot's kicked the bucket!");
|
|
|
|
|
/* 2402: prevent scripts from moving and resizing open windows ***/
|
|
|
|
|
user_pref("dom.disable_window_move_resize", true);
|
|
|
|
|
/* 2403: block popup windows
|
|
|
|
|
* [SETTING] Privacy & Security>Permissions>Block pop-up windows ***/
|
|
|
|
|
user_pref("dom.disable_open_during_load", true);
|
|
|
|
|
/* 2404: limit events that can cause a popup [SETUP-WEB] ***/
|
|
|
|
|
user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
|
|
|
|
|
|
|
|
|
|
/*** [SECTION 2600]: MISCELLANEOUS ***/
|
|
|
|
|
user_pref("_user.js.parrot", "2600 syntax error: the parrot's run down the curtain!");
|
|
|
|
|
/* 2601: prevent accessibility services from accessing your browser [RESTART]
|
|
|
|
|
* [1] https://support.mozilla.org/kb/accessibility-services ***/
|
|
|
|
|
user_pref("accessibility.force_disabled", 1);
|
|
|
|
|
/* 2602: disable sending additional analytics to web servers
|
|
|
|
|
* [1] https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon ***/
|
|
|
|
|
user_pref("beacon.enabled", false);
|
|
|
|
|
/* 2603: remove temp files opened with an external application
|
|
|
|
|
* [1] https://bugzilla.mozilla.org/302433 ***/
|
|
|
|
|
user_pref("browser.helperApps.deleteTempFileOnExit", true);
|
|
|
|
|
/* 2604: disable page thumbnail collection ***/
|
|
|
|
|
user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
|
|
|
|
|
/* 2606: disable UITour backend so there is no chance that a remote page can use it ***/
|
|
|
|
|
user_pref("browser.uitour.enabled", false);
|
|
|
|
|
user_pref("browser.uitour.url", "");
|
|
|
|
|
// user_pref("browser.uitour.url", ""); // Defense-in-depth
|
|
|
|
|
/* 2608: reset remote debugging to disabled
|
|
|
|
|
* [1] https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/16222 ***/
|
|
|
|
|
user_pref("devtools.debugger.remote-enabled", false); // [DEFAULT: false]
|
|
|
|
|
/* 2611: disable middle mouse click opening links from clipboard
|
|
|
|
|
* [1] https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/10089 ***/
|
|
|
|
|
user_pref("middlemouse.contentLoadURL", false);
|
|
|
|
|
/* 2615: disable websites overriding Firefox's keyboard shortcuts [FF58+]
|
|
|
|
|
* 0 (default) or 1=allow, 2=block
|
|
|
|
|
* [SETTING] to add site exceptions: Ctrl+I>Permissions>Override Keyboard Shortcuts ***/
|
|
|
|
@ -648,16 +619,16 @@ user_pref("webchannel.allowObject.urlWhitelist", "");
|
|
|
|
|
* [3] https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=punycode+firefox
|
|
|
|
|
* [4] https://www.xudongz.com/blog/2017/idn-phishing/ ***/
|
|
|
|
|
user_pref("network.IDN_show_punycode", true);
|
|
|
|
|
/* 2620: enforce PDFJS, disable PDFJS scripting [SETUP-CHROME]
|
|
|
|
|
/* 2620: enforce PDFJS, disable PDFJS scripting
|
|
|
|
|
* This setting controls if the option "Display in Firefox" is available in the setting below
|
|
|
|
|
* and by effect controls whether PDFs are handled in-browser or externally ("Ask" or "Open With")
|
|
|
|
|
* PROS: pdfjs is lightweight, open source, and more secure/vetted than most
|
|
|
|
|
* Exploits are rare (one serious case in seven years), treated seriously and patched quickly.
|
|
|
|
|
* [WHY] pdfjs is lightweight, open source, and secure: the last exploit was June 2015 [1]
|
|
|
|
|
* It doesn't break "state separation" of browser content (by not sharing with OS, independent apps).
|
|
|
|
|
* It maintains disk avoidance and application data isolation. It's convenient. You can still save to disk.
|
|
|
|
|
* CONS: You may prefer a different pdf reader for security reasons
|
|
|
|
|
* CAVEAT: JS can still force a pdf to open in-browser by bundling its own code
|
|
|
|
|
* [SETTING] General>Applications>Portable Document Format (PDF) ***/
|
|
|
|
|
* [NOTE] JS can still force a pdf to open in-browser by bundling its own code
|
|
|
|
|
* [SETUP-CHROME] You may prefer a different pdf reader for security/workflow reasons
|
|
|
|
|
* [SETTING] General>Applications>Portable Document Format (PDF)
|
|
|
|
|
* [1] https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=pdf.js+firefox ***/
|
|
|
|
|
user_pref("pdfjs.disabled", false); // [DEFAULT: false]
|
|
|
|
|
user_pref("pdfjs.enableScripting", false); // [FF86+]
|
|
|
|
|
/* 2621: disable links launching Windows Store on Windows 8/8.1/10 [WINDOWS] ***/
|
|
|
|
@ -668,6 +639,8 @@ user_pref("network.protocol-handler.external.ms-windows-store", false);
|
|
|
|
|
* for these will show/use their correct 3rd party origin
|
|
|
|
|
* [1] https://groups.google.com/forum/#!topic/mozilla.dev.platform/BdFOMAuCGW8/discussion ***/
|
|
|
|
|
user_pref("permissions.delegation.enabled", false);
|
|
|
|
|
/* 2624: disable middle click on new tab button opening URLs or searches using clipboard [FF115+] */
|
|
|
|
|
user_pref("browser.tabs.searchclipboardfor.middleclick", false); // [DEFAULT: false NON-LINUX]
|
|
|
|
|
|
|
|
|
|
/** DOWNLOADS ***/
|
|
|
|
|
/* 2651: enable user interaction for security by always asking where to download
|
|
|
|
@ -717,8 +690,8 @@ user_pref("browser.contentblocking.category", "strict");
|
|
|
|
|
/* 2710: enable state partitioning of service workers [FF96+] ***/
|
|
|
|
|
user_pref("privacy.partition.serviceWorkers", true); // [DEFAULT: true FF105+]
|
|
|
|
|
/* 2720: enable APS (Always Partitioning Storage) ***/
|
|
|
|
|
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", true); // [FF104+]
|
|
|
|
|
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false); // [FF105+]
|
|
|
|
|
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", true); // [FF104+] [DEFAULT: true FF109+]
|
|
|
|
|
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false); // [FF105+] [DEFAULT: false FF109+]
|
|
|
|
|
|
|
|
|
|
/*** [SECTION 2800]: SHUTDOWN & SANITIZING ***/
|
|
|
|
|
user_pref("_user.js.parrot", "2800 syntax error: the parrot's bleedin' demised!");
|
|
|
|
@ -753,10 +726,6 @@ user_pref("privacy.clearOnShutdown.sessions", true); // [DEFAULT: true]
|
|
|
|
|
* [SETTING] to manage site exceptions: Options>Privacy & Security>Permissions>Settings ***/
|
|
|
|
|
user_pref("privacy.clearOnShutdown.cookies", true); // Cookies
|
|
|
|
|
user_pref("privacy.clearOnShutdown.offlineApps", true); // Site Data
|
|
|
|
|
/* 2816: set cache to clear on exit [FF96+]
|
|
|
|
|
* [NOTE] We already disable disk cache (1001) and clear on exit (2811) which is more robust
|
|
|
|
|
* [1] https://bugzilla.mozilla.org/1671182 ***/
|
|
|
|
|
// user_pref("privacy.clearsitedata.cache.enabled", true);
|
|
|
|
|
|
|
|
|
|
/** SANITIZE MANUAL: IGNORES "ALLOW" SITE EXCEPTIONS ***/
|
|
|
|
|
/* 2820: reset default items to clear with Ctrl-Shift-Del [SETUP-CHROME]
|
|
|
|
@ -784,11 +753,11 @@ user_pref("privacy.sanitize.timeSpan", 0);
|
|
|
|
|
/*** [SECTION 4500]: RFP (RESIST FINGERPRINTING)
|
|
|
|
|
RFP covers a wide range of ongoing fingerprinting solutions.
|
|
|
|
|
It is an all-or-nothing buy in: you cannot pick and choose what parts you want
|
|
|
|
|
[TEST] https://arkenfox.github.io/TZP/tzp.html
|
|
|
|
|
|
|
|
|
|
[WARNING] DO NOT USE extensions to alter RFP protected metrics
|
|
|
|
|
|
|
|
|
|
418986 - limit window.screen & CSS media queries (FF41)
|
|
|
|
|
[TEST] https://arkenfox.github.io/TZP/tzp.html#screen
|
|
|
|
|
1281949 - spoof screen orientation (FF50)
|
|
|
|
|
1330890 - spoof timezone as UTC0 (FF55)
|
|
|
|
|
1360039 - spoof navigator.hardwareConcurrency as 2 (FF55)
|
|
|
|
@ -809,7 +778,6 @@ user_pref("privacy.sanitize.timeSpan", 0);
|
|
|
|
|
1382545 - reduce fingerprinting in Animation API
|
|
|
|
|
1354633 - limit MediaError.message to a whitelist
|
|
|
|
|
FF58+
|
|
|
|
|
967895 - spoof canvas and enable site permission prompt (FF58)
|
|
|
|
|
1372073 - spoof/block fingerprinting in MediaDevices API (FF59)
|
|
|
|
|
Spoof: enumerate devices as one "Internal Camera" and one "Internal Microphone"
|
|
|
|
|
Block: suppresses the ondevicechange event
|
|
|
|
@ -828,18 +796,23 @@ user_pref("privacy.sanitize.timeSpan", 0);
|
|
|
|
|
1595823 - return audioContext sampleRate as 44100 (FF72)
|
|
|
|
|
1607316 - spoof pointer as coarse and hover as none (ANDROID) (FF74)
|
|
|
|
|
1621433 - randomize canvas (previously FF58+ returned an all-white canvas) (FF78)
|
|
|
|
|
1506364 - return "no-preference" with prefers-contrast (FF80)
|
|
|
|
|
1653987 - limit font visibility to bundled and "Base Fonts" (Windows, Mac, some Linux) (FF80)
|
|
|
|
|
1461454 - spoof smooth=true and powerEfficient=false for supported media in MediaCapabilities (FF82)
|
|
|
|
|
531915 - use fdlibm's sin, cos and tan in jsmath (FF93, ESR91.1)
|
|
|
|
|
1756280 - enforce navigator.pdfViewerEnabled as true and plugins/mimeTypes as hard-coded values (FF100)
|
|
|
|
|
1692609 - reduce JS timing precision to 16.67ms (previously FF55+ was 100ms) (FF102)
|
|
|
|
|
1422237 - return "srgb" with color-gamut (FF110)
|
|
|
|
|
1794628 - return "none" with inverted-colors (FF114)
|
|
|
|
|
***/
|
|
|
|
|
user_pref("_user.js.parrot", "4500 syntax error: the parrot's popped 'is clogs");
|
|
|
|
|
/* 4501: enable privacy.resistFingerprinting [FF41+]
|
|
|
|
|
/* 4501: enable privacy.resistFingerprinting
|
|
|
|
|
* [SETUP-WEB] RFP can cause some website breakage: mainly canvas, use a site exception via the urlbar
|
|
|
|
|
* RFP also has a few side effects: mainly timezone is UTC0, and websites will prefer light theme
|
|
|
|
|
* [NOTE] pbmode applies if true and the original pref is false
|
|
|
|
|
* [1] https://bugzilla.mozilla.org/418986 ***/
|
|
|
|
|
user_pref("privacy.resistFingerprinting", true);
|
|
|
|
|
user_pref("privacy.resistFingerprinting", true); // [FF41+]
|
|
|
|
|
// user_pref("privacy.resistFingerprinting.pbmode", true); // [FF114+]
|
|
|
|
|
/* 4502: set new window size rounding max values [FF55+]
|
|
|
|
|
* [SETUP-CHROME] sizes round down in hundreds: width to 200s and height to 100s, to fit your screen
|
|
|
|
|
* [1] https://bugzilla.mozilla.org/1330882 ***/
|
|
|
|
@ -848,7 +821,7 @@ user_pref("privacy.window.maxInnerHeight", 900);
|
|
|
|
|
/* 4503: disable mozAddonManager Web API [FF57+]
|
|
|
|
|
* [NOTE] To allow extensions to work on AMO, you also need 2662
|
|
|
|
|
* [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1384330,1406795,1415644,1453988 ***/
|
|
|
|
|
user_pref("privacy.resistFingerprinting.block_mozAddonManager", true); // [HIDDEN PREF]
|
|
|
|
|
user_pref("privacy.resistFingerprinting.block_mozAddonManager", true); // [HIDDEN PREF FF57-108]
|
|
|
|
|
/* 4504: enable RFP letterboxing [FF67+]
|
|
|
|
|
* Dynamically resizes the inner window by applying margins in stepped ranges [2]
|
|
|
|
|
* If you use the dimension pref, then it will only apply those resolutions.
|
|
|
|
@ -864,13 +837,8 @@ user_pref("privacy.resistFingerprinting.letterboxing", true); // [HIDDEN PREF]
|
|
|
|
|
* [WARNING] DO NOT USE unless testing, see [1] comment 12
|
|
|
|
|
* [1] https://bugzilla.mozilla.org/1635603 ***/
|
|
|
|
|
// user_pref("privacy.resistFingerprinting.exemptedDomains", "*.example.invalid");
|
|
|
|
|
// user_pref("privacy.resistFingerprinting.testGranularityMask", 0);
|
|
|
|
|
/* 4506: set RFP's font visibility level (1402) [FF94+] ***/
|
|
|
|
|
// user_pref("layout.css.font-visibility.resistFingerprinting", 1); // [DEFAULT: 1]
|
|
|
|
|
/* 4507: disable showing about:blank as soon as possible during startup [FF60+]
|
|
|
|
|
* When default true this no longer masks the RFP chrome resizing activity
|
|
|
|
|
* [1] https://bugzilla.mozilla.org/1448423 ***/
|
|
|
|
|
user_pref("browser.startup.blankWindow", false);
|
|
|
|
|
/* 4510: disable using system colors
|
|
|
|
|
* [SETTING] General>Language and Appearance>Fonts and Colors>Colors>Use system colors ***/
|
|
|
|
|
user_pref("browser.display.use_system_colors", false); // [DEFAULT: false NON-WINDOWS]
|
|
|
|
@ -905,7 +873,7 @@ user_pref("_user.js.parrot", "5000 syntax error: the parrot's taken 'is last bow
|
|
|
|
|
* caches, searches, cookies, localStorage, IndexedDB etc (which you can achieve in normal mode).
|
|
|
|
|
* In fact, PB mode limits or removes the ability to control some of these, and you need to quit
|
|
|
|
|
* Firefox to clear them. PB is best used as a one off window (Menu>New Private Window) to provide
|
|
|
|
|
* a temporary self-contained new session. Close all Private Windows to clear the PB mode session.
|
|
|
|
|
* a temporary self-contained new session. Close all private windows to clear the PB session.
|
|
|
|
|
* [SETTING] Privacy & Security>History>Custom Settings>Always use private browsing mode
|
|
|
|
|
* [1] https://wiki.mozilla.org/Private_Browsing
|
|
|
|
|
* [2] https://support.mozilla.org/kb/common-myths-about-private-browsing ***/
|
|
|
|
@ -925,7 +893,7 @@ user_pref("_user.js.parrot", "5000 syntax error: the parrot's taken 'is last bow
|
|
|
|
|
/* 5005: disable intermediate certificate caching [FF41+] [RESTART]
|
|
|
|
|
* [NOTE] This affects login/cert/key dbs. The effect is all credentials are session-only.
|
|
|
|
|
* Saved logins and passwords are not available. Reset the pref and restart to return them ***/
|
|
|
|
|
// user_pref("security.nocertdb", true); // [HIDDEN PREF in FF101 or lower]
|
|
|
|
|
// user_pref("security.nocertdb", true);
|
|
|
|
|
/* 5006: disable favicons in history and bookmarks
|
|
|
|
|
* [NOTE] Stored as data blobs in favicons.sqlite, these don't reveal anything that your
|
|
|
|
|
* actual history (and bookmarks) already do. Your history is more detailed, so
|
|
|
|
@ -971,12 +939,16 @@ user_pref("_user.js.parrot", "5000 syntax error: the parrot's taken 'is last bow
|
|
|
|
|
/* 5017: disable Form Autofill
|
|
|
|
|
* If .supportedCountries includes your region (browser.search.region) and .supported
|
|
|
|
|
* is "detect" (default), then the UI will show. Stored data is not secure, uses JSON
|
|
|
|
|
* [NOTE] Heuristics controls Form Autofill on forms without @autocomplete attributes
|
|
|
|
|
* [SETTING] Privacy & Security>Forms and Autofill>Autofill addresses
|
|
|
|
|
* [1] https://wiki.mozilla.org/Firefox/Features/Form_Autofill ***/
|
|
|
|
|
// user_pref("extensions.formautofill.addresses.enabled", false); // [FF55+]
|
|
|
|
|
// user_pref("extensions.formautofill.creditCards.enabled", false); // [FF56+]
|
|
|
|
|
// user_pref("extensions.formautofill.heuristics.enabled", false); // [FF55+]
|
|
|
|
|
/* 5018: limit events that can cause a pop-up ***/
|
|
|
|
|
// user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
|
|
|
|
|
/* 5019: disable page thumbnail collection ***/
|
|
|
|
|
// user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
|
|
|
|
|
/* 5020: disable Windows native notifications and use app notications instead [FF111+] [WINDOWS] ***/
|
|
|
|
|
// user_pref("alerts.useSystemBackend.windows.notificationserver.enabled", false);
|
|
|
|
|
|
|
|
|
|
/*** [SECTION 5500]: OPTIONAL HARDENING
|
|
|
|
|
Not recommended. Overriding these can cause breakage and performance issues,
|
|
|
|
@ -1031,42 +1003,49 @@ user_pref("network.http.referer.spoofSource", false); // [DEFAULT: false]
|
|
|
|
|
* [1] https://www.squarefree.com/2004/07/01/race-conditions-in-security-dialogs/ ***/
|
|
|
|
|
user_pref("security.dialog_enable_delay", 1000); // [DEFAULT: 1000]
|
|
|
|
|
/* 6008: enforce no First Party Isolation [FF51+]
|
|
|
|
|
* [WARNING] Replaced with network partitioning (FF85+) and TCP (2701),
|
|
|
|
|
* and enabling FPI disables those. FPI is no longer maintained ***/
|
|
|
|
|
* [WARNING] Replaced with network partitioning (FF85+) and TCP (2701), and enabling FPI
|
|
|
|
|
* disables those. FPI is no longer maintained except at Tor Project for Tor Browser's config ***/
|
|
|
|
|
user_pref("privacy.firstparty.isolate", false); // [DEFAULT: false]
|
|
|
|
|
/* 6009: enforce SmartBlock shims [FF81+]
|
|
|
|
|
* In FF96+ these are listed in about:compat
|
|
|
|
|
* [1] https://blog.mozilla.org/security/2021/03/23/introducing-smartblock/ ***/
|
|
|
|
|
user_pref("extensions.webcompat.enable_shims", true); // [DEFAULT: true]
|
|
|
|
|
/* 6010: enforce/reset TLS 1.0/1.1 downgrades to session only
|
|
|
|
|
* [NOTE] In FF97+ the TLS 1.0/1.1 downgrade UX was removed
|
|
|
|
|
/* 6010: enforce no TLS 1.0/1.1 downgrades
|
|
|
|
|
* [TEST] https://tls-v1-1.badssl.com:1010/ ***/
|
|
|
|
|
user_pref("security.tls.version.enable-deprecated", false); // [DEFAULT: false]
|
|
|
|
|
/* 6011: enforce disabling of Web Compatibility Reporter [FF56+]
|
|
|
|
|
* Web Compatibility Reporter adds a "Report Site Issue" button to send data to Mozilla
|
|
|
|
|
* [WHY] To prevent wasting Mozilla's time with a custom setup ***/
|
|
|
|
|
user_pref("extensions.webcompat-reporter.enabled", false); // [DEFAULT: false]
|
|
|
|
|
/* 6050: prefsCleaner: reset items removed from arkenfox FF102+ ***/
|
|
|
|
|
/* 6012: enforce Quarantined Domains [FF115+]
|
|
|
|
|
* [WHY] https://support.mozilla.org/kb/quarantined-domains */
|
|
|
|
|
user_pref("extensions.quarantinedDomains.enabled", true); // [DEFAULT: true]
|
|
|
|
|
/* 6050: prefsCleaner: reset previously active items removed from arkenfox FF102+ ***/
|
|
|
|
|
// user_pref("beacon.enabled", "");
|
|
|
|
|
// user_pref("browser.startup.blankWindow", "");
|
|
|
|
|
// user_pref("browser.newtab.preload", "");
|
|
|
|
|
// user_pref("browser.newtabpage.activity-stream.feeds.discoverystreamfeed", "");
|
|
|
|
|
// user_pref("browser.newtabpage.activity-stream.feeds.snippets", "");
|
|
|
|
|
// user_pref("browser.region.network.url", "");
|
|
|
|
|
// user_pref("browser.region.update.enabled", "");
|
|
|
|
|
// user_pref("browser.ssl_override_behavior", "");
|
|
|
|
|
// user_pref("devtools.chrome.enabled", "");
|
|
|
|
|
// user_pref("dom.disable_beforeunload", "");
|
|
|
|
|
// user_pref("dom.disable_open_during_load", "");
|
|
|
|
|
// user_pref("extensions.formautofill.available", "");
|
|
|
|
|
// user_pref("extensions.formautofill.addresses.supported", "");
|
|
|
|
|
// user_pref("extensions.formautofill.creditCards.available", "");
|
|
|
|
|
// user_pref("extensions.formautofill.creditCards.supported", "");
|
|
|
|
|
// user_pref("middlemouse.contentLoadURL", "");
|
|
|
|
|
|
|
|
|
|
/*** [SECTION 7000]: DON'T BOTHER ***/
|
|
|
|
|
user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies!");
|
|
|
|
|
/* 7001: disable APIs
|
|
|
|
|
* Location-Aware Browsing, Full Screen, offline cache (appCache)
|
|
|
|
|
* [WHY] The API state is easily fingerprintable. Geo is behind a prompt (7002).
|
|
|
|
|
* appCache storage capability was removed in FF90. Full screen requires user interaction ***/
|
|
|
|
|
* Location-Aware Browsing, Full Screen
|
|
|
|
|
* [WHY] The API state is easily fingerprintable.
|
|
|
|
|
* Geo is behind a prompt (7002). Full screen requires user interaction ***/
|
|
|
|
|
// user_pref("geo.enabled", false);
|
|
|
|
|
// user_pref("full-screen-api.enabled", false);
|
|
|
|
|
// user_pref("browser.cache.offline.enable", false);
|
|
|
|
|
/* 7002: set default permissions
|
|
|
|
|
* Location, Camera, Microphone, Notifications [FF58+] Virtual Reality [FF73+]
|
|
|
|
|
* 0=always ask (default), 1=allow, 2=block
|
|
|
|
@ -1082,8 +1061,8 @@ user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies
|
|
|
|
|
/* 7003: disable non-modern cipher suites [1]
|
|
|
|
|
* [WHY] Passive fingerprinting. Minimal/non-existent threat of downgrade attacks
|
|
|
|
|
* [1] https://browserleaks.com/ssl ***/
|
|
|
|
|
// user_pref("security.ssl3.ecdhe_ecdsa_aes_256_sha", false);
|
|
|
|
|
// user_pref("security.ssl3.ecdhe_ecdsa_aes_128_sha", false);
|
|
|
|
|
// user_pref("security.ssl3.ecdhe_ecdsa_aes_128_sha", false); // [DEFAULT: false FF109+]
|
|
|
|
|
// user_pref("security.ssl3.ecdhe_ecdsa_aes_256_sha", false); // [DEFAULT: false FF109+]
|
|
|
|
|
// user_pref("security.ssl3.ecdhe_rsa_aes_128_sha", false);
|
|
|
|
|
// user_pref("security.ssl3.ecdhe_rsa_aes_256_sha", false);
|
|
|
|
|
// user_pref("security.ssl3.rsa_aes_128_gcm_sha256", false); // no PFS
|
|
|
|
@ -1097,7 +1076,7 @@ user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies
|
|
|
|
|
/* 7005: disable SSL session IDs [FF36+]
|
|
|
|
|
* [WHY] Passive fingerprinting and perf costs. These are session-only
|
|
|
|
|
* and isolated with network partitioning (FF85+) and/or containers ***/
|
|
|
|
|
// user_pref("security.ssl.disable_session_identifiers", true); // [HIDDEN PREF in FF101 or lower]
|
|
|
|
|
// user_pref("security.ssl.disable_session_identifiers", true);
|
|
|
|
|
/* 7006: onions
|
|
|
|
|
* [WHY] Firefox doesn't support hidden services. Use Tor Browser ***/
|
|
|
|
|
// user_pref("dom.securecontext.allowlist_onions", true); // [FF97+] 1382359/1744006
|
|
|
|
@ -1146,8 +1125,7 @@ user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies
|
|
|
|
|
// user_pref("privacy.trackingprotection.cryptomining.enabled", true); // [DEFAULT: true]
|
|
|
|
|
// user_pref("privacy.trackingprotection.fingerprinting.enabled", true); // [DEFAULT: true]
|
|
|
|
|
/* 7017: disable service workers
|
|
|
|
|
* [WHY] Already isolated (FF96+) with TCP (2701) behind a pref (2710)
|
|
|
|
|
* or blocked with TCP in 3rd parties (FF95 or lower) ***/
|
|
|
|
|
* [WHY] Already isolated with TCP (2701) behind a pref (2710) ***/
|
|
|
|
|
// user_pref("dom.serviceWorkers.enabled", false);
|
|
|
|
|
/* 7018: disable Web Notifications
|
|
|
|
|
* [WHY] Web Notifications are behind a prompt (7002)
|
|
|
|
@ -1159,6 +1137,13 @@ user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies
|
|
|
|
|
* [NOTE] To remove all subscriptions, reset "dom.push.userAgentID"
|
|
|
|
|
* [1] https://support.mozilla.org/kb/push-notifications-firefox ***/
|
|
|
|
|
// user_pref("dom.push.enabled", false);
|
|
|
|
|
/* 7020: disable WebRTC (Web Real-Time Communication)
|
|
|
|
|
* [WHY] Firefox desktop uses mDNS hostname obfuscation and the private IP is never exposed until
|
|
|
|
|
* required in TRUSTED scenarios; i.e. after you grant device (microphone or camera) access
|
|
|
|
|
* [TEST] https://browserleaks.com/webrtc
|
|
|
|
|
* [1] https://groups.google.com/g/discuss-webrtc/c/6stQXi72BEU/m/2FwZd24UAQAJ
|
|
|
|
|
* [2] https://datatracker.ietf.org/doc/html/draft-ietf-mmusic-mdns-ice-candidates#section-3.1.1 ***/
|
|
|
|
|
// user_pref("media.peerconnection.enabled", false);
|
|
|
|
|
|
|
|
|
|
/*** [SECTION 8000]: DON'T BOTHER: FINGERPRINTING
|
|
|
|
|
[WHY] They are insufficient to help anti-fingerprinting and do more harm than good
|
|
|
|
@ -1198,6 +1183,9 @@ user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", fa
|
|
|
|
|
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
|
|
|
|
|
/* 9003: disable What's New toolbar icon [FF69+] ***/
|
|
|
|
|
user_pref("browser.messaging-system.whatsNewPanel.enabled", false);
|
|
|
|
|
/* 9004: disable search terms [FF110+]
|
|
|
|
|
* [SETTING] Search>Search Bar>Use the address bar for search and navigation>Show search terms instead of URL... ***/
|
|
|
|
|
user_pref("browser.urlbar.showSearchTerms.enabled", false);
|
|
|
|
|
|
|
|
|
|
/*** [SECTION 9999]: DEPRECATED / REMOVED / LEGACY / RENAMED
|
|
|
|
|
Documentation denoted as [-]. Items deprecated prior to FF91 have been archived at [1]
|
|
|
|
@ -1205,9 +1193,9 @@ user_pref("browser.messaging-system.whatsNewPanel.enabled", false);
|
|
|
|
|
***/
|
|
|
|
|
user_pref("_user.js.parrot", "9999 syntax error: the parrot's shuffled off 'is mortal coil!");
|
|
|
|
|
/* ESR102.x still uses all the following prefs
|
|
|
|
|
// [NOTE] replace the * with a slash in the line above to re-enable them
|
|
|
|
|
// [NOTE] replace the * with a slash in the line above to re-enable active ones
|
|
|
|
|
// FF103
|
|
|
|
|
// 2801: delete cookies and site data on exit - replaced by sanitizeOnShutdown* (2810)
|
|
|
|
|
// 2801: delete cookies and site data on exit - replaced by sanitizeOnShutdown* (2810)
|
|
|
|
|
// 0=keep until they expire (default), 2=keep until you close Firefox
|
|
|
|
|
// [SETTING] Privacy & Security>Cookies and Site Data>Delete cookies and site data when Firefox is closed
|
|
|
|
|
// [-] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1681493,1681495,1681498,1759665,1764761
|
|
|
|
@ -1215,6 +1203,24 @@ user_pref("network.cookie.lifetimePolicy", 2);
|
|
|
|
|
// 6012: disable SHA-1 certificates
|
|
|
|
|
// [-] https://bugzilla.mozilla.org/1766687
|
|
|
|
|
// user_pref("security.pki.sha1_enforcement_level", 1); // [DEFAULT: 1]
|
|
|
|
|
// FF114
|
|
|
|
|
// 2816: set cache to clear on exit [FF96+]
|
|
|
|
|
// [NOTE] We already disable disk cache (1001) and clear on exit (2811) which is more robust
|
|
|
|
|
// [1] https://bugzilla.mozilla.org/1671182
|
|
|
|
|
// [-] https://bugzilla.mozilla.org/1821651
|
|
|
|
|
// user_pref("privacy.clearsitedata.cache.enabled", true);
|
|
|
|
|
// 4505: experimental RFP [FF91+]
|
|
|
|
|
// [-] https://bugzilla.mozilla.org/1824235
|
|
|
|
|
// user_pref("privacy.resistFingerprinting.testGranularityMask", 0);
|
|
|
|
|
// 5017: disable Form Autofill heuristics
|
|
|
|
|
// Heuristics controls Form Autofill on forms without @autocomplete attributes
|
|
|
|
|
// [-] https://bugzilla.mozilla.org/1829670
|
|
|
|
|
// user_pref("extensions.formautofill.heuristics.enabled", false); // [FF55+]
|
|
|
|
|
// FF115
|
|
|
|
|
// 7001: disable offline cache (appCache)
|
|
|
|
|
// [NOTE] appCache storage capability was removed in FF90
|
|
|
|
|
// [-] https://bugzilla.mozilla.org/1677718
|
|
|
|
|
// user_pref("browser.cache.offline.enable", false);
|
|
|
|
|
// ***/
|
|
|
|
|
|
|
|
|
|
/* END: internal custom pref to test for syntax errors ***/
|
|
|
|
|