Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Disable private mode

Hi guys!! I'm a network admin, of thousand computers running Mozilla Firefox. Yesterday I discovered that users are using "private mode" to bypass/cheat my proxy rules, and them can access porn, chat and others sites.

I've tried use GPO's of Firefox, Install extension by command line, but this ways not works fine...

How can I disable private mode in my enviroment?

Hi guys!! I'm a network admin, of thousand computers running Mozilla Firefox. Yesterday I discovered that users are using "private mode" to bypass/cheat my proxy rules, and them can access porn, chat and others sites. I've tried use GPO's of Firefox, Install extension by command line, but this ways not works fine... How can I disable private mode in my enviroment?

所有回覆 (12)

There is no change in Firefox that can't be undone when Firefox is in Safe Mode. This a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).


There are free programs available on the web to block access to 'bad' websites.

I don't understand how a private window could bypass a proxy; connection settings should remain unchanged. There may be a problem with your proxy configuration.

Also, you may want to look into OpenDNS as a supplemental security and filtering service. This assumes you don't allow DNS queries to other servers to bypass OpenDNS...

https://www.opendns.com/enterprise-security/

Cause my proxy use windows integrated authentication, I have no idea of the real reason of this behavior.

Considering a corporate environment, "private mode" should be controller by system admin, and not by user, I do this in chrome and IE. Is possible in Mozilla Firefox?

You may want to look at this tool:

https://mike.kaply.com/cck2/

And the mailing list mentioned on this page:

https://www.mozilla.org/firefox/organizations/

You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.

A local-settings.js file needs to be placed in the "defaults/pref" folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

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

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

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

The mozilla.cfg file needs to start with a comment line (//).

See Configuration:

See also:

I've do this

In my local-settings.js pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); located in folder C:\Program Files (x86)\Mozilla Firefox\defaults\pref

It's my mozilla.cfg // lockPref("privacy.donottrackheader.enabled", false);

Located in folder C:\Program Files (x86)\Mozilla Firefox

Private mode still works!

douglasfilipe said

lockPref("privacy.donottrackheader.enabled", false);

Located in folder C:\Program Files (x86)\Mozilla Firefox

Private mode still works!

The "Do Not Track" header is a checkbox in the privacy settings. It is not related to private browsing.

Locking this pref could have some effect, but probably won't help when a command line switch (-private) is used.

  • lockPref("browser.privatebrowsing.autostart", false);

jscher2000 said

douglasfilipe said
lockPref("privacy.donottrackheader.enabled", false);

Located in folder C:\Program Files (x86)\Mozilla Firefox

Private mode still works!

The "Do Not Track" header is a checkbox in the privacy settings. It is not related to private browsing.

Yes, I wanna disable "private mode" not "do not track me"

Did you look at the CCK2 extension?

cor-el said

Did you look at the CCK2 extension?

Yes I did, but, how can I install extension in five hundred machines? Manually is impossible