Skip to content

Python script that automatically updates hosts file, exclude addresses from the blacklist.

Notifications You must be signed in to change notification settings

alcortazzo/update-hosts-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python script that automatically updates hosts file from StevenBlack/hosts, exclude addresses from the blacklist.

Supported systems:

  • Linux
  • Windows
  • macOS

Installation & Usage:

Linux or macOS
# clone the repo
$ git clone https://github.com/alcortazzo/update-hosts-file.git

# change the working directory to update-hosts-file
$ cd update-hosts-file

# install python3 and python3-pip if they are not installed

# install the requirements
$ python3 -m pip install -r requirements.txt

# run script as root user 
$ sudo python3 main.py
Windows
# OPEN POWERSHELL AS ADMIN!

# clone the repo
$ git clone https://github.com/alcortazzo/update-hosts-file.git

# change the working directory to update-hosts-file
$ cd update-hosts-file

# install python3 and python3-pip if they are not installed

# install the requirements
$ python3 -m pip install -r requirements.txt

# run script as root user 
$ python main.py

About

Python script that automatically updates hosts file, exclude addresses from the blacklist.

Topics

Resources

Stars

Watchers

Forks

Languages