Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.

Enforce proxy settings in a Citrix published/ multi-user environment

  • 3 àwọn èsì
  • 1 ní ìṣòro yìí
  • 7 views
  • Èsì tí ó kẹ́hìn lọ́wọ́ Gingerbread Man

more options

I'm publishing Firefox 28 for Windows on a Citrix server. I need to enforce proxy settings for all users and have them greyed out so they cannot be changed. I've looked into the proxy settings, under Advanced, but they are per-user and are able to be changed.

How can I do this?

I'm publishing Firefox 28 for Windows on a Citrix server. I need to enforce proxy settings for all users and have them greyed out so they cannot be changed. I've looked into the proxy settings, under Advanced, but they are per-user and are able to be changed. How can I do this?

All Replies (3)

more options

See the following page for locking preferences.

These are all the preferences under Options - Advanced - Network - Settings:

 network.proxy.type 0 | No proxy
 network.proxy.type 4 | Auto-detect proxy settings
 network.proxy.type 5 | Use system proxy settings

 network.proxy.type 1 | Manual proxy configuration
 network.proxy.http
 network.proxy.http_port
 network.proxy.share_proxy_settings | Use HTTP proxy server for all protocols
 network.proxy.ssl
 network.proxy.ssl_port
 network.proxy.ftp
 network.proxy.ftp_port
 network.proxy.socks
 network.proxy.socks_port
 network.proxy.socks_version 4 or 5
 network.proxy.socks_remote_dns false or true
 network.proxy.no_proxies_on | domain names separated by a comma and a space

 network.proxy.type 2 | Automatic proxy configuration
 network.proxy.autoconfig_url | Proxy autoconfiguration URL

 signon.autologin.proxy false or true | Do not prompt for authentication if password is saved
more options

I've tried this on a Mac and Windows with no luck.

I've created a text file called local-settings.js in "C:\Users\Kevin\AppData\Roaming\Mozilla\Firefox\Profiles\91e7yvh1.default". The file contents are:

pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13

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

I've also created the mozilla.cfg file in "C:\Program Files\Mozilla Firefox" with the content:

//

lockPref("network.proxy.http", "isaout.ucdmc.ucdavis.edu"); lockPref("network.proxy.http_port", 8085); lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, *.ucdavis.edu"); lockPref("network.proxy.type", 1);

On the Mac, I used the same file contents except I used the directories: /Applications/Firefox.app/Contents/MacOS/defaults/pref and /Applications/Firefox.app.

Can you tell me what I'm doing wrong?

/Kevin

Ti ṣàtúnṣe nípa Kevin

more options

Like the article says,

1. mozilla.cfg must be placed in the installation folder, e.g.

C:\Program Files (x86)\Mozilla Firefox\mozilla.cfg

2. local-settings.js must be placed in the defaults\pref subfolder of the installation folder, e.g.

C:\Program Files (x86)\Mozilla Firefox\defaults\pref\local-settings.js

On a Mac, right-click (or Control+click) the Firefox icon in the Applications folder and choose Show Package Contents. The equivalent paths should be

Firefox.app/Contents/MacOS
Firefox.app/Contents/MacOS/defaults/pref