jonhadfield / Python Hosts
Licence: mit
a hosts file manager library written in python
Stars: ✭ 90
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Python Hosts
Ultimate.hosts.blacklist
The Ultimate Unified Hosts file for protecting your network, computer, smartphones and Wi-Fi devices against millions of bad web sites. Protect your children and family from gaining access to bad web sites and protect your devices and pc from being infected with Malware or Ransomware.
Stars: ✭ 606 (+573.33%)
Mutual labels: hosts, hostsfile
hosts
🄯Curated lists of hosts files with various domain blocks.🄯
Stars: ✭ 15 (-83.33%)
Mutual labels: hosts, hostsfile
hosts
Generated hosts files from HostsZ goes here
Stars: ✭ 17 (-81.11%)
Mutual labels: hosts, hostsfile
Hblock
Improve your security and privacy by blocking ads, tracking and malware domains.
Stars: ✭ 724 (+704.44%)
Mutual labels: hosts, hostsfile
hostsfile
go tool for working with /etc/hosts files
Stars: ✭ 120 (+33.33%)
Mutual labels: hosts, hostsfile
autohosts
Automate hosts file updates on Linux and MacOS. Block Firefox telemetry, Google snooping and web trackers at the root.
Stars: ✭ 69 (-23.33%)
Mutual labels: hosts, hostsfile
Vs Shell Format
the shellscript、Dockerfile、properties ...... format extension
Stars: ✭ 176 (+95.56%)
Mutual labels: hosts, hostsfile
pornhosts
Pornhosts a hosts-file formatted file of the RPZ zone file
Stars: ✭ 33 (-63.33%)
Mutual labels: hosts, hostsfile
Blacklist
Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒
Stars: ✭ 492 (+446.67%)
Mutual labels: hosts, hostsfile
local-cname
Helper script to emulate a local CNAME DNS by writing to /etc/hosts
Stars: ✭ 44 (-51.11%)
Mutual labels: hosts, hostsfile
hosts.whitelists
Collection of whitelists hosts. See also hosts.extras [ https://git.io/J3b5A ] and StevenBlack's hosts project [ https://git.io/Je0XR ]
Stars: ✭ 27 (-70%)
Mutual labels: hosts, hostsfile
additional-hosts
🛡 List of categorized undesired hosts
Stars: ✭ 13 (-85.56%)
Mutual labels: hosts, hostsfile
GameIndustry-hosts-Template
Unique host templates to enhance own privacy in games, websites and regulary software on Desktop and Android devices
Stars: ✭ 25 (-72.22%)
Mutual labels: hosts, hostsfile
Polish Ads Filter
CertyficateIT - Oficjalne polskie filtry do Adblock, uBlock Origin, Adguard
Stars: ✭ 462 (+413.33%)
Mutual labels: hosts, hostsfile
python-hosts
This is a python library for managing a hosts file. It enables you to add and remove entries, or import them from a file or URL.
Documentation
The docs are hosted on RTD (Read The Docs) here:
http://python-hosts.readthedocs.org/en/latest/index.html.
Installation
pip install python-hosts
Example usage
Adding an entry to a hosts file
from python_hosts import Hosts, HostsEntry
hosts = Hosts(path='hosts_test')
new_entry = HostsEntry(entry_type='ipv4', address='1.2.3.4', names=['www.example.com', 'example'])
hosts.add([new_entry])
hosts.write()
Importing a list of host entries by URL
from python_hosts import Hosts
hosts = Hosts(path='hosts_test')
hosts.import_url(url='https://gist.githubusercontent.com/jonhadfield/5b6cdf853ef629f9b187345d89157280/raw/ddfa4a069fb12bf3c1f285249d44922aeb75db3f/hosts')
hosts.write()
CLI
A command line client using python-hosts can be found here: https://github.com/jonhadfield/hostman
Requirements
Tested on python 2.6, 2.7, 3.3, 3.5, 3.6, 3.7, 3.8, pypy and pypy3
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].