Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bahamas10/someonewhocares

Pull and install the latest host file from someonewhocares.org
https://github.com/bahamas10/someonewhocares

Last synced: about 2 months ago
JSON representation

Pull and install the latest host file from someonewhocares.org

Awesome Lists containing this project

README

        

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 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