hostfileblocklistmanager

command module
v0.0.0-...-f0ed6c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

README

��# HostfileBlocklistManager A simple command-line based DNS blocklist manager.

Features

  • Use blocklists compatible with Pi-hole or AdGuard Home
  • Whitelist domains (Domains whitelisted take precedence over blocklists and blacklist)
  • Blacklist domains

Usage

Add a blocklist

NOTE: You need to run this within an elevated Command Prompt/Powershell because of the need to edit the hosts file

.\HostfileBlocklistManager.exe -blocklist=<URL>

Whitelist a domain

.\HostfileBlocklistManager.exe -whitelist=<domain>

Blacklist a domain

.\HostfileBlocklistManager.exe -blacklist=<domain>

Update all blocklists

NOTE: You need to run this within an elevated Command Prompt/Powershell because of the need to edit the hosts file

.\HostfileBlocklistManager.exe -update

Examples

NOTE: You need to run this within an elevated Command Prompt/Powershell because of the need to edit the hosts file

.\HostfileBlocklistManager.exe -blocklist=https://adaway.org/hosts.txt

Planned features

  • Deduplicate entries in blocklists
  • MacOS support

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL