Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Laicure/HostsZ

Repository files navigation

HostsZ

GitHub All Releases GitHub last commit (branch)

Simple hosts file compiler for Windows. Inspired by Steven Black's hosts repository.

VB.NET version in HostsY

Auto Parameters (requires admin privileges):

Required:

  • -auto
    • Initializes Auto Generate State
    • Directly replaces the hosts file in C:\Windows\System32\drivers\etc
    • Required: source.txt for the host sources
    • Optional: black.txt for domain blacklist
    • Optional: white.txt for domain whitelist
    • Optional: loopback.txt for domain loopbacks
HostsZ.exe
black.txt
source.txt
white.txt
loopback.txt
Possible loopbacks:
0.0.0.0
broadcasthost
ip6-allhosts
ip6-allnodes
ip6-allrouters
ip6-localhost
ip6-localnet
ip6-loopback
ip6-mcastprefix
local
localhost
localhost.localdomain

Optional Parameter after -auto:

  • -dpl
    • Indicates that it will generate <2~9> number of domains per line (e.g. -dpl4) to reduce the file size

Check hosts for the generated files