Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/ HostsY Public archive

Portable, lightweight, and minimalist host file generator

License

Notifications You must be signed in to change notification settings

Laicure/HostsY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HostsY

GitHub All Releases GitHub last commit (branch)

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

Revamped C# version in HostsZ

Minimum Requirement: .NET v4.5

Auto Parameters (requires admin privileges):

Required:

  • -auto
    • Initializes Auto Generate State
    • Directly replaces the hosts file in C:\Windows\System32\drivers\etc
    • Requires a Data folder beside the app
      • 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
HostsY.exe
Data
----\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:

  • -sort
    • Sorts the Domains (ascending; source-wise)
  • -tab
    • Uses tab instead of spaces between Target IP and Domain Name
  • -logs
    • Generate generation logs; auto-generates a logs.txt inside the Data folder
  • -dpl
    • Indicates that it will generate <2~9> number of domains per line (e.g. -dpl4) to reduce the file size
  • -zip
    • Generates a zipped hosts file inside the Data folder

Check HostY_host for the generated files