Git Product home page Git Product logo

system-wide-windows-ad-blocker's Introduction

System-Wide-Windows-Ad-Blocker

VirusTotal Scan

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

    SimeonOnSecurity Logo

Links:

system-wide-windows-ad-blocker's People

Contributors

simeononsecurity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

system-wide-windows-ad-blocker's Issues

It killed my internet and how to fix it

  • downloaded soswindowsadblocker.ps1
  • unblocked it via properties in windows right click option menu
  • ran the script.
  • The expectation was to block just ads but, no requests are being resolved.

Desktop:

  • OS: Windows 11 Home 21H2
  • Browser : firefox 100, chrome 101

are there any prerequisites? any step before/after the script installation?

how to fix/revert these changes?

Can't use my connection anymore.

Describe the bug
Once i installed the filter it made my browsers stall for minutes, and give me: "ERR_TIMED_OUT", currently writing from my tablet, please just tell me how to uninstall it!

To Reproduce
Steps to reproduce the behavior:

  1. Go to any browser
  2. Click on whatever website
  3. Wait a bit.
  4. See error.

Expected behavior
I thought i could use this so that all of my apps have their ads blocked, but as described above, it didn't work..

Desktop (please complete the following information):

  • OS: windows 10.
  • Browser Vivaldi/edge.
  • Version i dunno.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.