Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Last active June 12, 2021 03:56
Show Gist options
  • Save wpsmith/a05b32151928d7de284cc921035418c5 to your computer and use it in GitHub Desktop.
Save wpsmith/a05b32151928d7de284cc921035418c5 to your computer and use it in GitHub Desktop.
WINDOWS: Prevent Stuffs
REG ADD HKLM\SOFTWARE\Policies\Google\Chrome /v BrowserGuestModeEnabled /t REG_DWORD /d 0
REG ADD HKLM\SOFTWARE\Policies\Google\Chrome /v IncognitoModeAvailability /t REG_DWORD /d 1
REG ADD HKLM\SOFTWARE\Policies\Google\Chrome /v AllowDeletingBrowserHistory /t REG_DWORD /d 0
REG ADD HKLM\SOFTWARE\Policies\Mozilla\Firefox /v DisablePrivateBrowsing /t REG_DWORD /d 1
REG ADD HKLM\SOFTWARE\Policies\Microsoft\Edge /v InPrivateModeAvailability /t REG_DWORD /d 1
REG ADD HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Privacy /v EnableInPrivateBrowsing /t REG_DWORD /d 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment