Skip to content
Pull and install the latest host file from someonewhocares.org
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
someonewhocares

README.md

someonewhocares

Pull and install the latest host file from http://someonewhocares.org provided by Dan Pollock

Example

Run the script with no arguments to pull and install the latest host file. This script does not need to be run as root, as it will attempt to install the host file with sudo if it fails at first.

$ ./someonewhocares
> pulling latest host file from http://someonewhocares.org/hosts//hosts... done
> validating host file... passed
> installing new host file
tee: /etc/hosts: Permission denied
> failed - retrying with sudo
Password:
> finished! # Last updated: Nov 24th, 2013 at 10:24

The host file downloaded is automatically validated to ensure that each IP address is 127.0.0.1, 255.255.255.255, 0.0.0.0, ::1, or fe80::1%lo0 before being installed.

Usage

$ someonewhocares
usage: someonewhocares [options]

pull and install the latest host file from someonewhocares.org

options
  -h           print this message and exit
  -t <type>    the host file type to pull, can be [ipv6, zero], leave blank for default
  -u           uninstall the host file by replacing it with a default template

License

MIT License

You can’t perform that action at this time.