Similar to disabling Incognito mode to stop users bypassing extensions, is there a way to disable Chrome's Guest Window?
Asked
Active
Viewed 2,050 times
1 Answers
11
I worked out a solution that is now possible since May 2019 using policies and the same method as disabling Incognito mode.
If you're using chrome, create the folder /etc/opt/chrome/policies/managed. (I'm guessing if you're using chromium, create the folder /etc/chromium/policies/managed.)
Then create a file in that directory named test_policy.json. It can have any name you want, but it needs the extension to be .json.
Open it in your favorite editor and put:
{ "BrowserGuestModeEnabled": false }
(Updated) Source: https://chromeenterprise.google/policies/
Mr Philby
- 351
- 1
- 10
-
1Hi, this solution is brilliant. However, if you can, can you help me to figure out how to do both: disable Incognito+ disable guest mode. I made the son file and wrote { "IncognitoModeAvailability": 1, "BrowserGuestModeEnabled": false }. – Anshuman Kumar Jun 30 '20 at 06:05
-
However, incognito isn't disabled when I do so. – Anshuman Kumar Jun 30 '20 at 06:05
-
Creating separate files with names as test_policy.json and test_policy_1.json doesn't work. – Anshuman Kumar Jun 30 '20 at 06:06
-
2you can't have any line breaks in the policy file. So it should look like: { "BrowserGuestModeEnabled": false, "IncognitoModeAvailability": 1 } – Mr Philby Jul 03 '20 at 04:34
-
It (somehow) worked when I had restarted my computer without making any changes to the json file. – Anshuman Kumar Jul 03 '20 at 15:18
-
Look like I lost that setting after updated Chrome. – Thinh NV Jul 20 '20 at 06:28
-
2@MrPhilby and others, list of available policies moved to: https://cloud.google.com/docs/chrome-enterprise/policies/ – LuxZg Dec 09 '20 at 10:22
-
Thank you @MrPhilby for answering this question. I was finally able to plug the one loophole of stayfocsd that is the guest mode – Tejas Shetty Jun 16 '21 at 17:18
-
1I confirm this works today. Thanks ! – Dan Ortega Oct 24 '21 at 06:25