Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Is there a way to password protect the access options pannel, in particular the Connection Settings?

  • 4 trả lời
  • 4 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi daveada

more options

Is there a way that access to the Options panel can be locked by an administrator. In particular I would like to block a user from being able to change the proxy server settings in Tools > Options > Advanced > Network > Connection Settings. I would like to be able to lock the settings to (Use system proxy settings). The OS is windows 7 standard user account controlled by a windows small business server 2008.

Is there a way that access to the Options panel can be locked by an administrator. In particular I would like to block a user from being able to change the proxy server settings in Tools > Options > Advanced > Network > Connection Settings. I would like to be able to lock the settings to (Use system proxy settings). The OS is windows 7 standard user account controlled by a windows small business server 2008.

Giải pháp được chọn

If you get the Failed to read error then that means that there is a problem with the mozilla.cfg file or Firefox doesn't find the file as you may have created mozilla.cfg.txt in case you saved the file as a text file (check the type in the Properties via the right-click context menu to see if it is a CFG file).
The mozilla.cfg file should be in the main Firefox program folder where also the firefox.exe file is located.

You should have at least two lines in mozilla.cfg.
The first line should always be a comment (//) because this line is skipped.
The value of the pref depends on what you want to use for the connection settings, for use system proxy settings use 5.

//
lockPref("network.proxy.type", 5);
Đọc câu trả lời này trong ngữ cảnh 👍 2

Tất cả các câu trả lời (4)

more options

You can lock the related network.http prefs to prevent users from changing the settings.
That will only make it impossible to change the prefs on the about:config page directly.


Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

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

See:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes
more options

Hi Thanks for the reply, however I have still not managed to lock the settings: Tools-Options-Advanced-Network-Connection Settings - and lock the settings to “use system proxy settings”. I have created a file: local-settings.js – local-settings.js is located in the same folder as the channel-prefs.js – There is one line of code in the file: local-settings.js - pref("general.config.filename", "mozilla.cfg"); However if I include "general.config.filename", in that file I receive popup an error on loading Firefox – Configuration Error – “Failed to read the configuration file”. If I remove - "general.config.filename", the program loads. Please advise. Also should the content of the mozilla.cfg file contain this code // lockPref("network.proxy.type", 0); Or should it be // lockPref("network.proxy.type", 5); or should it be - lockPref(); // lock pref, disallow changes. Many thanks Dave

more options

Giải pháp được chọn

If you get the Failed to read error then that means that there is a problem with the mozilla.cfg file or Firefox doesn't find the file as you may have created mozilla.cfg.txt in case you saved the file as a text file (check the type in the Properties via the right-click context menu to see if it is a CFG file).
The mozilla.cfg file should be in the main Firefox program folder where also the firefox.exe file is located.

You should have at least two lines in mozilla.cfg.
The first line should always be a comment (//) because this line is skipped.
The value of the pref depends on what you want to use for the connection settings, for use system proxy settings use 5.

//
lockPref("network.proxy.type", 5);
more options

many thanks, cor-el that worked.

I ended up with this content in the local-settings.js file:

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");