
Turn off or block out features (network or proxy settings) for security for students
I'm working on a Windows 7 Professional 64 bit installation with Firefox 18.0.2.
These are laptops are for cyber-school students, and we route their internet traffic through our SmartFilter. I've set up the proxy settings correctly, but I need to "lock out" those settings so the students can't change or delete the proxy settings.
Using information I found here - http://wpkg.org/Firefox - I've followed the following steps, but it's not working. I'm guessing I have lockPref line wrong.
1. I created a 'polices.js' file with this in it:
pref("general.config.obscure_value", 13); pref("general.config.filename", "mozilla.cfg");
I saved that file in the [Program Files (x86)\Mozilla Firefox\defaults\prefs\] directory.
2. I created a 'mozilla.txt' file with this in it:
lockPref("network.proxy.share_proxy_settings", false);
I converted that file to a 'mozilla.cfg' file with a byte shift of 13 using this service:
http://www.alain.knaff.lu/howto/MozillaCustomization/cgi/byteshf.cgi
I saved the 'mozilla.cfg' file in the [Program Files (x86)\Mozilla Firefox] directory.
After restarting Firefox I can still see and change the proxy setting, so it didn't work. Any ideas?
Help is greatly appreciated! Thanks so much!
Todas las respuestas (6)
hello, yes you'll have to lock the right preferences - your mozilla.cfg file may have to look something like this:
// lockPref("network.proxy.http", "localhost"); lockPref("network.proxy.http_port", 8080); lockPref("network.proxy.type", 1); lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1"); lockPref("network.proxy.share_proxy_settings", true);
for reference see www.edgewave.com/support/web_security/help/iPrism/Networking/Mobile/IP0460.htm
Thanks for the quick reply!
I copied and pasted this directly into 'mozilla.txt', then converted that to 'mozilla.cfg' with the byte shift of 13, and put it in the directory...and there is no change. Any other idea what I could be doing wrong?
Video editor by trade...but thrown into an IT tech support position for this cyber school at work.
The site you referenced to is the old way of doing it in previous versions of Firefox.
The new version does not have the 'gregprefs' folder, so that all.js file cannot be altered...it doesn't exist.
have you made sure that those files reside at the places described? (mozilla.cfg has to be in the firefox program folder & the .js file in the \defaults\pref subfolder). you could also set it up without the byte-shift, then you can put the plain-text settings into mozilla.cfg - this might get rid of another error source...
http://kb.mozillazine.org/Locking_preferences
edit:yes, i wanted to use the link in my prior post only for reference what to put into the mozilla.cgf file...
Modificadas por philipp el
Yes, they are. I'll try it without the byte shift.
The issue has been resolved...thanks so much for your help!
The "mozilla.cfg" file should contain:
// lockPref('network.proxy.type', 1);
The "local-setting.js" should contain:
pref('general.config.obscure_value', 0); pref('general.config.filename', "mozilla.cfg");
Thanks again!