X
Tap here to go to the mobile version of the site.

Support Forum

why can i not lock Homepage setting in customization?

Posted

Certain Search engines and other web sites Will Change the Homepage setting, often with out Authorization. How do I lock this down? Barring that why is there no Check box for locking the homepage setting under customization.

Certain Search engines and other web sites Will Change the Homepage setting, often with out Authorization. How do I lock this down? Barring that why is there no Check box for locking the homepage setting under customization.

Chosen solution

You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.

The mozilla.cfg file needs to be in the main Firefox program folder.

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();	// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

This requires a local-settings.js file in the "defaults/pref" folder where the channel-prefs.js file is located that specifies to use mozilla.cfg.

//
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

The mozilla.cfg and local-settings.js files need to start with a comment line (//).

See Configuration:

See also:

Read this answer in context 1
the-edmeister
  • Top 10 Contributor
  • Moderator
5270 solutions 39002 answers

Search engines and web pages shouldn't be able to change your set home page.

Please provide details about why you think that is happening and / or what it is getting changed to. Might help us figure out the cause.

Search engines and web pages shouldn't be able to change your set home page. Please provide details about why you think that is happening and / or what it is getting changed to. ''Might help us figure out the cause.''
jscher2000
  • Top 10 Contributor
7435 solutions 60683 answers

Also, please take a couple minutes to review your extensions. You can view, disable, and often remove unwanted or unknown extensions on the Add-ons page. Either:

  • Ctrl+Shift+a (Mac: Command+Shift+a)
  • "3-bar" menu button (or Tools menu) > Add-ons
  • type or paste about:addons in the address bar and press Enter/Return

In the left column of the Add-ons page, click Extensions. Then cast a critical eye over the list on the right side. Any system extensions that Firefox installs on its own are hidden from this page, so everything listed here is your choice (and your responsibility) to manage. Anything suspicious? If in doubt, disable.

Any improvement?

Also, please take a couple minutes to review your extensions. You can view, disable, and often remove unwanted or unknown extensions on the Add-ons page. Either: * Ctrl+Shift+a (Mac: Command+Shift+a) * "3-bar" menu button (or Tools menu) > Add-ons * type or paste '''about:addons''' in the address bar and press Enter/Return In the left column of the Add-ons page, click Extensions. Then cast a critical eye over the list on the right side. Any system extensions that Firefox installs on its own are hidden from this page, so everything listed here is your choice (and your responsibility) to manage. Anything suspicious? If in doubt, disable. Any improvement?
cor-el
  • Top 10 Contributor
  • Moderator
16390 solutions 147861 answers

Chosen Solution

You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.

The mozilla.cfg file needs to be in the main Firefox program folder.

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();	// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

This requires a local-settings.js file in the "defaults/pref" folder where the channel-prefs.js file is located that specifies to use mozilla.cfg.

//
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

The mozilla.cfg and local-settings.js files need to start with a comment line (//).

See Configuration:

See also:

You can use the <u>mozilla.cfg</u> file in the Firefox program folder to set or lock preferences and run privileged JavaScript code. The mozilla.cfg file needs to be in the main Firefox program folder. These functions can be used in the mozilla.cfg file: defaultPref(); // set new default value pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes This requires a <u>local-settings.js</u> file in the "defaults/pref" folder where the channel-prefs.js file is located that specifies to use mozilla.cfg. // pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0); The mozilla.cfg and local-settings.js files need to start with a comment line (//). See Configuration: *https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment See also: *http://kb.mozillazine.org/Locking_preferences *http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/