User Agents

Web browsers and everyday web tech, explained

How to Block Incognito Mode on Chrome and Other Browsers

· 4 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Blocking incognito mode prevents users from opening private browsing windows, ensuring that all web activity is recorded in the browser history. This is primarily achieved by modifying the system registry on Windows or using terminal commands on macOS, as most browsers do not provide a built-in toggle switch in their standard settings menu to disable this feature.

What You'll Need

  • A computer with administrative privileges (Administrator account).
  • Access to the Registry Editor (Windows) or Terminal (macOS).
  • A backup of your registry or system settings (recommended before making system-level changes).

Step-by-Step

Disabling Incognito Mode on Windows (Google Chrome)

  1. Press the Windows Key + R on your keyboard to open the Run dialog box.
  2. Type regedit into the box and press Enter. If a User Account Control prompt appears, click Yes to allow the Registry Editor to open.
  3. In the left-hand sidebar, navigate through the following folders: HKEY_LOCAL_MACHINE > SOFTWARE > Policies > Google.
  4. If you do not see a folder named Google under Policies, right-click the Policies folder, select New > Key, and name it Google.
  5. Right-click the Google folder, select New > Key, and name this new folder Chrome.
  6. Right-click the Chrome folder, select New > DWORD (32-bit) Value.
  7. Name this value Incognito.
  8. Double-click the Incognito value you just created. In the "Value data" field, change the number from 0 to 1.
  9. Click OK and close the Registry Editor.
  10. Restart Google Chrome. The "New Incognito Window" option in the menu will now be greyed out or removed.

Disabling Private Browsing on macOS (Safari)

  1. Click the Apple Menu in the top left corner and select System Settings (or System Preferences).
  2. Navigate to Screen Time.
  3. Turn on Screen Time if it is not already active.
  4. Go to Content & Privacy and toggle the switch to On.
  5. Select Content Restrictions.
  6. Under the "Web Content" dropdown menu, select Limit Adult Websites.
  7. Once this restriction is active, Safari automatically disables the option to open Private Browsing windows.
  8. Click Done to save the changes.

Disabling Private Browsing on macOS (Chrome)

  1. Open the Terminal app (found in Applications > Utilities).
  2. Type the following command exactly: defaults write com.google.Chrome IncognitoModeAvailability -integer 1
  3. Press Enter.
  4. Restart Google Chrome for the changes to take effect.

Common Mistakes

  • Incorrect Registry Path: Creating the "Incognito" key in the wrong folder (e.g., under HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE) may result in the setting not applying to all users on the machine.
  • Typing Errors: In the Windows Registry or macOS Terminal, a single misspelling (such as "IncognitoMode" instead of "Incognito") will cause the command to fail without an error message.
  • Forgetting to Restart: Changes to the registry or terminal defaults often do not take effect until the browser is completely closed and reopened.
  • Assuming it blocks other browsers: Changing the setting for Chrome does not affect Edge, Firefox, or Safari. Each browser requires its own specific set of steps.

Tips

  • Create a Restore Point: Before editing the Windows Registry, create a System Restore point. This allows you to revert the computer to a previous state if something goes wrong.
  • Use a Password: If you are using Screen Time on macOS to block private browsing, ensure you set a Screen Time passcode so that others cannot simply turn the restriction off.
  • Check for Updates: Occasionally, browser updates may reset certain policy flags. If incognito mode suddenly becomes available again, re-run the steps.

Troubleshooting

  • The option is still available: Ensure you have completely quit the browser. On Windows, check the Task Manager to make sure no background Chrome processes are still running.
  • Registry Editor is disabled: If you cannot open regedit, you may be using a guest account or a restricted user profile. You must log in as an Administrator.
  • Terminal command didn't work: Verify there are no extra spaces in the command. Ensure you are using the correct browser identifier (com.google.Chrome).
  • Screen Time is not restricting Safari: Ensure that "Limit Adult Websites" is specifically selected; simply turning on Screen Time is not enough to disable private browsing.

Frequently Asked Questions

Does this stop users from clearing their history?

No. Blocking incognito mode prevents the start of a private session, but users can still manually clear their history from the settings menu unless you implement additional group policy restrictions.

Can I reverse these changes?

Yes. On Windows, go back to the Registry Editor and change the Incognito value from 1 back to 0, or delete the key entirely. On macOS Terminal, change the integer from 1 to 0.

Does this work on mobile devices?

These steps are for desktop computers. To block incognito mode on mobile, you typically need to use third-party parental control apps or built-in OS features like Apple's Screen Time (iOS) or Google Family Link (Android).

Will this affect my saved passwords?

No. This modification only affects the ability to open a private window; it does not impact your bookmarks, saved passwords, or general browsing data.

Does this block other browsers like Firefox?

No. Each browser has its own unique registry key or configuration file. To block Firefox, you would need to create a policies.json file in the Firefox installation directory.