Sunday, May 27, 2007

Locking Firefox in XP and Linux

A)Linux (tested on Ubuntu from http://kirksblog.steffensenfamily.com/archives/category/ubuntu/)

1] Backup you original configuration found at /usr/lib/firefox/firefox.cfg to firefox.cfg.old
2] Create a new firefox.cfg
//
lockPref("app.update.enabled", false);
lockPref("network.proxy.autoconfig_url","http://172.16.8.1/proxy.pac");
lockPref("network.proxy.type", 2);
lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 172.16.8.0/21");
lockPref("network.proxy.share_proxy_settings", true);
lockPref("browser.startup.homepage","http://www.adzu.edu.ph");
----here is another example-----
//
lockPref("app.update.enabled", false);
lockPref("network.proxy.type", 1);
lockPref("network.proxy.share_proxy_settings", true);
lockPref("network.proxy.http", "192.168.2.31");
lockPref("network.proxy.http_port", 3128);
lockPref("browser.startup.homepage","http://www.lxer.com | ");

3] Restart firefox.

B) Windows XP (from http://ilias.ca/blog/2005/03/locking-mozilla-firefox-settings/)

1] Create mozilla.txt and begin the first line with two forward slashes.
2] Put all the settings you would like to lock. Example:
//
lockPref("network.proxy.autoconfig_url","http://172.16.8.1/proxy.pac");
lockPref("network.proxy.type", 2);
lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 172.16.8.0/21");
lockPref("network.proxy.share_proxy_settings", true);
lockPref("browser.startup.homepage","http://www.adzu.edu.ph");

3] Convert the file to mozilla.cfg using this and save it at location where firefox.exe which is usually at C:\Program Files\Mozilla Firefox

4] In C:\Program Files\Mozilla Firefox\greprefs\ there’s a file called all.js.
Open all.js in a text editor, and add the following line at the end of it:

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


To determine the things to lockdown type about:config at the location bar of firefox.

Original posted: March 4, 2007

1 comment:

Unknown said...

sir i found a link on how to lock down IE...

http://blogs.ittoolbox.com/networking/it_guy/archives/lock-down-ie-through-creative-login-script-7217