Git Product home page Git Product logo

huhamhire-hosts's Introduction

Hosts Setup Utility

Introduction

Since the governments of some countries are using technical methods blocking internet access to some websites and web service providers which includes some world famous sites like Google, YouTube, twitter, Facebook, and Wikipedia etc., we designed this tiny utility in order to help people getting through the Internet blockade.

Hosts Setup Utility provides basic tools to manage the hosts file on current operating systems. It also provides both support for Graphical Desktop environment with Graphical User Interface (GUI) and CLI environment with Text-based User Interface (TUI).

Users could use these tool to modify the hosts to visit specified websites or services blocked by ISP/government. Functions which help users to backup/restore hosts files are also provided.

Hosts Setup Utility is designed by huhamhire-hosts team. For further information, please visit our website.

Developer Documentation

Developers could find our project documentation by visiting https://hosts.huhamhire.com/document/.

This documentation contains descriptions of modules and functions which are used in the current version of Hosts Setup Utility. These documents also provides some optional methods for developers to help improve this tool.

License

Licensed under the GNU General Public License, version 3. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

System Requirements

Here are the system requirements needed for using Hosts Setup Utility.

Graphical User Interface (GUI)

System requirements to run Hosts Setup Utility on Graphical Desktop are listed here:

  • Microsoft Windows 2000 or newer for Windows users.

  • Mac OS X 10.6 or newer for Macintosh users.

  • Linux/X11 desktop with Python 2 and PyQt4 for Linux/X11 users.

  • Internet access is required for retrieving the latest hosts data file.

    • On some linux distributions, pre-built packages of PyQt4 can be found in software repositories. For example, you can install PyQt4 on a debian distribution simplly using:

      apt-get install python-qt4

More requirements are needed for developers:

  • Python 2.6/2.7 with PyQt4 extension for developers.
  • py2exe or py2app would be required while making binary excutables for specified platforms.

Text-based User Interface (TUI)

Any devices with Python 2 and Python Standard Library INSTALLED could run Hosts Setup Utility in TUI mode from a 80x24 terminal. In addition to this, TUI mode could also be operated via SSH on remote devices/machines/servers. All you need is a system with Python 2 installed.

Get Started

Since Hosts Setup Utility supports both Graphical Desktop environment with Graphical User Interface (GUI) and CLI/terminal environment with Text-based User Interface (TUI), users could the way they would like to launch this tool.

However, GUI mode is highly recommended because several features like backup/restore hosts file are still not supported in TUI mode currently.

  • If the program is not running with privileges to modify the hosts file, a warning message would be shown and you could only do operations like backup hosts file and update the local data file. Plus, TUI mode could not get started in this condition.

Graphical User Interface (GUI) Mode

  • Windows(x86/x64): Run hoststool.exe from the binary excutables package to get started.

    • "Run as Administrator" is needed for operations to change the hosts file on Windows Vista or newer.
  • Mac OS X: Run HostsUtl application from the binary excutables package to get started.

    • Because of the locale problem with py2app, the automatic language selection may not work correctly on Mac OS with binary executable files. You can just choose the language on your on choice.
  • Linux/X11(Source code): Run command "python hoststool.py" to get started.

    • All platforms with Python and the PyQt4 could use this method to run with the source code.
    • A desktop environment with PyQt4 and python is needed only for Linux/X11 users to start a GUI Session.

Text-based User Interface (TUI) Mode

  • Windows Excutable(x86/x64):

    1. Start a command line(could be cmd or Power Shell).
      • "Run as Administrator" is needed for operations to change the hosts file on Windows Vista or newer.
    2. Change directory to the folder contains binary executable files. of Hosts Setup Utility.
    3. Run hoststool_tui.exe with an argument -t from the directory to get started.
  • Python Source Code:

    Python Source Code is very easy to be started through any terminals on any operating systems.

    1. Change your directory to the source script.
    2. Run python hoststool.py -t in the terminal. Of course, wirte privileges to access the hosts file on current system is required. If not, a warning message box would show up and then terminate current session.

User Customized Hosts

Users are allowed to add customized hosts list as an independent module to make a hosts file. All you need to do is create a simple text file named custom.hosts in the working directory, and put your own hosts entries into this file. Then you would find a Customized Hosts option in the function list.

  • Non-ASCII characters are not recommended to be put into the customized hosts file.

Author/Maintainer

huhamhire mailto:[email protected]

huhamhire-hosts's People

Contributors

aguegu avatar huhamhire avatar skela avatar

huhamhire-hosts's Issues

赶快更新吧,不好用了

10月24日,使用最新版hosts,不能访问google.com,google.com.hk,google.
com/ncr等,换回系统默认hosts可以访问。期望快速更新。。。

Original issue reported on code.google.com by [email protected] on 24 Oct 2012 at 7:55

希望开启SVN功能

你好,能不能开启SVN功能呀,这样就可以把hosts 
直接下载到DD-WRT 或者TOMATO中的dnsmasq中了。谢谢。

Original issue reported on code.google.com by [email protected] on 11 Dec 2012 at 2:05

请增加一个域名:panoramio.com

您遇到的问题:
1.请增加:74.125.65.141 www.panoramio.com 
2.以便谷歌地球能看到照片。
3.现在谷歌地球不能登录用户账号,在这个网址卡死了:https:
//www.google.com/accounts/o8/GetOAuthToken?from_login=0&scope=

您使用的hosts文件版本:1.2.9
您使用的操作系统:Win7
您所在的区域(省/市):广东
您使用的ISP(网络运营商):电信
网络环境(IPv4/IPv6):ipv4

有关问题的其他描述:

Original issue reported on code.google.com by [email protected] on 27 Dec 2012 at 6:59

hosts 文件可能存在问题

OS win7 32 
http://answers.microsoft.com/zh-hans/windows/forum/windows_7-system/svchostexe-n
etwork/eb410d34-4642-494a-8d38-959fb90ce9f0?msgId=55d29a3f-fa46-484e-bc0a-1a77a8
8ed2c3

出现这样的问题,按照该方法以解决

Original issue reported on code.google.com by [email protected] on 19 Nov 2012 at 4:05

教育网IPV6失效

您遇到的问题:
1.除了谷歌网页搜索,谷歌其他服务无法访问
2.http://hosts.huhamhire.com/无法访问
3.

您使用的hosts文件版本:V1.2.9
您使用的操作系统:WINDOWS 7
您所在的区域(省/市):SHANGHAI
您使用的ISP(网络运营商):教育网
网络环境(IPv4/IPv6):IPV6

有关问题的其他描述:以前上得了YOUTUBE,但也经常视频加载�
��度很慢,或者找不到视频。


Original issue reported on code.google.com by [email protected] on 11 Jan 2013 at 11:27

请考虑将遮蔽激活器设置为可选

您好,

应对 
GFW,倡导自由的互联网是一件非常好的事情,但是自由的互��
�网不等于提供滋生盗版的温床。我可以理解添加这两个遮蔽�
��活器的想法,但这个做法并没有令互联网更加自由。

请最少考虑将下面遮蔽激活器的HOST设置为可选,或提供为补�
��供需要的人下载,而不是作为软件的主体。
•屏蔽Adobe激活服务器(支持CS6) 
•屏蔽Parallels Desktop 7激活服务器 

Cheers,
Ye

Original issue reported on code.google.com by solaris.navi on 5 Oct 2012 at 8:35

挂了

GFW昨天垒墙了现在Google服务全面掉线(2012年11月18号版)
这里是河南联通

Original issue reported on code.google.com by [email protected] on 30 Jan 2013 at 1:51

facebook 无法上传图片

您遇到的问题:
1. facebook 无法上传图片,只能发文字贴
2. Youtube可以登录,但无法播放视频

您使用的hosts文件版本:HostsPanel_win_1.0beta
您使用的操作系统:Win7 Pro
您所在的区域(省/市):Shanghai
您使用的ISP(网络运营商):电信
网络环境(IPv4/IPv6):IPv4

有关问题的其他描述:

Original issue reported on code.google.com by [email protected] on 5 Feb 2013 at 7:02

facebook上app的支持

facebook改https支持不错,但是一些app比如games都进不去啊,游��
�是要单独添加吗,怎么添加某一特下的游戏host

Original issue reported on code.google.com by [email protected] on 19 Sep 2012 at 7:45

请问ipv6我该如何设置啊?我用的是电信adsl拨号,每次ip都不一样啊

您遇到的问题:
1.想上youtube和twitter,但是不知道ipv6怎么设置?
2.ipv4toipv6的通道该如何设置,我的是adsl拨号上网,ip每次拨��
�都不一样

您使用的hosts文件版本:
您使用的操作系统:win7
您所在的区域(省/市):安徽
您使用的ISP(网络运营商):电信
网络环境(IPv4/IPv6):

有关问题的其他描述:


Original issue reported on code.google.com by [email protected] on 20 Dec 2012 at 11:56

FB和推特一直我从来没打开过一次,加HTTPS也是,其他GOOGLE的能正常使用

您遇到的问题:
1.FB和推特一直我从来没打开过一次,加HTTPS也是,一直是链��
�超时,我用的最新HOSTS和GOOGLE的DNS了,还是不行其他GOOGLE的��
�正常使用,速度不错

请教

您所在的区域(省/市):广东
您使用的ISP(网络运营商):电信
网络环境(IPv4/IPv6):

有关问题的其他描述:


Original issue reported on code.google.com by [email protected] on 6 Feb 2013 at 2:52

移动精简版ipv4 在iPad上的问题

您遇到的问题:以下都是在IPAD平台上,ios 6.1.1.
1.使用g+客户端出现错误,什么都不能看
2.但是用浏览器访问G+倒是很正常。
3.不修改HOSTS,本身通过G+客户端就能看G+就是图片显示速度太
慢。

您使用的hosts文件版本:
您使用的操作系统:ios 6.1.1
您所在的区域(省/市):江苏
您使用的ISP(网络运营商):电信ADSL
网络环境(IPv4/IPv6):IPv4

有关问题的其他描述:

Original issue reported on code.google.com by [email protected] on 28 Feb 2013 at 9:24

archlinux get hostname wrong

What steps will reproduce the problem?
1. Archlinux System
2. Pyhton2
3. file: hosts_setup_OnL.py v1.2.3 
   url: 
 http://sourceforge.net/projects/huhamhirehosts/files/hosts%20v1.2.3/hosts_setup_OnL.py/download
What is the expected output? What do you see instead?
set_os 返回hostname有问题, 因为archlinux 没有/etc/hostname文件

What version of the product are you using? On what operating system?
hosts_setup_OnL.py v1.2.3 on Archlinux x86_64, python2.7

Please provide any additional information below.
建议用os.system('hostsname')

Original issue reported on code.google.com by [email protected] on 13 May 2012 at 3:05

安卓端 G+无效..

问题描述:
1.安卓端 G+无效..
2.
3.

您使用的hosts文件版本:
您使用的操作系统:
网络环境(IPv4):

有关问题的其他描述:

Original issue reported on code.google.com by [email protected] on 19 Nov 2012 at 9:24

更新了Python最新版依然不能打开Google搜索页面的连接

问题描述:
1.使用PY文件更新了Google 
Hosts,能搜索但跳转链接不能打开,尝试更新了DNS并采用OpenVP
N的DNScrypt。
2.屏蔽了友盟等网站,这对于开发者来不算是一件好事吧。
3.无法打开Facebook和Twitter网站,

您使用的hosts文件版本:最新
您使用的操作系统:OS X10.8.2
网络环境(IPv4/IPv6):铁通/电信

有关问题的其他描述:

Original issue reported on code.google.com by [email protected] on 3 Dec 2012 at 2:11

请教一个dnsmasq的设置问题

我在路由器加上以下这些,但看YOUTUBE有一点问题,并不是不�
��看YOUTUBE,是看不了GOOGLE+里面的视频,出现什么稍后再试之�
��的提示,我试了很多次,排除网络问题,上YOUTUBE.COM倒是能�
��,是不是GOOGLE+里的视频还要加其他的一些地址?

我没有用HOSTS,因为经常更新,太烦了,不过我加上YOUTUBE的��
�一段IPV6HOSTS,GOOGLE+里的视频又能看了,麻烦谁帮忙分析一下

server=/google.com/2001:470:20::2
server=/www.youtube-nocookie.com/2001:470:20::2
server=/youtu.be/2001:470:20::2
server=/gmail.com/2001:470:20::2
server=/youtube.com/2001:470:20::2
server=/ytimg.com/2001:470:20::2
server=/googlecode.com/2001:470:20::2
server=/googlegroups.com/2001:470:20::2
server=/googlepages.com/2001:470:20::2
server=/appspot.com/2001:470:20::2
server=/blogspot.com/2001:470:20::2
server=/blogger.com/2001:470:20::2
server=/goo.gl/2001:470:20::2
server=/ggpht.com/2001:470:20::2
server=/feedburner.com/2001:470:20::2
server=/googlelabs.com/2001:470:20::2
server=/gstatic.com/2001:470:20::2
server=/googleapis.com/2001:470:20::2
server=/googleusercontent.com/2001:470:20::2

目前只有我上面说的那个问题,其他的GOOGLE服务使用一切正��
�

网络环境(IPv4/IPv6):IPV6

有关问题的其他描述:


Original issue reported on code.google.com by [email protected] on 11 Feb 2013 at 5:37

twitter 的ipv6地址貌似无效吧

问题描述:
如题,ping得通,但无法访问,怀疑其地址有误

您使用的hosts文件版本:ipv6_win_ansi.zip
您使用的操作系统:win7 x64
网络环境(IPv4/IPv6):ipv6


Original issue reported on code.google.com by [email protected] on 4 Dec 2012 at 5:46

使用该hosts后,本地化的google music manager挂了

问题描述:
1.无法登陆
2.连接不到google服务器
3.只能关闭该应用。取消hosts后,正常。应该是Ip问题。

您使用的hosts文件版本:11月18日脚本
您使用的操作系统:win8
网络环境(IPv4/IPv6):ipv4

有关问题的其他描述:


Original issue reported on code.google.com by [email protected] on 4 Dec 2012 at 3:12

安卓google地图打开后点击地点详情不能打开

问题描述:
google地图可以打开,但是进入点击查看地点详情移至在刷新��
�

您使用的hosts文件版本:移动精简版
您使用的操作系统:安卓
网络环境(IPv4/IPv6):4

有关问题的其他描述:顺道赞一下,win7PC版本非常好,省的��
�google的app代理流量了,感谢


Original issue reported on code.google.com by [email protected] on 27 Nov 2012 at 5:15

请问这些hosts 安卓手机可以用吗

您遇到的问题:
1.
2.
3.

您使用的hosts文件版本:
您使用的操作系统:
您所在的区域(省/市):
您使用的ISP(网络运营商):
网络环境(IPv4/IPv6):

有关问题的其他描述:


Original issue reported on code.google.com by [email protected] on 14 Dec 2012 at 6:08

Windows安装包v1.2.0版安装问题

问题描述:
标准MSI安装包在安装过程中可能会在部分机器上无法正常覆��
�已有文件,导致用户无法更新hosts。

解决方案:
通过在安装包中嵌入vbs脚本进行二次操作,实现覆盖安装功��
�。同时顺带完善x86与x64平台安装包兼容性,并对安装中间文�
��进行清理。

相关内容参考MSDN中文论坛内容:
http://social.msdn.microsoft.com/Forums/zh-CN/vbasiczhchs/thread/3d5075d1-d7a4-4
480-a162-795237c81581

Original issue reported on code.google.com by [email protected] on 5 May 2012 at 6:02

android 4.2上谷歌服务失效

您遇到的问题:
1.替换手机上的hosts后,可以上facebook,说明hosts文件已生效,
但是G+官方客户端无法登陆,一直显示无法连接服务器,但同
一局域网内的PC可以好无压力得登陆G+网页版
2.十几分钟后发现手机wifi信号变灰(这表示谷歌服务无法使��
�),gtalk、gmail等平时正常的谷歌服务也无法使用,但此时手
机扔可以上网
3.替换回原始hosts后,谷歌服务恢复正常

您使用的hosts文件版本:
您使用的操作系统:Galaxy Nexus android 4.2.1
您所在的区域(省/市):上海市
您使用的ISP(网络运营商):电信
网络环境(IPv4/IPv6):IPv4

有关问题的其他描述:
不太明白为什么,替换了hosts后,PC上除了youtube,谷歌服务都
相当好,但是手机上就出问题。有机会我再试试android2.3的desi
re和4.0的C8812看看,不知道会不会是系统问题

Original issue reported on code.google.com by [email protected] on 25 Dec 2012 at 12:53

2013-2-8,请加入如下github地址

缺了几个github地址,我补充完毕:

#GITHUB
207.97.227.239 github.com
207.97.227.252 nodeload.github.com
207.97.227.243 raw.github.com
204.232.175.78 documentcloud.github.com

Original issue reported on code.google.com by [email protected] on 8 Feb 2013 at 4:18

ipv4的hosts全部失效

今天发现ipv4的hosts全部失效,昨天晚上还是好的。。望修复��
�。所有的hosts都ping不通。

Original issue reported on code.google.com by [email protected] on 23 Oct 2012 at 10:50

局域网中不能上网了

问题描述:
1.如题,通过路由器登陆的网络无法使用
2.如何卸载mac中的IPV4程序

您使用的hosts文件版本:
您使用的操作系统:mac pro
网络环境(IPv4/IPv6):
IPv4
有关问题的其他描述:


Original issue reported on code.google.com by [email protected] on 5 Dec 2012 at 7:14

为什么屏蔽cnzz.com?

问题描述:
1.127.0.0.1 ?.cnzz.com

我不少站用 cnzz.com 统计,不知道您为什么屏蔽 
cnzz.com,是不是因为它曾经出过的乌龙事件?

Original issue reported on code.google.com by [email protected] on 26 Nov 2012 at 2:05

阿里网站与软件不能屏蔽

您遇到的问题:
1. aliexpress.com  这个不能屏蔽。。。
2.  阿里软件 不能屏蔽。。。alisoft.com...
3.

您使用的hosts文件版本:
您使用的操作系统:
您所在的区域(省/市):
您使用的ISP(网络运营商):
网络环境(IPv4/IPv6):

有关问题的其他描述:

Original issue reported on code.google.com by [email protected] on 12 Dec 2012 at 1:34

http://developer.android.com URLs not accessible anymore.

您遇到的问题:
1. Cannot access http://developer.android.com URLs like 
http://developer.android.com/reference/android/app/Activity.html anymore.

您使用的hosts文件版本:1353168000
您使用的操作系统:OSX 10.8
您所在的区域(省/市):广州市,广东省
您使用的ISP(网络运营商):China Unicom
网络环境(IPv4/IPv6):IPv4

有关问题的其他描述:
When connecting to VPN, also does not work.

Thanks for any suggestion.

Original issue reported on code.google.com by [email protected] on 19 Dec 2012 at 10:33

Attachments:

希望能建立一个smarthosts的文件,安卓端和pc端是不一样的,既然ios都出了,何不出一下安卓。

首先先感谢一下作者,在自己有时间的情况下开发了这个应��
�,使得我能够使用各种相关的外国的优质服务。
这里我只是一个建议,和愿望,希望能开发一下安卓端,当��
�前提是时间允许的情况下。所以这只是一个建议,不过真的�
��感谢您的努力。

Original issue reported on code.google.com by [email protected] on 6 Dec 2012 at 1:37

IPV4版本的HOSTS基本无效了,多数时间不能够打开

您遇到的问题:
1.IPV4版本的HOSTS基本无效了,多数时间不能够打开
2.
3.

您使用的hosts文件版本:
您使用的操作系统:
您所在的区域(省/市):四川
您使用的ISP(网络运营商):电信
网络环境(IPv4/IPv6):IPV4

有关问题的其他描述:


Original issue reported on code.google.com by [email protected] on 21 Dec 2012 at 9:04

youtube/ facebook 等地址已经不能用了!

您遇到的问题:
1.youtube 连不上
2.facebook连不上
3.twitter 连不上

您使用的hosts文件版本:IPV4_WIN_ANSI
您使用的操作系统:WIN7
您所在的区域(省/市):广州
您使用的ISP(网络运营商):广州电信
网络环境(IPv4/IPv6):广州电信

有关问题的其他描述:该更新了


Original issue reported on code.google.com by [email protected] on 3 Jan 2013 at 8:53

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.