How can I disable private browsing/incognito mode in browser X?

18

5

Search results for this question contain nothing but arguments for and against. Please take those up in another forum. I want to know is there an option, extension or hack to disable private browsing mode in each of the following browsers?

  • Apple Safari v?+ (Private Browsing)
  • Google Chrome v1+ (Incognito Mode)
  • Internet Explorer v8+ (InPrivate Browsing)
  • Mozilla Firefox v3.5+ (Private Browsing)

OS-agnostic solutions preferred.

Depending on the use-case, alternate tools like traffic monitoring, OpenDNS or NetNanny might be valid, but they are not relevant to this question.

david.libremone

Posted 2010-09-16T12:22:51.647

Reputation: 1 128

Which operating system are you using? – Joe Taylor – 2010-09-16T14:07:15.947

Thanks for pointing that out! This is meant to be a broadly applicable question, so OS-agnostic solutions preferred but not required. I've updated the question accordingly. – david.libremone – 2010-09-17T11:04:22.303

Answers

11

OK I'm presuming you;re using Windows...

In Internet Explorer:

Click Start, Run. (or in the search bar for Vista or W7) Type GPEDIT.MSC and hit ENTER Go to:

User Configuration / Administrative Templates / Windows Components / Internet Explorer / Privacy

Turn off InPrivate Browsing:

In Firefox:

Open up your hard drive (c://)(or in the search bar for Vista or W7) through the 'start; run' route. go into program files, go to mozilla firefox, then components.

NOW, make sure you are searching for all files under 'files of type'.

Then, you will be able to see "nsPrivateBrowsingService.js"

Right click and DELETE!!!

That won't remove the controls, but they won't work any more. If you want to hide those Menu items: Add this code to userChrome.css below the @namespace line. See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

#sanitizeSeparator, #privateBrowsingItem, #sanitizeItem {display:none!important;}
#privateBrowsingAutoStart {display:none!important;}

Source: http://support.mozilla.com/tiki-view_forum_thread.php?locale=en-US&comments_parentId=378652&forumId=1

In Chrome:

Creating a DWord reigstry key called IncognitoModeAvailability, with a Value of 1 for Disabled in the registry folder HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome seems to disable incognito browsing. Thanks to Imomata for that one.

I'm unable to help you on the Safari one as I have never really used it for any length of time

Joe Taylor

Posted 2010-09-16T12:22:51.647

Reputation: 11 533

At this time you cannot remove Incognito from Chrome. – steve.lippert – 2010-09-16T15:01:06.917

1Seems you can, per my below answer which i have tested. Though anyone with half a brain who can alter the registry could change it back. – imoatama – 2012-02-27T14:18:29.997

10

You can disable Incognito Mode in Chrome with a simple registry tweak. In regedit.exe, create the key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome, with a single dword value, called IncognitoEnabled and with value 0. This has been deprecated, the correct dword to use is now IncognitoModeAvailability, with Value 1 for Disabled.

When you next start Chrome the New Incognito Window option will be greyed out.

Or you can create .reg file by opening up notepad, pasting the below in and saving it as eg incognito.reg. Once saved just double click the reg file to inport it.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"IncognitoModeAvailability"=dword:00000001

imoatama

Posted 2010-09-16T12:22:51.647

Reputation: 1 906

2

This has been deprecated, the correct dword to use is now IncognitoModeAvailability, wiht Value 1 for Disabled. http://dev.chromium.org/administrators/policy-list-3#IncognitoEnabled

– imoatama – 2014-10-17T03:07:31.913

@imoatama This does not seem to work.I added the key, but incognito mode still works. See: https://productforums.google.com/forum/#%21topic/chrome-admins/FVV5benZ8wU

– ShrimpCrackers – 2017-09-29T07:27:33.430

Did you see my comment about it being deprecated? Or is this a problem with applying any group policy to Chrome? – imoatama – 2017-10-26T02:38:11.560

verified, still works for Chrome version 23.0.1271.64, you will need to create the Google and Chrome keys, then create the dword. Merging Reg file is best option. – Moab – 2012-11-20T17:08:32.670

2

On Chrome for Mac: (Edit: this should work for Linux, too)

Create a plist file in /Library/Preferences/ called com.google.Chrome.plist with the following:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>IncognitoModeAvailability</key>
   <integer>1</integer>
</dict>
</plist>

(If the plist file already exists you need to add the dict entry (the thing that says IncognitoModeAvailability followed by the value 1.)

Joseph Hansen

Posted 2010-09-16T12:22:51.647

Reputation: 3 578

1

On Firefox for Windows, add the following registry entry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox]
"DisablePrivateBrowsing"=dword:00000001

This works on version 61.0.1. I have not tried it on other versions.

saltface

Posted 2010-09-16T12:22:51.647

Reputation: 141