Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

simeononsecurity/System-Wide-Windows-Ad-Blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

34 Commits

Repository files navigation

System-Wide-Windows-Ad-Blocker

This script is a Windows PowerShell script that downloads and applies the "StevenBlack/hosts" file to the system's "hosts" file, which can be used to block certain domains/websites by mapping them to an IP address of your choice (usually the IP address of the local machine). The script checks the internet connection and proxy settings, and tries downloading the latest version of the "hosts" file from two different sources: "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" and "http://sbc.io/hosts/hosts". If the download fails, the script continues with a local copy of the "hosts" file. The script requires elevated privileges to run and modifies the ".NETFramework" registry key to use only the latest version of the .NET framework.

We are seeking all comments and concerns for this repo. Please submit an issue with any information you might have.

Known Issues

We've so far been unable to replicate the issue, but on some systems a issue occurs from the hosts file being too large. This causes windows to be unable to resolve any domain at all. We suspect this is caused by low spec system performance. If this is you, please revert the changes with the guide below and submit an issue.

Lists Used:

Example:

Manual install:

The script may be launched from the extracted GitHub download like this:

.\sos-system-wide-windows-ad-block.ps1

Automated install:

Run the latest version of the script automatically:

iwr -useb 'https://simeononsecurity.ch/scripts/soswindowsadblocker.ps1' | iex

Removal

#1

Links:

About

Block Ads, Tracking, and Telemetry System Wide

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

Contributors