Untitled diff

Created Diff never expires
82 removals
359 lines
90 additions
355 lines
<p align="center">
<p align="center">
<a href="https://github.com/intika/Librefox-Firefox/"><img width="727" src="https://img.shields.io/badge/Librefox-Firefox-lightgray.svg?logo=appveyor&longCache=true&style=popout"></a>
<a href="https://github.com/intika/Librefox-Firefox/"><img width="727" src="https://img.shields.io/badge/Librefox-Firefox-lightgray.svg?logo=appveyor&longCache=true&style=popout"></a>
</p>
</p>
<p align="center">
<p align="center">
<a href="https://github.com/intika/Librefox-Firefox/releases"><img src="https://img.shields.io/badge/Version-2.1--64.0-green.svg"></a> <a href="https://www.opendesktop.org/p/1275853/" target="_blank"><img src="https://img.shields.io/badge/Downloads-+%20150-green.svg"></a> <a href="https://github.com/intika/Librefox-Firefox/commits/master"><img src="https://img.shields.io/badge/Maintained%20%3F-Yes-green.svg"></a> <a href="https://github.com/intika/Librefox-Firefox/issues?q=is%3Aissue+is%3Aclosed"><img src="https://img.shields.io/badge/Solved%20Issues-9-green.svg"></a> <a href="https://www.mozilla.org/en-US/MPL/2.0/" target="_blank"><img src="https://img.shields.io/badge/License-Mozilla--MLP2-blue.svg"></a> <a href="https://www.mozilla.org/en-US/MPL/" target="_blank"><img src="https://badges.frapsoft.com/os/v2/open-source.png?v=103"></a>
<a href="https://github.com/intika/Librefox-Firefox/releases"><img src="https://img.shields.io/badge/Version-2.1--64.0-green.svg"></a> <a href="https://www.opendesktop.org/p/1275853/" target="_blank"><img src="https://img.shields.io/badge/Downloads-+%20150-green.svg"></a> <a href="https://github.com/intika/Librefox-Firefox/commits/master"><img src="https://img.shields.io/badge/Maintained%20%3F-Yes-green.svg"></a> <a href="https://github.com/intika/Librefox-Firefox/issues?q=is%3Aissue+is%3Aclosed"><img src="https://img.shields.io/badge/Solved%20Issues-9-green.svg"></a> <a href="https://www.mozilla.org/en-US/MPL/2.0/" target="_blank"><img src="https://img.shields.io/badge/License-Mozilla--MLP2-blue.svg"></a> <a href="https://www.mozilla.org/en-US/MPL/" target="_blank"><img src="https://badges.frapsoft.com/os/v2/open-source.png?v=103"></a>
</p>
</p>


---
---


Librefox : Official Firefox With Freedom [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Librefox%2C%20official%20firefox%20with%20a%20better%20privacy%2C%20security%20and%20performance&url=https://github.com/intika/Librefox-Firefox&via=intika&hashtags=firefox,librefox,browser,privacy,developers)
Librefox : Official Firefox With Freedom [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Librefox%2C%20official%20firefox%20with%20a%20better%20privacy%2C%20security%20and%20performance&url=https://github.com/intika/Librefox-Firefox&via=intika&hashtags=firefox,librefox,browser,privacy,developers)
----------------------------------------
----------------------------------------


This project aim to fix privacy and security issues related to firefox without losing performances nor forking the project. It uses `local-settings.js`, `mozilla.cfg` and `policies.json`.
This project aims to fix privacy and security issues related to Firefox without losing performance nor forking the project. It uses `local-settings.js`, `mozilla.cfg` and `policies.json`.


Features :
Features :
----------
----------
Librefox uses [gHacks](https://github.com/ghacksuserjs/ghacks-user.js) settings, additional privacy, performance settings and a cleaned bundle of firefox (updater, crashreporter and integrated addons that don't respect privacy are removed) to provide :
Librefox uses [gHacks](https://github.com/ghacksuserjs/ghacks-user.js) settings, additional privacy, performance settings and a cleaned bundle of Firefox (updater, crashreporter and integrated addons that don't respect privacy are removed) to provide:


- Performances
- Performance
- Security
- Security
- Privacy
- Privacy


---
---


Index :
Index :
-------
-------
<pre>
<pre>
<a href="https://github.com/intika/Librefox-Firefox/#features-"
<a href="https://github.com/intika/Librefox-Firefox/#features-"
>> Librefox : Features ............................................................... </a>
>> Librefox : Features ............................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#key-features-v2x-"
<a href="https://github.com/intika/Librefox-Firefox/#key-features-v2x-"
>> Librefox : Key Features v2.x ...................................................... </a>
>> Librefox : Key Features v2.x ...................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#download-"
<a href="https://github.com/intika/Librefox-Firefox/#download-"
>> Librefox : Download ............................................................... </a>
>> Librefox : Download ............................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#capture-"
<a href="https://github.com/intika/Librefox-Firefox/#capture-"
>> Librefox : Capture ................................................................ </a>
>> Librefox : Capture ................................................................ </a>
<a href="https://github.com/intika/Librefox-Firefox/#librefox-addons-"
<a href="https://github.com/intika/Librefox-Firefox/#librefox-addons-"
>> Addons : Librefox Addons .......................................................... </a>
>> Addons : Librefox Addons .......................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#recommended-addons-"
<a href="https://github.com/intika/Librefox-Firefox/#recommended-addons-"
>> Addons : Recommended Addons ....................................................... </a>
>> Addons : Recommended Addons ....................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#recommended-addons-settings-"
<a href="https://github.com/intika/Librefox-Firefox/#recommended-addons-settings-"
>> Addons : Recommended Addons Settings .............................................. </a>
>> Addons : Recommended Addons Settings .............................................. </a>
<a href="https://github.com/intika/Librefox-Firefox/#reviewing-extensions-code-"
<a href="https://github.com/intika/Librefox-Firefox/#reviewing-extensions-code-"
>> Addons : Reviewing Addons Source Code ............................................. </a>
>> Addons : Reviewing Addons Source Code ............................................. </a>
<a href="https://github.com/intika/Librefox-Firefox/#other-addons-"
<a href="https://github.com/intika/Librefox-Firefox/#other-addons-"
>> Addons : Other Useful Addons Listing .............................................. </a>
>> Addons : Other Useful Addons Listing .............................................. </a>
<a href="https://github.com/intika/Librefox-Firefox/#extensions-firewall-"
<a href="https://github.com/intika/Librefox-Firefox/#extensions-firewall-"
>> Wiki : Extensions Network Firewall ................................................ </a>
>> Wiki : Extensions Network Firewall ................................................ </a>
<a href="https://github.com/intika/Librefox-Firefox/#ijwy-i-just-want-you-to-shut-up-"
<a href="https://github.com/intika/Librefox-Firefox/#ijwy-i-just-want-you-to-shut-up-"
>> Wiki : IJWY (I Just Want You To Shut Up) .......................................... </a>
>> Wiki : IJWY (I Just Want You To Shut Up) .......................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#apply-librefox-manually-"
<a href="https://github.com/intika/Librefox-Firefox/#apply-librefox-manually-"
>> Wiki : Apply Librefox Manually .................................................... </a>
>> Wiki : Apply Librefox Manually .................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#edit-locked-settings-"
<a href="https://github.com/intika/Librefox-Firefox/#edit-locked-settings-"
>> Wiki : Edit Locked Settings ....................................................... </a>
>> Wiki : Edit Locked Settings ....................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#settings-index-"
<a href="https://github.com/intika/Librefox-Firefox/#settings-index-"
>> Wiki : Settings Index ............................................................. </a>
>> Wiki : Settings Index ............................................................. </a>
<a href="https://github.com/intika/Librefox-Firefox/#cookies-settings-"
<a href="https://github.com/intika/Librefox-Firefox/#cookies-settings-"
>> Wiki : Cookies Settings ........................................................... </a>
>> Wiki : Cookies Settings ........................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#tracking-protection-"
<a href="https://github.com/intika/Librefox-Firefox/#tracking-protection-"
>> Wiki : Tracking Protection ........................................................ </a>
>> Wiki : Tracking Protection ........................................................ </a>
<a href="https://github.com/intika/Librefox-Firefox/#comparing-changes-and-updates-"
<a href="https://github.com/intika/Librefox-Firefox/#comparing-changes-and-updates-"
>> Wiki : Comparing Changes And Updates .............................................. </a>
>> Wiki : Comparing Changes And Updates .............................................. </a>
<a href="https://github.com/intika/Librefox-Firefox/#documentation-"
<a href="https://github.com/intika/Librefox-Firefox/#documentation-"
>> Wiki : Documentation .............................................................. </a>
>> Wiki : Documentation .............................................................. </a>
<a href="https://github.com/intika/Librefox-Firefox/#librefox-dark-theme-"
<a href="https://github.com/intika/Librefox-Firefox/#librefox-dark-theme-"
>> Wiki : Librefox Dark Theme ........................................................ </a>
>> Wiki : Librefox Dark Theme ........................................................ </a>
<a href="https://github.com/intika/Librefox-Firefox/#tuning-librefox--"
<a href="https://github.com/intika/Librefox-Firefox/#tuning-librefox--"
>> Wiki : Tuning Librefox ............................................................ </a>
>> Wiki : Tuning Librefox ............................................................ </a>
<a href="https://github.com/intika/Librefox-Firefox/#librefox-esr-"
<a href="https://github.com/intika/Librefox-Firefox/#librefox-esr-"
>> Wiki : Librefox ESR ............................................................... </a>
>> Wiki : Librefox ESR ............................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#tor-compatibility-"
<a href="https://github.com/intika/Librefox-Firefox/#tor-compatibility-"
>> Wiki : Tor Compatibility .......................................................... </a>
>> Wiki : Tor Compatibility .......................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#drm-compatibility-"
<a href="https://github.com/intika/Librefox-Firefox/#drm-compatibility-"
>> Wiki : DRM Compatibility .......................................................... </a>
>> Wiki : DRM Compatibility .......................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#building-and-packaging-"
<a href="https://github.com/intika/Librefox-Firefox/#building-and-packaging-"
>> Wiki : Building And Packaging ..................................................... </a>
>> Wiki : Building And Packaging ..................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#browser-tests--securityfingerprint-"
<a href="https://github.com/intika/Librefox-Firefox/#browser-tests--securityfingerprint-"
>> Browser Tests : Security/Fingerprint .............................................. </a>
>> Browser Tests : Security/Fingerprint .............................................. </a>
<a href="https://github.com/intika/Librefox-Firefox/#browser-tests--performances-"
<a href="https://github.com/intika/Librefox-Firefox/#browser-tests--performances-"
>> Browser Tests : Performances ...................................................... </a>
>> Browser Tests : Performance ....................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#browser-tests--dnsvpnproxy-leak-"
<a href="https://github.com/intika/Librefox-Firefox/#browser-tests--dnsvpnproxy-leak-"
>> Browser Tests : DNS/VPN/Proxy Leak ................................................ </a>
>> Browser Tests : DNS/VPN/Proxy Leak ................................................ </a>
<a href="https://github.com/intika/Librefox-Firefox/#librefox-roadmap-"
<a href="https://github.com/intika/Librefox-Firefox/#librefox-roadmap-"
>> Infos : Librefox Roadmap .......................................................... </a>
>> Infos : Librefox Roadmap .......................................................... </a>
<a href="https://github.com/intika/Librefox-Firefox/#changelog-"
<a href="https://github.com/intika/Librefox-Firefox/#changelog-"
>> Infos : Changelog ................................................................. </a>
>> Infos : Changelog ................................................................. </a>
<a href="https://github.com/intika/Librefox-Firefox/#about-"
<a href="https://github.com/intika/Librefox-Firefox/#about-"
>> Infos : About ..................................................................... </a>
>> Infos : About ..................................................................... </a>
</pre>
</pre>


Download :
Download :
----------
----------
Official builds with librefox
Official builds with Librefox.


(Project was renamed to librefox on v2)
(Project was renamed to Librefox on v2)


- [Privafox-1.8-Firefox-Linux-63.0.3.tar.bz2](https://github.com/intika/Librefox-Firefox/releases/download/Privafox-v1.8-v63.0.3/Privafox-1.8-Firefox-Linux-63.0.3.tar.bz2) - 51.8 MB - SHA1 : 321152189184ca9e2b3500a0aa5c5c47aff5999f
- [Privafox-1.8-Firefox-Linux-63.0.3.tar.bz2](https://github.com/intika/Librefox-Firefox/releases/download/Privafox-v1.8-v63.0.3/Privafox-1.8-Firefox-Linux-63.0.3.tar.bz2) - 51.8 MB - SHA1 : 321152189184ca9e2b3500a0aa5c5c47aff5999f


- [Privafox-1.8-Firefox-Windows-63.0.3.zip](https://github.com/intika/Librefox-Firefox/releases/download/Privafox-v1.8-v63.0.3/Privafox-1.8-Firefox-Windows-63.0.3.zip) - 60.3 MB - SHA1 : 4dba7913435d5517f4e10f7b55aa395e5088b143
- [Privafox-1.8-Firefox-Windows-63.0.3.zip](https://github.com/intika/Librefox-Firefox/releases/download/Privafox-v1.8-v63.0.3/Privafox-1.8-Firefox-Windows-63.0.3.zip) - 60.3 MB - SHA1 : 4dba7913435d5517f4e10f7b55aa395e5088b143


- [Privafox-1.8-Firefox-Mac-63.0.3.dmg](https://github.com/intika/Librefox-Firefox/releases/download/Privafox-v1.8-v63.0.3/Privafox-1.8-Firefox-Mac-63.0.3.dmg) - 60.5 MB - SHA1 : e693b9141098456a419ed7fb71f4b8c42001cde9
- [Privafox-1.8-Firefox-Mac-63.0.3.dmg](https://github.com/intika/Librefox-Firefox/releases/download/Privafox-v1.8-v63.0.3/Privafox-1.8-Firefox-Mac-63.0.3.dmg) - 60.5 MB - SHA1 : e693b9141098456a419ed7fb71f4b8c42001cde9


Beta/alpha releases (soon)
Beta/alpha releases (soon)


- Librefox-2.0B-Firefox-Linux-63.0.3.tar.bz2[](https://github.com/intika/Librefox-Firefox/releases/download/Librefox-v2.0B-v63.0.3/Librefox-2.0B-Firefox-Linux-63.0.3.tar.bz2) - 51.8 MB - SHA1 : 321152189184ca9e2b3500a0aa5c5c47aff5999f
- Librefox-2.0B-Firefox-Linux-63.0.3.tar.bz2[](https://github.com/intika/Librefox-Firefox/releases/download/Librefox-v2.0B-v63.0.3/Librefox-2.0B-Firefox-Linux-63.0.3.tar.bz2) - 51.8 MB - SHA1 : 321152189184ca9e2b3500a0aa5c5c47aff5999f


- Librefox-2.0B-Firefox-Windows-63.0.3.zip[](https://github.com/intika/Librefox-Firefox/releases/download/Librefox-v2.0B-v63.0.3/Librefox-2.0B-Firefox-Windows-63.0.3.zip) - 60.3 MB - SHA1 : 4dba7913435d5517f4e10f7b55aa395e5088b143
- Librefox-2.0B-Firefox-Windows-63.0.3.zip[](https://github.com/intika/Librefox-Firefox/releases/download/Librefox-v2.0B-v63.0.3/Librefox-2.0B-Firefox-Windows-63.0.3.zip) - 60.3 MB - SHA1 : 4dba7913435d5517f4e10f7b55aa395e5088b143


- Librefox-2.0B-Firefox-Mac-63.0.3.dmg[](https://github.com/intika/Librefox-Firefox/releases/download/Librefox-v2.0B-v63.0.3/Librefox-2.0B-Firefox-Mac-63.0.3.dmg) - 60.5 MB - SHA1 : e693b9141098456a419ed7fb71f4b8c42001cde9
- Librefox-2.0B-Firefox-Mac-63.0.3.dmg[](https://github.com/intika/Librefox-Firefox/releases/download/Librefox-v2.0B-v63.0.3/Librefox-2.0B-Firefox-Mac-63.0.3.dmg) - 60.5 MB - SHA1 : e693b9141098456a419ed7fb71f4b8c42001cde9


Capture :
Capture :
---------
---------
<p align="center">
<p align="center">
<img width="650" src="https://raw.githubusercontent.com/intika/Librefox-Firefox/master/capture.png">
<img width="650" src="https://raw.githubusercontent.com/intika/Librefox-Firefox/master/capture.png">
</p>
</p>


Librefox Addons :
Librefox Addons :
-----------------
-----------------
Librefox addons are not bundeled and need to be installed manually
Librefox addons are not bundled and need to be installed manually


- [Librefox Dark Theme](https://addons.mozilla.org/en-US/firefox/addon/librefox-dark-theme/) : Dark theme
- [Librefox Dark Theme](https://addons.mozilla.org/en-US/firefox/addon/librefox-dark-theme/) : Dark theme
- [Librefox HTTP Watcher](https://addons.mozilla.org/en-US/firefox/addon/librefox-http-watcher-red-flag/) : Change the url bar color on http sites
- [Librefox HTTP Watcher](https://addons.mozilla.org/en-US/firefox/addon/librefox-http-watcher-red-flag/) : Change the url bar color on HTTP sites
- [Librefox Reload Button](https://addons.mozilla.org/en-US/firefox/addon/librefox-reload-button-url-bar/) : Add a reload button to url bar
- [Librefox Reload Button](https://addons.mozilla.org/en-US/firefox/addon/librefox-reload-button-url-bar/) : Add a reload button to the URL bar


Recommended Addons :
Recommended Addons :
--------------------
--------------------
Recommended addons are not bundeled and need to be installed manually
Recommended addons are not bundeled and need to be installed manually


- [Cookie Master](https://addons.mozilla.org/en-US/firefox/addon/cookiemaster/) : Block all cookies and only allow authorised sites
- [Cookie Master](https://addons.mozilla.org/en-US/firefox/addon/cookiemaster/) : Block all cookies and only allow authorized sites
- [First Party Isolation](https://addons.mozilla.org/en-US/firefox/addon/first-party-isolation/) : Enable/Disable FPI with a button
- [First Party Isolation](https://addons.mozilla.org/en-US/firefox/addon/first-party-isolation/) : Enable/Disable FPI with the click of a button
- [User Agent Platform Spoofer](https://addons.mozilla.org/en-US/firefox/addon/user-agent-platform-spoofer/) : Invert UserAgent OS Linux/Windows/Mac
- [User Agent Platform Spoofer](https://addons.mozilla.org/en-US/firefox/addon/user-agent-platform-spoofer/) : Spoof UserAgent OS (Linux/Windows/Mac)
- [Browser Plugs Privacy Firewall](https://addons.mozilla.org/en-US/firefox/addon/browser-plugs-privacy-firewall/) : Sets of settings to prevent fingerprintings and security issues
- [Browser Plugs Privacy Firewall](https://addons.mozilla.org/en-US/firefox/addon/browser-plugs-privacy-firewall/) : Sets of settings to prevent fingerprinting and security issues
- [uBock Origin](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/) [+ IDCAC List](https://www.i-dont-care-about-cookies.eu/) [+ Nano-Defender List](https://jspenguin2017.github.io/uBlockProtector/#extra-installation-steps-for-ublock-origin) : Block web advertisement and tracking
- [uBock Origin](https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/) [+ IDCAC List](https://www.i-dont-care-about-cookies.eu/) [+ Nano-Defender List](https://jspenguin2017.github.io/uBlockProtector/#extra-installation-steps-for-ublock-origin) : Block web advertisement and tracking


Recommended Addons Settings :
Recommended Addons Settings :
-----------------------------
-----------------------------
`uBlock` : Additional filters are availables here https://filterlists.com/ (don't surcharge it to avoid performances loss)
`uBlock` : Additional filters are available here: https://filterlists.com/ (don't surcharge it to avoid performance loss)


`Browser Plugs Privacy Firewall` : Keep settings light to make `privacy.resistFingerprinting` efficient because too much customization lead to uniqueness thus easy fingerprinting.
`Browser Plugs Privacy Firewall` : Keep settings light to make `privacy.resistFingerprinting` efficient because too much customization will lead to uniqueness and therefore easy fingerprinting.
```
```
- Privacy / Fingerprint / Fake values for getClientRects
- Privacy / Fingerprint / Fake values for getClientRects
- Privacy / Fingerprint / Randomize Canvas Fingerprint
- Privacy / Fingerprint / Randomize Canvas Fingerprint
- Privacy / Fingerprint / 100% Randomize ALL Fingerprint Hash
- Privacy / Fingerprint / 100% Randomize ALL Fingerprint Hash
- Firewall / Experimental / Block SVG getBBox and getComputedTextLength
- Firewall / Experimental / Block SVG getBBox and getComputedTextLength
- Privacy / Font / Randomize
- Privacy / Font / Randomize
- Privacy / Font / Enable protection for font and glyph fingerprinting
- Privacy / Font / Enable protection for font and glyph fingerprinting
```
```
Key Features v2.x :
Key Features v2.x :
-------------------
-------------------
- Updated [gHacks](https://github.com/ghacksuserjs/ghacks-user.js) settings
- Updated [gHacks](https://github.com/ghacksuserjs/ghacks-user.js) settings
- Enforcing/Defaulting Settings (Cannot/Can be changed within firefox)
- Enforcing/Defaulting Settings (Cannot/Can be changed within firefox)
- "IJWY To Shut Up" settings ([details](https://github.com/intika/Librefox-Firefox/#ijwy-i-just-want-you-to-shut-up-))
- "IJWY To Shut Up" Settings ([details](https://github.com/intika/Librefox-Firefox/#ijwy-i-just-want-you-to-shut-up-))
- Limit internet access for extensions ([test-feature](https://github.com/intika/Librefox-Firefox/#extensions-firewall-))
- Limit internet access for extensions ([test-feature](https://github.com/intika/Librefox-Firefox/#extensions-firewall-))
- Performances aware settings
- Performance aware settings
- Disabling telemetry
- Disable telemetry
- Disabling call
- Disable call
...
...


Reviewing Extensions Code :
Reviewing Extensions Code :
---------------------------
---------------------------
Recommended extensions code have been reviewed for potential unwanted behaviour... reviewed version are available under [extensions](https://github.com/intika/Librefox-Firefox/tree/master/extensions) directory
Recommended extensions code have been reviewed for potential unwanted behaviour... reviewed version are available under [extensions](https://github.com/intika/Librefox-Firefox/tree/master/extensions) directory.


Extensions Firewall :
Extensions Firewall :
---------------------
---------------------
**Description :**
**Description :**


*This is a test experiment feature and it is disabled by default !!!* A new section `Extensions Manager` is added to mange addons globally (and addons networking in the subsection `Extensions Firewalling`). Firewalling the network for addons is doable, but it require a considerable additional work in Librefox to make it usable through a button or in a per addon basis (this may or may not be added in a future version, it also could be abandoned as it is a test feature). Currently you can block a list of domains or block the whole network for all the extensions.
*This is a test experiment feature and it is disabled by default !!!* A new section `Extensions Manager` is added to manage addons globally (and addons networking in the subsection `Extensions Firewalling`). Firewalling the network for addons is doable, but it requires a considerable amount of additional work in Librefox to make it usable through a button or in a per addon basis (this may or may not be added in a future version, it also could be abandoned as it is a test feature). Currently you can block a list of domains or block the whole network for all the extensions.


**Quickly Enable It :**
**Quickly Enable It :**


To enable the feature and block the network for all the extensions open `mozilla.cfg` search for `Enable-Firewall-Feature-In-The-Next-Line` en remove the `//` in the next line
To enable the feature and block the network for all the extensions open `mozilla.cfg` search for `Enable-Firewall-Feature-In-The-Next-Line` and remove the `//` in the next line


**The Settings :**
**The Settings :**


Available native network restriction settings for addons :
Available native network restriction settings for addons :


- Restricted domains list : `extensions.webextensions.restrictedDomains` this is a list of restricted domains that will be used to block some hosts for all the extensions, firefox uses this setting to block extensions from accessing mozilla's domains/sites, by default in Librefox this setting is set to allow extensions to access all the web (You can edit that list to match your needs or to block a specific domain, note that the domain name have to be 'exact' for instance facebook.com will only block facebook.com not mobile.fabcebook.com)
- Restricted domains list : `extensions.webextensions.restrictedDomains` this is a list of restricted domains that will be used to block some hosts for all the extensions, firefox uses this setting to block extensions from accessing mozilla's domains/sites, by default in Librefox this setting is set to allow extensions to access all the web (You can edit that list to match your needs or to block a specific domain, note that the domain name has to be 'exact' (for instance facebook.com will only block facebook.com not mobile.facebook.com)
- Content security policy : `extensions.webextensions.base-content-security-policy` and `extensions.webextensions.default-content-security-policy` the later settings can be redefined/changed within an extension so it's not efficient for a firewalling purpose. CSP settings are used in firefox as an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement to distribution of malware; In short words CSP settings block and allow certain domains under certain circumstances and thus could be used to firewall the extensions ([CSP Documentations](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), its [sources code](https://code.compassfoundation.io/general/mozilla-central/commit/623a4f866576815dfcbab26323d13b7144806bdf?view=inline&w=1) and [implementation](https://github.com/mozilla/gecko/blob/central/toolkit/components/extensions/ExtensionPolicyService.cpp))
- Content security policy : `extensions.webextensions.base-content-security-policy` and `extensions.webextensions.default-content-security-policy` the later settings can be redefined/changed within an extension so it's not efficient for firewall purposes. CSP settings are used in firefox as an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement to distribution of malware; In short: CSP settings block and allow certain domains under certain circumstances and thus could be used to firewall the extensions ([CSP Documentations](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), its [sources code](https://code.compassfoundation.io/general/mozilla-central/commit/623a4f866576815dfcbab26323d13b7144806bdf?view=inline&w=1) and [implementation](https://github.com/mozilla/gecko/blob/central/toolkit/components/extensions/ExtensionPolicyService.cpp))


**Wiki - Blocking a domain :**
**Wiki - Blocking a domain :**


Edit the restricted domains setting as follow under the `about:config` page :
Edit the restricted domains setting as follow under the `about:config` page :


- Restricted Domains Setting : `extensions.webextensions.restrictedDomains` Value : `ExactDomains1,ExactDomains2,ExactDomains3` etc.
- Restricted Domains Setting : `extensions.webextensions.restrictedDomains` Value : `ExactDomains1,ExactDomains2,ExactDomains3` etc.
**Wiki - Blocking the network :**
**Wiki - Blocking the network :**


Note that this will block the network access for all the extensions and a lot of extensions needs to be connected to work. In the current version of Librefox you can block the network for all the extensions or allow it for all of them, a future version may provide additional features like "per addon" setting (By default Librefox allow networking for extensions).
Note that this will block the network access for all the extensions and a lot of extensions needs to be connected in order to work. In the current version of Librefox you can block the network for all the extensions or allow it for all of them, a future version may provide additional features like "per addon" setting (By default Librefox allows networking for extensions).


To block or allow the network access for the extensions change the following settings according to your needs in `about:config` :
To block or allow the network access for the extensions change the following settings according to your needs in `about:config` :


- Block : CSP Setting : `extensions.webextensions.base-content-security-policy` Value : `extensions.webextensions.base-content-security-policy", "default-src 'self' moz-extension: blob: filesystem: 'unsafe-eval' 'unsafe-inline'; script-src 'self' moz-extension: blob: filesystem: 'unsafe-eval' 'unsafe-inline'; object-src 'self' moz-extension: blob: filesystem:;`
- Block : CSP Setting : `extensions.webextensions.base-content-security-policy` Value : `extensions.webextensions.base-content-security-policy", "default-src 'self' moz-extension: blob: filesystem: 'unsafe-eval' 'unsafe-inline'; script-src 'self' moz-extension: blob: filesystem: 'unsafe-eval' 'unsafe-inline'; object-src 'self' moz-extension: blob: filesystem:;`
- Allow : CSP Setting : `extensions.webextensions.base-content-security-policy` Value : default (right click and reset)
- Allow : CSP Setting : `extensions.webextensions.base-content-security-policy` Value : default (right click and reset)


**Wiki - More infos :**
**Wiki - More infos :**


Check `debug-check-todo.log` for additional infos about future version and researches about the subject. Also check [CSP Documentations](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), its [sources code](https://code.compassfoundation.io/general/mozilla-central/commit/623a4f866576815dfcbab26323d13b7144806bdf?view=inline&w=1) and [implementation](https://github.com/mozilla/gecko/blob/central/toolkit/components/extensions/ExtensionPolicyService.cpp)
Check `debug-check-todo.log` for additional info about future version and researches about the subject. Also check [CSP Documentations](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), its [sources code](https://code.compassfoundation.io/general/mozilla-central/commit/623a4f866576815dfcbab26323d13b7144806bdf?view=inline&w=1) and [implementation](https://github.com/mozilla/gecko/blob/central/toolkit/components/extensions/ExtensionPolicyService.cpp)


IJWY (I Just Want You To Shut Up) :
IJWY (I Just Want You To Shut Up) :
-----------------------------------
-----------------------------------
This is a set of settings that aim to remove all the servers links embedded in firefox and other calling home functions in the purpose of blocking un-needed connections. The objective is zero unauthorized connection (ping/telemetry/mozilla/google...).
This is a set of settings that aim to remove all the server links embedded in Firefox and other calling home functions in the purpose of blocking un-needed connections. The objective is zero unauthorized connections (ping/telemetry/Mozilla/Google...).


Changelog :
Changelog :
-----------
-----------
Available in the [releases page](https://github.com/intika/Librefox-Firefox/releases)
Available in the [releases page](https://github.com/intika/Librefox-Firefox/releases)


Apply Librefox Manually :
Apply Librefox Manually :
-------------------------
-------------------------
- Copy `mozilla.cfg` to `/firefox-install-dir/`
- Copy `mozilla.cfg` to `/firefox-install-dir/`
- Copy `local-settings.js` to `/firefox-install-dir/defaults/pref/`
- Copy `local-settings.js` to `/firefox-install-dir/defaults/pref/`
- Copy `policies.json` to `/firefox-install-dir/distribution/`
- Copy `policies.json` to `/firefox-install-dir/distribution/`
- If destination directories does not exist create them
- If destination directories does not exist create them
- Setup the rest of the settings as you wish in `about:preferences`
- Setup the rest of the settings as you wish in `about:preferences`
- Delete the following files
- Delete the following files:
```
```
firefox/browser/features/aushelper@mozilla.org.xpi
firefox/browser/features/aushelper@mozilla.org.xpi
firefox/browser/features/firefox@getpocket.com.xpi
firefox/browser/features/firefox@getpocket.com.xpi
firefox/browser/features/onboarding@mozilla.org.xpi
firefox/browser/features/onboarding@mozilla.org.xpi
firefox/browser/features/webcompat-reporter@mozilla.org.xpi
firefox/browser/features/webcompat-reporter@mozilla.org.xpi
firefox/browser/features/webcompat@mozilla.org.xpi
firefox/browser/features/webcompat@mozilla.org.xpi
firefox/update-settings.ini
firefox/update-settings.ini
firefox/updater.ini
firefox/updater.ini
firefox/updater
firefox/updater
firefox/crashreporter.ini
firefox/crashreporter.ini
firefox/crashreporter
firefox/crashreporter
```
```


Edit Locked Settings :
Edit Locked Settings :
----------------------
----------------------
Just edit `mozilla.cfg` save and restart firefox
Just edit `mozilla.cfg`, save and restart Firefox.


Browser Tests : Security/Fingerprint :
Browser Tests : Security/Fingerprint :
----------------------------------------------
----------------------------------------------
Firefox 60 and `privacy.resistFingerprinting` are relatively new give it sometimes to be more widely used and thus less finger-printable; If you are using an other site to analyse your browser make sure to read and understand what the test is about.
Firefox 60 and `privacy.resistFingerprinting` are relatively new, please give it some time to be more widely used and thus less finger-printable; If you are using a different site to analyze your browser make sure to read and understand what the test is about.


- [SSLLabs](https://www.ssllabs.com/ssltest/viewMyClient.html)
- [SSLLabs](https://www.ssllabs.com/ssltest/viewMyClient.html)
- [AmiUnique](https://amiunique.org/fp)
- [AmiUnique](https://amiunique.org/fp)
- [BrowserLeaks](https://browserleaks.com/)
- [BrowserLeaks](https://browserleaks.com/)
- [BrowserPlugs](https://www.browserplugs.com/fingerprint-test/index.html)
- [BrowserPlugs](https://www.browserplugs.com/fingerprint-test/index.html)
- [FingerPrintJS2](https://valve.github.io/fingerprintjs2/)
- [FingerPrintJS2](https://valve.github.io/fingerprintjs2/)
- [Third-Party-Cookies](https://alanhogan.github.io/web-experiments/3rd/third-party-cookies.html)
- [Third-Party-Cookies](https://alanhogan.github.io/web-experiments/3rd/third-party-cookies.html)
- [Testing-Notifications](https://www.bennish.net/web-notifications.html)
- [Testing-Notifications](https://www.bennish.net/web-notifications.html)
- [Browser-Storage-Abuser](https://demo.agektmr.com/storage/)
- [Browser-Storage-Abuser](https://demo.agektmr.com/storage/)
- [Service-Workers-Push-Test](https://gauntface.github.io/simple-push-demo/)
- [Service-Workers-Push-Test](https://gauntface.github.io/simple-push-demo/)


Browser Tests : Performances :
Browser Tests : Performances :
------------------------------
------------------------------
Performance tests can be done here [LVP Octane](https://intika.github.io/lvp-octane/), it needs to be launched alone with other applications closed and with no other activity but the benchmark, also it's recommended to lunch it many times and then make an average.
Performance tests can be done here [LVP Octane](https://intika.github.io/lvp-octane/), it needs to be launched alone with other applications closed and with no other activity but the benchmark, also it's recommended to launch it many times and then calculate the average.


Browser Tests : DNS/VPN/Proxy Leak :
Browser Tests : DNS/VPN/Proxy Leak :
------------------------------------
------------------------------------
- [IPLeak](https://ipleak.net/)
- [IPLeak](https://ipleak.net/)
- [Tenta-Test](https://tenta.com/test/)
- [Tenta-Test](https://tenta.com/test/)
- [IP-Browserleaks](https://browserleaks.com/ip)
- [IP-Browserleaks](https://browserleaks.com/ip)


About :
About :
-------
-------
**Autor :** Intika - intikadev (at) gmail.com
**Author :** Intika - intikadev (at) gmail.com


**Donation :** Paypal : intikadev (at) gmail.com
**Donation :** Paypal : intikadev (at) gmail.com


**Based on :** [User.js](https://github.com/pyllyukko/user.js/), [PrivaConf](https://addons.mozilla.org/en-US/firefox/addon/privaconf/) and [Ghacks-user.js](https://github.com/ghacksuserjs/ghacks-user.js) big thanks to all of them
**Based on :** [User.js](https://github.com/pyllyukko/user.js/), [PrivaConf](https://addons.mozilla.org/en-US/firefox/addon/privaconf/) and [Ghacks-user.js](https://github.com/ghacksuserjs/ghacks-user.js) big thanks to all of them


Librefox Roadmap :
Librefox Roadmap :
------------------
------------------
**Objectives for future versions of librefox (this may change) :**
**Objectives for future versions of Librefox (this may change) :**
- Develop an all-in-one Librefox addon to rule them all ? (Normal & Tor Version… this would simplify Librefox)
- Develop an all-in-one Librefox addon to rule them all ? (Normal & Tor Version… this would simplify Librefox)
- Develop an easy to use firewall system for extensions (button/hosts/allow/deny/per-addon)
- Develop an easy to use firewall system for extensions (button/hosts/allow/deny/per-addon)
- Update checker extension (feature in the full extension ?)
- Update checker extension (feature in the full extension ?)
- Advert for the project to reach more users ?
- Advertisement for the project to reach more users ?


**Todo for future versions of librefox (this may change) :**
**Todo for future versions of Librefox (this may change) :**
- Improve hd-video playback performances
- Improve HD-video playback performance.
- Testing compatibility on those [sites](https://developer.mozilla.org/en-US/docs/Web/Demos_of_open_web_technologies) and adjust the related settings.
- Testing compatibility on those [sites](https://developer.mozilla.org/en-US/docs/Web/Demos_of_open_web_technologies) and adjust the related settings.
- Review un-reviewed addons code (dont-track-me-google/decentraleyes/canvasblocker/temporary-containers/switch-container/smart-referer)
- Review un-reviewed addons code (dont-track-me-google/decentraleyes/canvasblocker/temporary-containers/switch-container/smart-referer)


Settings Index :
Settings Index :
----------------
----------------
```
```
// ==============================
// ==============================
// Index mozilla.cfg .......... :
// Index mozilla.cfg .......... :
// ==============================
// ==============================
//
//
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// Section : User settings // Bench Diff : +0 / 5000
// Section : User settings // Bench Diff : +0 / 5000
// Section : Defaulting Settings // Bench Diff : ??? / 5000
// Section : Defaulting Settings // Bench Diff : ??? / 5000
// -------------------------------------------
// -------------------------------------------
// Section : Controversial // Bench Diff : +0 / 5000
// Section : Controversial // Bench Diff : +0 / 5000
// Section : Firefox Fingerprint // Bench Diff : +0 / 5000
// Section : Firefox Fingerprint // Bench Diff : +0 / 5000
// Section : Locale/Time // Bench Diff : +0 / 5000
// Section : Locale/Time // Bench Diff : +0 / 5000
// Section : Ghacks-user Selection // Bench Diff : +100 / 5000
// Section : Ghacks-user Selection // Bench Diff : +100 / 5000
// Section : Extensions Manager // Bench Diff : ??? / 5000
// Section : Extensions Manager // Bench Diff : ??? / 5000
// Section : IJWY To Shut Up // Bench Diff : ??? / 5000
// Section : IJWY To Shut Up // Bench Diff : ??? / 5000
// Section : Microsoft Windows // Bench Diff : ??? / 5000
// Section : Microsoft Windows // Bench Diff : ??? / 5000
// Section : Firefox ESR60.x // Bench Diff : ??? / 5000
// Section : Firefox ESR60.x // Bench Diff : ??? / 5000
// -------------------------------------------
// -------------------------------------------
// Section : Security 1/3 // Bench Diff : +0 / 5000
// Section : Security 1/3 // Bench Diff : +0 / 5000
// Section : Security 2/3 // Bench Diff : +0 / 5000
// Section : Security 2/3 // Bench Diff : +0 / 5000
// Section : Security 3/3 (Cipher) // Bench Diff : +0 / 5000
// Section : Security 3/3 (Cipher) // Bench Diff : +0 / 5000
// -------------------------------------------
// -------------------------------------------
// Section : Performances 1/5 // Bench Diff : +650 / 5000
// Section : Performance 1/5 // Bench Diff : +650 / 5000
// Section : Performances 2/5 // Bench Diff : -800 / 5000
// Section : Performance 2/5 // Bench Diff : -800 / 5000
// Section : Performances 3/5 // Bench Diff : -1720 / 5000
// Section : Performance 3/5 // Bench Diff : -1720 / 5000
// Section : Performances 4/5 // Bench Diff : -200 / 5000
// Section : Performance 4/5 // Bench Diff : -200 / 5000
// Section : Performances 5/5 // Bench Diff : -50 / 5000
// Section : Performance 5/5 // Bench Diff : -50 / 5000
// -------------------------------------------
// -------------------------------------------
// Section : General Settings 1/3 // Bench Diff : +100 / 5000
// Section : General Settings 1/3 // Bench Diff : +100 / 5000
// Section : General Settings 2/3 // Bench Diff : +0 / 5000
// Section : General Settings 2/3 // Bench Diff : +0 / 5000
// Section : General Settings 3/3 // Bench Diff : -40 / 5000
// Section : General Settings 3/3 // Bench Diff : -40 / 5000
// -------------------------------------------
// -------------------------------------------
// Section : Disabled - ON/OFF // Bench Diff : ??? / 5000
// Section : Disabled - ON/OFF // Bench Diff : ??? / 5000
// Section : Disabled - Deprecated Active // Bench Diff : ??? / 5000
// Section : Disabled - Deprecated Active // Bench Diff : ??? / 5000
// Section : Disabled - Deprecated Inactive // Bench Diff : +0 / 5000
// Section : Disabled - Deprecated Inactive // Bench Diff : +0 / 5000
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------


// ==============================
// ==============================
// Index local-settings.js .... :
// Index local-settings.js .... :
// ==============================
// ==============================
//
//
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// Section : General Settings // Bench Diff : ++ / 5000
// Section : General Settings // Bench Diff : ++ / 5000
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------


```
```


Cookies Settings :
Cookies Settings :
------------------
------------------
Using different web services without cookies is impossible and cookies settings in a browser are very important when it come to privacy, in Librefox the settings are locked to avoid unwanted changes in such important setting, but they can be easily changed in `mozilla.cfg` under `User Settings : Cookies settings`
Using different web services without cookies is impossible and cookie settings in a browser are very important when it come to privacy, in Librefox the settings are locked to avoid unwanted changes in such an important setting, but they can be easily changed in `mozilla.cfg` under `User Settings : Cookies settings`.


Tracking Protection :
Tracking Protection :
---------------------
---------------------
Firefox now integrate a tracking protection feature (based on disconnect.me) it's a light list content blocking, listing can not be edited, this feature is disabled in Librefox. it's recommended to use ublock instead. This feature is disabled :
Firefox now integrates a tracking protection feature (based on disconnect.me) it's a small content blocking list, the listing can not be edited, this feature is disabled in Librefox. It's recommended to use uBlock Origin instead. This feature is disabled :


- Until it evolve and integrate at least list editing
- Until it evolves and integrates at least list editing.
- Because double filtering (this + ublock) is not suitable for performances.
- Because double filtering (this + ublock) is not suitable for performance.


You can however easily enable this feature in `mozilla.cfg` under `User Settings : Track Protection` (just comment active lines with `//` or remove the section).
You can however easily enable this feature in `mozilla.cfg` under `User Settings : Track Protection` (just comment active lines with `//` or remove the entire section).


Comparing Changes And Updates :
Comparing Changes And Updates :
-------------------------------
-------------------------------
If you want to compare changes over updates or if you already have a `user.js`/`mozilla.cfg`/`policies.json`. consider using [Compare-UserJS](https://github.com/claustromaniac/Compare-UserJS), an amazing tool to compare user.js files and output the diffs in detailed breakdown, developed by gHack's very own resident cat, [claustromaniac](https://github.com/claustromaniac) :cat:
If you want to compare changes over updates or if you already have a `user.js`/`mozilla.cfg`/`policies.json`. consider using [Compare-UserJS](https://github.com/claustromaniac/Compare-UserJS), it's an amazing tool to compare user.js files and output the diffs in detailed breakdown, developed by gHack's very own resident cat, [claustromaniac](https://github.com/claustromaniac) :cat:


Usage : If not on windows install [PowerShell](https://github.com/PowerShell/PowerShell) then for example `pwsh Compare-UserJS.ps1 mozilla.cfg user.js` (Warning that PowerShell connect to MS sometimes)
Usage : If not on windows install [PowerShell](https://github.com/PowerShell/PowerShell) then (for example) `pwsh Compare-UserJS.ps1 mozilla.cfg user.js` (Warning that PowerShell connects to Microsoft sometimes)


Documentation :
Documentation :
---------------
---------------


**Local-settings.js** : Defaulting firefox settings
**Local-settings.js** : Defaulting Firefox settings


**Mozilla.cfg** : Locking firefox settings for security, privacy & prevent settings changes
**Mozilla.cfg** : Locking Firefox settings for security, privacy & prevent setting changes


**Policies.json** : The policies.json is cross-platform compatible, making it preferred method for enterprise environments that have workstations running various operating systems (the settings availables with `policies.json` are limited right now because this is a new feature of firefox)
**Policies.json** : The policies.json is cross-platform compatible, making it preferred method for enterprise environments that have workstations running various operating systems (the settings availables with `policies.json` are limited right now because this is a new feature of Firefox)


**Bench diff** : Impact on the performances of firefox can be a gain or a loss of performance +100/5000 stand for 2% gained performance and -1500/5000 stand for -30% performance loss
**Bench diff** : Impact on the performance of firefox can be a gain or a loss of performance +100/5000 stand for 2% gained performance and -1500/5000 stand for -30% performance loss
**lockPref** : Locked preference can not be changed on firefox, nor by extensions, can only be changed here
**lockPref** : Locked preference can not be changed on Firefox, nor by extensions, they can only be chan

**Section** : Description of the settings section separated by ">>>..."

**Defaulting VS Enforc