All Projects → JohyC → Hosts

JohyC / Hosts

Licence: other
Python解析域名生成Hosts文件

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Hosts

Funceble
[ARCHIVED] Please report to https://github.com/funilrys/PyFunceble.
Stars: ✭ 25 (-44.44%)
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 (-40%)
Mutual labels:  hosts, hostsfile
Python Hosts
a hosts file manager library written in python
Stars: ✭ 90 (+100%)
Mutual labels:  hosts, hostsfile
Blacklist
Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒
Stars: ✭ 492 (+993.33%)
Mutual labels:  hosts, hostsfile
local-cname
Helper script to emulate a local CNAME DNS by writing to /etc/hosts
Stars: ✭ 44 (-2.22%)
Mutual labels:  hosts, hostsfile
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 (+1246.67%)
Mutual labels:  hosts, hostsfile
pornhosts
Pornhosts a hosts-file formatted file of the RPZ zone file
Stars: ✭ 33 (-26.67%)
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 (-44.44%)
Mutual labels:  hosts, hostsfile
Hosts.extras
Extra rules for https://github.com/StevenBlack/hosts project
Stars: ✭ 120 (+166.67%)
Mutual labels:  hosts, hostsfile
Vagrant Hostmanager
📝 A Vagrant plugin that manages hosts files within a multi-machine environment.
Stars: ✭ 1,442 (+3104.44%)
Mutual labels:  hosts, hostsfile
Polish Ads Filter
CertyficateIT - Oficjalne polskie filtry do Adblock, uBlock Origin, Adguard
Stars: ✭ 462 (+926.67%)
Mutual labels:  hosts, hostsfile
Switchhosts
Switch hosts quickly!
Stars: ✭ 15,408 (+34140%)
Mutual labels:  hosts, hostsfile
Wally3k.github.io
Repo for Firebog hosting
Stars: ✭ 427 (+848.89%)
Mutual labels:  hosts, hostsfile
Hblock
Improve your security and privacy by blocking ads, tracking and malware domains.
Stars: ✭ 724 (+1508.89%)
Mutual labels:  hosts, hostsfile
Google Hosts
Google hosts generator
Stars: ✭ 3,277 (+7182.22%)
Mutual labels:  hosts, hostsfile
Mobile Hosts
HOSTS files converted or sourced from various filter lists to prevent ads and tracking.
Stars: ✭ 91 (+102.22%)
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 (+53.33%)
Mutual labels:  hosts, hostsfile
hosts
🄯Curated lists of hosts files with various domain blocks.🄯
Stars: ✭ 15 (-66.67%)
Mutual labels:  hosts, hostsfile
Hmirror
Mirror of multiple third-party blocklists (updated daily).
Stars: ✭ 104 (+131.11%)
Mutual labels:  hosts, hostsfile
Hostsvn
Hosts block ads of Vietnamese
Stars: ✭ 145 (+222.22%)
Mutual labels:  hosts, hostsfile

Hosts

提示

由于最近steam被工信部拉黑了。直接改Hosts文件可能作用不大;需要配合一下措施!

  1. 在steam启动快捷方式上右键打开属性;
  2. 在属性 --> 快捷方式 --> 目标 尾部加上参数 ' -tcp' or '-websocket';(参数前必须预留一个空格) 一下图为例:

image

项目介绍

  1. 目标:

    • 添加 epic无法登录和领取免费游戏 hosts。
    • 第一次写python,练手学习.....

脚本介绍

python依赖

python引入rich库,使用脚本前需 pip install -r requirements;

命令介绍

cd 至 workingDir 文件夹后 执行以下操作;

  1. python ph.py -a domain domain ... -a命令,在默认domain列表后加入需要解析的域名;
  2. python ph.py -d domain domain ... -d命令,使用自定义域名替换默认解析列表;
  3. python ph.py -f file -f 命令,接收文本文件。 解析文本文件中的域名;

以上命令将在当前文件夹中生成hosts.txt文件。 使用 -o 命令自定义输出文件名;(-o outputFile)

hosts

本仓库 hosts文件介绍

  1. hosts.txt 文件包含 GitHub hosts,Epic hosts;
  2. Github 和 Epic 分别有单独 hosts文件;

hosts本仓库在线同步地址

  1. Github https://github.com/JohyC/Hosts/blob/main/hosts.txt

  2. Gitee https://gitee.com/yuchi-shentang/GithubHosts/blob/main/hosts.txt

  3. Gitea https://www.foul.trade:3000/Johy/Hosts/raw/branch/main/hosts.txt

  4. 服务器 由于安全问题,不再提供服务链接,请使用gitea链接同步;

仓库同步地址

  1. gitea https://www.foul.trade:3000/Johy/Hosts
  2. gitee https://gitee.com/yuchi-shentang/GithubHosts

使用方式

通过 SwitchHosts! 自动更新 推荐

推荐使用 SwitchHosts 配置hosts,操作简单,支持跨平台。

详细介绍 : SwitchHosts! 还能这样管理hosts,后悔没早点用

  1. 打开 SwitchHosts ,点击左上角加号 添加hosts同步规则。
  2. 规则配置:

image

手动配置hosts

macOS

hosts文件位置:/etc/hosts

macOS系统下修改需要按照如下方式:

  1. 打开(访达)Finder。
  2. 组合键Shift+Command+G打开"前往文件夹"。
  3. 输入框中输入/etc/hosts;跳转到hosts文件位置。

注意:VS Code可以直接修改和保存,不需要以下步骤。

  1. 复制hosts文件到桌面,右键点击文件,「打开方式」—「文本编辑」,复制本仓库提供的hosts文件内容至最下方。

  2. 使用修改之后的hosts文件替换掉原本/etc/hosts 文件。

注意:如果弹出密码输入框,你需要输入你当前登录账号对应的密码。

  1. 最后刷新缓存:
sudo killall -HUP mDNSResponder

Windows

hosts文件位置:C:/windows/system32/drivers/etc/hosts

将前文hosts内容追加到hosts文件,然后刷新DNS缓存:

# win键 + r键;输入cmd,回车;在cmd命令行窗口中输入以下!
ipconfig /flushdns

TODO

  • GitHub Actions自动更新hosts内容;
  • GitHub Actions自动更新本仓库代码至Gitee;(可从Gitee获取最新hosts文件)
  • 自建git服务器,并同步仓库内容;(解决Gitee hosts.txt文件违规问题)
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].