Thursday, May 2, 2024
35
rated 0 times [  35] [ 0]  / answers: 1 / hits: 28377  / 2 Years ago, wed, june 1, 2022, 5:29:38

I use this extension called Website Blocker to discourage me from checking Gmail/Reddit. However, it is easy and tempting to open a New Incognito Window; since extensions are disabled in Incognito Mode, I'm still able to browse Gmail/Reddit while in Incognito.



Is there any way to disable Chrome's Incognito Mode in Ubuntu? Ideally, this would encourage me to use my smartphone as a dedicated Gmail/Reddit checker.


More From » google-chrome

 Answers
0

To disable incognito on chrome/chromium you need to edit the policies. Doing this will prevent you from opening an incognito window via Ctrl+Shift+n, and will also grey out the incognito window option in the options tab in the corner.



If you're using chrome, create the folder /etc/opt/chrome/policies/managed.
Or 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:



{
"IncognitoModeAvailability": 1
}


That should do it!



Source: http://www.chromium.org/administrators/linux-quick-start and
http://www.chromium.org/administrators/policy-list-3


[#39648] Thursday, June 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tusmuumu

Total Points: 195
Total Questions: 122
Total Answers: 104

Location: Oman
Member since Tue, Feb 7, 2023
1 Year ago
;