/blockns

System-wide ad blocker based on hosts file, focused on easy management

Primary LanguagePythonMIT LicenseMIT

BlockNS

A script that will download, backup and install hosts blocklist in order to block ads.

Tested on

  • Windows 10
  • Arch Linux

Preparing & Running

Firstly we want to clone (download) the repository

git clone https://github.com/WhiteOnBlackCode/blockns
cd ./blockns

A virtual-enviorment is optional yet recommended. Install python dependencies via pip

pip install -r ./requirements.txt

Once all dependencies are intact run the script as root!

python3 ./blockns.py

License

This project is licensed under the MIT License - see the LICENSE.md file for details