How to disable Chrome's Incognito Mode?












16















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.










share|improve this question





























    16















    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.










    share|improve this question



























      16












      16








      16


      5






      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.










      share|improve this question
















      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.







      google-chrome chromium






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 13 '13 at 22:05









      Braiam

      52.3k20138223




      52.3k20138223










      asked Mar 27 '12 at 3:47









      Jason TuJason Tu

      183117




      183117






















          2 Answers
          2






          active

          oldest

          votes


















          21














          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






          share|improve this answer





















          • 1





            how about for chrome-unstable and chrome-beta ; do I need to make separate folders with the name chrome-unstable? This method no longer seems to work or to work with the beta versions of chrome.

            – Joshua Robison
            Aug 30 '15 at 5:29






          • 1





            Still works on Chromium version 45.0.2454.101 Ubuntu 15.04 (64-bit).

            – CodeMouse92
            Nov 2 '15 at 18:04






          • 1





            Tip: use mkdir -p /etc/opt/chrome/policies/managed, then cd to the same and create the file. You don't even need to reload chrome for it to take effect it seems!

            – Eloff
            Dec 31 '15 at 0:09






          • 2





            this does not seem to be working anymore, can anybody else report?

            – ubuntu_uk_user
            Apr 14 '16 at 13:23











          • @par: the same on Version 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)

            – serv-inc
            Dec 1 '16 at 15:49



















          3














          This doesn't directly answer your question, but rather than disabling incognito mode, you can instead enable the extension in incognito mode windows:




          1. Click the spanner icon and then pick Tools -> Extensions from the menu.

          2. Next to the extension you're interested in, click the expander arrow.

          3. Check the "Allow in incognito" check box that is revealed.


          Now the extension will be active in future incognito mode windows you open.



          The caveat is that if the extension stores any information about your browsing history, your incognito browsing habits may not be as private as before. If the extension simply blocks certain URLs from loading though, this might not be a concern.






          share|improve this answer



















          • 1





            Beat me to it :P Jason, use James' answer when you select an answer. He was here first :) @James, can I delete an answer without losing reputation? I don't want to have duplicate answers here clogging the page.

            – Ryan McClure
            Mar 27 '12 at 4:08













          • I can't see why deleting an answer would lose you any reputation. Punishing a user for tidying up their own content sounds like the opposite of how this site runs.

            – James Henstridge
            Mar 27 '12 at 5:16











          • Deleted it with no loss; thanks for your input.

            – Ryan McClure
            Mar 27 '12 at 5:42











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f116319%2fhow-to-disable-chromes-incognito-mode%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          21














          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






          share|improve this answer





















          • 1





            how about for chrome-unstable and chrome-beta ; do I need to make separate folders with the name chrome-unstable? This method no longer seems to work or to work with the beta versions of chrome.

            – Joshua Robison
            Aug 30 '15 at 5:29






          • 1





            Still works on Chromium version 45.0.2454.101 Ubuntu 15.04 (64-bit).

            – CodeMouse92
            Nov 2 '15 at 18:04






          • 1





            Tip: use mkdir -p /etc/opt/chrome/policies/managed, then cd to the same and create the file. You don't even need to reload chrome for it to take effect it seems!

            – Eloff
            Dec 31 '15 at 0:09






          • 2





            this does not seem to be working anymore, can anybody else report?

            – ubuntu_uk_user
            Apr 14 '16 at 13:23











          • @par: the same on Version 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)

            – serv-inc
            Dec 1 '16 at 15:49
















          21














          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






          share|improve this answer





















          • 1





            how about for chrome-unstable and chrome-beta ; do I need to make separate folders with the name chrome-unstable? This method no longer seems to work or to work with the beta versions of chrome.

            – Joshua Robison
            Aug 30 '15 at 5:29






          • 1





            Still works on Chromium version 45.0.2454.101 Ubuntu 15.04 (64-bit).

            – CodeMouse92
            Nov 2 '15 at 18:04






          • 1





            Tip: use mkdir -p /etc/opt/chrome/policies/managed, then cd to the same and create the file. You don't even need to reload chrome for it to take effect it seems!

            – Eloff
            Dec 31 '15 at 0:09






          • 2





            this does not seem to be working anymore, can anybody else report?

            – ubuntu_uk_user
            Apr 14 '16 at 13:23











          • @par: the same on Version 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)

            – serv-inc
            Dec 1 '16 at 15:49














          21












          21








          21







          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






          share|improve this answer















          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







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 18 mins ago









          pomsky

          32.2k11100131




          32.2k11100131










          answered Oct 28 '13 at 3:25









          RyanRyan

          22622




          22622








          • 1





            how about for chrome-unstable and chrome-beta ; do I need to make separate folders with the name chrome-unstable? This method no longer seems to work or to work with the beta versions of chrome.

            – Joshua Robison
            Aug 30 '15 at 5:29






          • 1





            Still works on Chromium version 45.0.2454.101 Ubuntu 15.04 (64-bit).

            – CodeMouse92
            Nov 2 '15 at 18:04






          • 1





            Tip: use mkdir -p /etc/opt/chrome/policies/managed, then cd to the same and create the file. You don't even need to reload chrome for it to take effect it seems!

            – Eloff
            Dec 31 '15 at 0:09






          • 2





            this does not seem to be working anymore, can anybody else report?

            – ubuntu_uk_user
            Apr 14 '16 at 13:23











          • @par: the same on Version 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)

            – serv-inc
            Dec 1 '16 at 15:49














          • 1





            how about for chrome-unstable and chrome-beta ; do I need to make separate folders with the name chrome-unstable? This method no longer seems to work or to work with the beta versions of chrome.

            – Joshua Robison
            Aug 30 '15 at 5:29






          • 1





            Still works on Chromium version 45.0.2454.101 Ubuntu 15.04 (64-bit).

            – CodeMouse92
            Nov 2 '15 at 18:04






          • 1





            Tip: use mkdir -p /etc/opt/chrome/policies/managed, then cd to the same and create the file. You don't even need to reload chrome for it to take effect it seems!

            – Eloff
            Dec 31 '15 at 0:09






          • 2





            this does not seem to be working anymore, can anybody else report?

            – ubuntu_uk_user
            Apr 14 '16 at 13:23











          • @par: the same on Version 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)

            – serv-inc
            Dec 1 '16 at 15:49








          1




          1





          how about for chrome-unstable and chrome-beta ; do I need to make separate folders with the name chrome-unstable? This method no longer seems to work or to work with the beta versions of chrome.

          – Joshua Robison
          Aug 30 '15 at 5:29





          how about for chrome-unstable and chrome-beta ; do I need to make separate folders with the name chrome-unstable? This method no longer seems to work or to work with the beta versions of chrome.

          – Joshua Robison
          Aug 30 '15 at 5:29




          1




          1





          Still works on Chromium version 45.0.2454.101 Ubuntu 15.04 (64-bit).

          – CodeMouse92
          Nov 2 '15 at 18:04





          Still works on Chromium version 45.0.2454.101 Ubuntu 15.04 (64-bit).

          – CodeMouse92
          Nov 2 '15 at 18:04




          1




          1





          Tip: use mkdir -p /etc/opt/chrome/policies/managed, then cd to the same and create the file. You don't even need to reload chrome for it to take effect it seems!

          – Eloff
          Dec 31 '15 at 0:09





          Tip: use mkdir -p /etc/opt/chrome/policies/managed, then cd to the same and create the file. You don't even need to reload chrome for it to take effect it seems!

          – Eloff
          Dec 31 '15 at 0:09




          2




          2





          this does not seem to be working anymore, can anybody else report?

          – ubuntu_uk_user
          Apr 14 '16 at 13:23





          this does not seem to be working anymore, can anybody else report?

          – ubuntu_uk_user
          Apr 14 '16 at 13:23













          @par: the same on Version 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)

          – serv-inc
          Dec 1 '16 at 15:49





          @par: the same on Version 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)

          – serv-inc
          Dec 1 '16 at 15:49













          3














          This doesn't directly answer your question, but rather than disabling incognito mode, you can instead enable the extension in incognito mode windows:




          1. Click the spanner icon and then pick Tools -> Extensions from the menu.

          2. Next to the extension you're interested in, click the expander arrow.

          3. Check the "Allow in incognito" check box that is revealed.


          Now the extension will be active in future incognito mode windows you open.



          The caveat is that if the extension stores any information about your browsing history, your incognito browsing habits may not be as private as before. If the extension simply blocks certain URLs from loading though, this might not be a concern.






          share|improve this answer



















          • 1





            Beat me to it :P Jason, use James' answer when you select an answer. He was here first :) @James, can I delete an answer without losing reputation? I don't want to have duplicate answers here clogging the page.

            – Ryan McClure
            Mar 27 '12 at 4:08













          • I can't see why deleting an answer would lose you any reputation. Punishing a user for tidying up their own content sounds like the opposite of how this site runs.

            – James Henstridge
            Mar 27 '12 at 5:16











          • Deleted it with no loss; thanks for your input.

            – Ryan McClure
            Mar 27 '12 at 5:42
















          3














          This doesn't directly answer your question, but rather than disabling incognito mode, you can instead enable the extension in incognito mode windows:




          1. Click the spanner icon and then pick Tools -> Extensions from the menu.

          2. Next to the extension you're interested in, click the expander arrow.

          3. Check the "Allow in incognito" check box that is revealed.


          Now the extension will be active in future incognito mode windows you open.



          The caveat is that if the extension stores any information about your browsing history, your incognito browsing habits may not be as private as before. If the extension simply blocks certain URLs from loading though, this might not be a concern.






          share|improve this answer



















          • 1





            Beat me to it :P Jason, use James' answer when you select an answer. He was here first :) @James, can I delete an answer without losing reputation? I don't want to have duplicate answers here clogging the page.

            – Ryan McClure
            Mar 27 '12 at 4:08













          • I can't see why deleting an answer would lose you any reputation. Punishing a user for tidying up their own content sounds like the opposite of how this site runs.

            – James Henstridge
            Mar 27 '12 at 5:16











          • Deleted it with no loss; thanks for your input.

            – Ryan McClure
            Mar 27 '12 at 5:42














          3












          3








          3







          This doesn't directly answer your question, but rather than disabling incognito mode, you can instead enable the extension in incognito mode windows:




          1. Click the spanner icon and then pick Tools -> Extensions from the menu.

          2. Next to the extension you're interested in, click the expander arrow.

          3. Check the "Allow in incognito" check box that is revealed.


          Now the extension will be active in future incognito mode windows you open.



          The caveat is that if the extension stores any information about your browsing history, your incognito browsing habits may not be as private as before. If the extension simply blocks certain URLs from loading though, this might not be a concern.






          share|improve this answer













          This doesn't directly answer your question, but rather than disabling incognito mode, you can instead enable the extension in incognito mode windows:




          1. Click the spanner icon and then pick Tools -> Extensions from the menu.

          2. Next to the extension you're interested in, click the expander arrow.

          3. Check the "Allow in incognito" check box that is revealed.


          Now the extension will be active in future incognito mode windows you open.



          The caveat is that if the extension stores any information about your browsing history, your incognito browsing habits may not be as private as before. If the extension simply blocks certain URLs from loading though, this might not be a concern.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 27 '12 at 4:06









          James HenstridgeJames Henstridge

          31.6k79388




          31.6k79388








          • 1





            Beat me to it :P Jason, use James' answer when you select an answer. He was here first :) @James, can I delete an answer without losing reputation? I don't want to have duplicate answers here clogging the page.

            – Ryan McClure
            Mar 27 '12 at 4:08













          • I can't see why deleting an answer would lose you any reputation. Punishing a user for tidying up their own content sounds like the opposite of how this site runs.

            – James Henstridge
            Mar 27 '12 at 5:16











          • Deleted it with no loss; thanks for your input.

            – Ryan McClure
            Mar 27 '12 at 5:42














          • 1





            Beat me to it :P Jason, use James' answer when you select an answer. He was here first :) @James, can I delete an answer without losing reputation? I don't want to have duplicate answers here clogging the page.

            – Ryan McClure
            Mar 27 '12 at 4:08













          • I can't see why deleting an answer would lose you any reputation. Punishing a user for tidying up their own content sounds like the opposite of how this site runs.

            – James Henstridge
            Mar 27 '12 at 5:16











          • Deleted it with no loss; thanks for your input.

            – Ryan McClure
            Mar 27 '12 at 5:42








          1




          1





          Beat me to it :P Jason, use James' answer when you select an answer. He was here first :) @James, can I delete an answer without losing reputation? I don't want to have duplicate answers here clogging the page.

          – Ryan McClure
          Mar 27 '12 at 4:08







          Beat me to it :P Jason, use James' answer when you select an answer. He was here first :) @James, can I delete an answer without losing reputation? I don't want to have duplicate answers here clogging the page.

          – Ryan McClure
          Mar 27 '12 at 4:08















          I can't see why deleting an answer would lose you any reputation. Punishing a user for tidying up their own content sounds like the opposite of how this site runs.

          – James Henstridge
          Mar 27 '12 at 5:16





          I can't see why deleting an answer would lose you any reputation. Punishing a user for tidying up their own content sounds like the opposite of how this site runs.

          – James Henstridge
          Mar 27 '12 at 5:16













          Deleted it with no loss; thanks for your input.

          – Ryan McClure
          Mar 27 '12 at 5:42





          Deleted it with no loss; thanks for your input.

          – Ryan McClure
          Mar 27 '12 at 5:42


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f116319%2fhow-to-disable-chromes-incognito-mode%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          GameSpot

          日野市

          Tu-95轟炸機