Built for Firefox configuration workflows · Free browser-based tools

How to Set Up Firefox AutoConfig

Learn where to place mozilla.cfg and autoconfig.js and how to test your configuration.

Firefox AutoConfig uses a JavaScript configuration file, commonly named mozilla.cfg, and a small loader file, commonly named autoconfig.js. This approach is intended for administrators who manage Firefox settings across installations.

Step 1: Create the loader

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

Place the loader in the Firefox installation directory under defaults/pref/autoconfig.js. The obscure_value setting of zero tells Firefox to use plain text rather than legacy byte shifting.

Step 2: Create mozilla.cfg

// Firefox AutoConfig
lockPref("browser.startup.page", 1);

Place mozilla.cfg in the Firefox installation root. Keep the first line as a comment and use plain UTF-8 text when using obscure_value 0.

Step 3: Test safely

Use a separate test profile or managed test installation. Restart Firefox and confirm the intended preferences. Do not deploy unverified settings to production devices.

Useful tools

Start with the AutoConfig Generator, then review the file using the CFG Editor.

Reference: Firefox enterprise and AutoConfig documentation. Always verify settings against your installed Firefox release.