Reroutes DNS requests to block unwanted content
 
 
Go to file
Justin Reichardt 0d063f31a2 Added version information to the program
--version flag shows version information
2022-06-12 20:30:03 -05:00
src Added version information to the program 2022-06-12 20:30:03 -05:00
.gitignore Changing language to go 2021-12-01 13:56:41 -06:00
COPYING Improved the the Copyright 2021-08-28 13:59:33 -05:00
Makefile Added version information to the program 2022-06-12 20:30:03 -05:00
Readme.md Created a Makefile to build and install 2022-06-12 20:10:47 -05:00
version Created a Makefile to build and install 2022-06-12 20:10:47 -05:00

Readme.md

rhosts

This reroutes urls to 0.0.0.0 and ::1 in order to block them from being reached. This is useful for blocking different types of content.

How to use

Open the config file:

    Linux: /etc/rhosts/rhosts.cfg

    Windows: \ProgramData\rhosts\rhosts.cfg

There are 3 types of entries: download, site, and whitelist. Downloads are downloaded and stripped of comments and bad entries if possible before being added to a list of sites. Whitelisted urls are removed from the list of sites. From there all the urls are added to the hosts file for both IPv4 and IPv6. You can also add comments by prepending with a '#'.

Example:

    # This is a static entry
    site=www.site.xyz
    # This is a download entry
    download=w3.site.xyz/location/to/config.txt
	# This is a whitelist entry
	whitelist=www.site.xyz

How to Install

Build Dependencies:

  • make
  • golang

Linux/Systemd:

	make install

Windows:

	make build-win

The windows build can be performed on a Linux system and moved to Windows.