The simple python script in this folder is used to update hosts for g0og1e from specific URLs, works for Linux, MacOS and Windows.
Success is not guranteed. Please backup your hosts
file before using it.
Path for hosts file in case you need to backup it
-
Windows :
C:\Windows\System32\Drivers\hosts
-
Linux / Mac :
/etc/hosts
Make sure you have installed python 2.7.6+ (but NOT 3.x). Then run the script with Administrator or root (sudo) privilege.
-
Windows :
python hosts.py
# run it as Administrator -
Linux / Mac :
python hosts.py
# run it with sudo or as root
The author thank all the people who share the knowledge for accessing g0og1e very much for their great internet spirit.
这个简单的脚本通过好人们的网址复制hosts
,不包成功,hosts
系统路径见上面。
用法就是以管理员身份运行命令python hosts.py
,注意不是python3,在哪个文件夹下运行都行,没装python的先去装。
感谢互联网!好人一生平安!