Skip to content

Instantly share code, notes, and snippets.

@hafiz-muhammad
Last active March 14, 2024 18:07
Show Gist options
  • Save hafiz-muhammad/891e51a87d4e8cbabdd43441663cc38b to your computer and use it in GitHub Desktop.
Save hafiz-muhammad/891e51a87d4e8cbabdd43441663cc38b to your computer and use it in GitHub Desktop.
Block Windows telemetry via host file.

Repo containing link below: https://github.com/hagezi/dns-blocklists?tab=readme-ov-file#native Copy & paste from https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/hosts/native.winoffice.txt and add to Windows host file.

Host file location: C:\Windows\System32\drivers\etc\hosts

How to:

  1. Drag & drop host file to desktop.
  2. Paste everything from https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/hosts/native.winoffice.txt below everything else.
  3. Drag & drop the host file back into C:\Windows\System32\drivers\etc.
  4. Click 'Allow on Device' through Windows Defender application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment