Skip to content

Python script designed to fetch domains from a list and add them to /etc/hosts

License

Notifications You must be signed in to change notification settings

threadexio/etc-hosts-adblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

etc-hosts-adblock

Python script designed to fetch domains from a list and add them to /etc/hosts

Instructions

  1. Install the python requests module
pip install requests
or
pip3 install requests
  1. Add more lists in adlists.list (Optional)

  2. Run the script

./get_adblock.py
or
python get_adblock.py
  1. Copy the newly created file to /etc/hosts

NOTE: This script makes a backup of your current /etc/hosts in hosts.bak

  1. Flush your DNS cache This can be done in numerous ways, just search on your search engine of choice: how to flush the dns cache on [OS or distro name here]

About

Python script designed to fetch domains from a list and add them to /etc/hosts

Topics

Resources

License

Stars

Watchers

Forks

Languages