Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

mozila.cfg: lock setting

  • 5 odgovori
  • 1 ima ovaj problem
  • 372 views
  • Posljednji odgovor poslao cor-el

more options

How can we lock the following setiing:

In the setting Browser Privacy Settings:

Trackers, option Always

Third Party Cookies, option all cookies of third parties.. ( something like this in English)

With kind regards, Ben Raben

How can we lock the following setiing: In the setting Browser Privacy Settings: Trackers, option Always Third Party Cookies, option all cookies of third parties.. ( something like this in English) With kind regards, Ben Raben

Izabrano rješenje

This setting will be changing in Firefox version 65, due to be released in less than two weeks. As of right now, you need the following options:

lockPref("browser.privacy.trackingprotection.menu","always");

This preference controls the mode of the Tracking option and should be set to a string value of either always or private, depending on the setting that you want. If you want to disable that option completely, you should instead use:

lockPref("privacy.trackingprotection.pbmode.enabled",false);

As for the cookies option, you should use the following option if you want to set that to enabled:

lockPref("network.cookie.cookieBehavior",4);

The value will match to the following option from the dropdown menu in the upcoming version of Firefox:

  1. All third party cookies
  2. All cookies
  3. Cookies from unvisited sites
  4. Third party trackers

I believe that the current version of Firefox only has access to two options (either 1 or 4), but I may be mistaken.

If you want to disable this option, you simply need to remove the preference from Firefox using:

clearPref("network.cookie.cookieBehavior");

In the future Firefox, you will have the option to use three different presets for the settings that you want to change. You will be able to set and lock this option in the future by using:

lockPref("browser.contentblocking.category","strict");

The string value can be either "standard", "strict" or "custom". The custom option will allow you to set the preferences that I listed above, but it sounds to me like the strict option is what you are looking for.

Hopefully this helps you out.

Pročitajte ovaj odgovor sa objašnjenjem 👍 1

All Replies (5)

more options

Odabrano rješenje

This setting will be changing in Firefox version 65, due to be released in less than two weeks. As of right now, you need the following options:

lockPref("browser.privacy.trackingprotection.menu","always");

This preference controls the mode of the Tracking option and should be set to a string value of either always or private, depending on the setting that you want. If you want to disable that option completely, you should instead use:

lockPref("privacy.trackingprotection.pbmode.enabled",false);

As for the cookies option, you should use the following option if you want to set that to enabled:

lockPref("network.cookie.cookieBehavior",4);

The value will match to the following option from the dropdown menu in the upcoming version of Firefox:

  1. All third party cookies
  2. All cookies
  3. Cookies from unvisited sites
  4. Third party trackers

I believe that the current version of Firefox only has access to two options (either 1 or 4), but I may be mistaken.

If you want to disable this option, you simply need to remove the preference from Firefox using:

clearPref("network.cookie.cookieBehavior");

In the future Firefox, you will have the option to use three different presets for the settings that you want to change. You will be able to set and lock this option in the future by using:

lockPref("browser.contentblocking.category","strict");

The string value can be either "standard", "strict" or "custom". The custom option will allow you to set the preferences that I listed above, but it sounds to me like the strict option is what you are looking for.

Hopefully this helps you out.

more options

Note that you can do this more easily via policies.

See Cookies:

more options

Thanks for the replies/answers, We don't use domain based policies for this specialized FF portable edition. That was not clear enough in my question i guess. With kind regards.

more options

rabeb00 said

We don't use domain based policies for this specialized FF portable edition.

That's fine. The original response will work exactly the way that you want, but I just wanted to clarify that you can use group policy (sort of) without using the Windows-based group policy management.

You could use a policies.json file, which behaves identical to Windows group policy. It's not really related to the thread (since the response I already mentioned already works), but I figured I'd mention it so that you know for the future if you ever want to consider using group policy for Firefox.

more options

With policies, Firefox figures out what prefs need to be changed. In current releases there are a lot of prefs available that are set or reset in clusters when you make specific changes in Options/Preferences for third-party cookies and content blocking.

See cookies: