More about writing Mozilla Configuration Files. They can be very
useful in a work environment.
A normal configuration files is written with a text editor. It must
always start with " // " , without the quotes.
So your file will look like this:
//
lockPref("network.proxy.http", "proxy.singnet.com.sg");
Bold part - is the settings that you want to lock down to prevent
changes. This can be obtained from
about:config.
Blue part - is the value.
Once you've done with writing, save it as a normal text file, and
use a byte shifting program to encode it.
Program
or
Do it online
Save the configuration file (.cfg) to where Firefox is installed
(usually in C:\Program Files\Mozilla Firefox)
Open this folder in Mozilla Firefox (greprefs) and locate this
file: all.js
Scroll all the way down and add in this line:
//use my own configuration file
pref("general.config.filename", "mozilla.cfg");
Bold part - comments, not necessary needed, but will be helpful if
you run into some problems.
Save this file, restart Firefox and make sure that there's no
errors. If you run into errors, you will need to double check where
you went wrong,
There are a few things to take note of:
1. Integer must not be wrapped up in quotes.
Example:
//
lockPref("network.proxy.type", 1);
this is
correct
//
lockPref("network.proxy.type", "1");
this is
wrong.
2. Some settings are linked together, like the proxy
settings.
Example:
//
lockPref("network.proxy.http", "proxy.singnet.com.sg");
this is incomplete.
//
lockPref("network.proxy.http", "proxy.singnet.com.sg");
lockPref("network.proxy.http_port", 8080);
lockPref("network.proxy.type", 1);
Highlighted in blue is a complete file.
3. Strings must be in quotes.
Example:
//
lockPref("network.proxy.http", proxy.singnet.com.sg);
this is wrong
//
lockPref("network.proxy.http", "proxy.singnet.com.sg");
this is correct
Once you are done and it's ready for the work environment,
recompile Firefox, put the installer on your server, write a script
to silently install it and rewrite the all.js file.
More or less it will be locked down.