==Screenshot of locked Proxy Settings== http://tinyurl.com/m9a4z
Notice how "Manual proxy configuration" is selected and all the other fields are greyed out. ==HowTo: Lockdown Firefox settings (Below)== *Create file called moz-byteshift.pl with the lines below. *chmod 755 moz-byteshift.pl #!/usr/bin/perl # Byteshifting program for mozilla's netscape.cfg files # Old netscape 4.x uses a bytechift of 7 # To decode: moz-byteshift.pl -s -7 <netscape.cfg >netscape.cfg.txt # To encode: moz-byteshift.pl -s 7 <netscape.cfg.txt >netscape.cfg # Mozilla uses a byteshift of 13 # To decode: moz-byteshift.pl -s -13 <netscape.cfg >netscape.cfg.txt # To encode: moz-byteshift.pl -s 13 <netscape.cfg.txt >netscape.cfg # To activate the netscape.cfg file, place the encoded netscape.cfg file # into your C:\Program Files\mozilla.org\Mozilla directory. # Then add the following line to your # C:\Program Files\mozilla.org\Mozilla\defaults\pref\all.js file : # pref("general.config.filename", "mozilla.cfg"); use encoding 'latin1'; use strict; use Getopt::Std; use vars qw/$opt_s/; getopts("s:"); if(!defined $opt_s) { die "Missing shift\n"; } my $buffer; while(1) { binmode(STDIN, ":raw"); my $n=sysread STDIN, $buffer, 1; if($n == 0) { last; } my $byte = unpack("c", $buffer); $byte += 512 + $opt_s; $buffer = pack("c", $byte); binmode(STDOUT, ":raw"); syswrite STDOUT, $buffer, 1; } ==================================================================================================== *Create firefox.txt file with the lines below. // <---These double slashes are need at the top of the txt file lockPref("permissions.default.image", 1); lockPref("network.image.warnAboutImages", false); lockPref("network.proxy.autoconfig_url", "192.168.0.254"); lockPref("network.proxy.type", 1); lockPref("network.proxy.ftp", "192.168.0.254"); lockPref("network.proxy.ftp_port", 8080); lockPref("network.proxy.gopher", "192.168.0.254"); lockPref("network.proxy.gopher_port", 8080); lockPref("network.proxy.http", "192.168.0.254"); lockPref("network.proxy.http_port", 8080); lockPref("network.proxy.ssl", "192.168.0.254"); lockPref("network.proxy.ssl_port", 8080); lockPref("network.proxy.socks", "192.168.0.254"); lockPref("network.proxy.socks_port", 8080); lockPref("network.proxy.socks_version", 5); lockPref("network.proxy.socks_remote_dns", false); lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1"); lockPref("network.proxy.failover_timeout", 1800); lockPref("network.proxy.share_proxy_settings", true); ==================================================================================================== ./moz-byteshift.pl -s 13 < firefox.txt > firefox.js cp firefox.js /usr/lib/firefox-1.5.0.7/firefox.js chmod 755 /usr/lib/firefox-1.5.0.7/firefox.js ==================================================================================================== vi /usr/lib/firefox-1.5.0.7/greprefs/all.js pref("general.config.filename", "firefox.js"); <--Add this line at the bottom just before //@line //@line 2212 "/builddir/build/BUILD/mozilla/modules/libpref/src/init/all.js" ==================================================================================================== That's it! :) Wilson