Giter VIP home page Giter VIP logo

windows's Introduction

使用本项目前 请仔细阅读本README文件

Download Executable File

Build status Last update: Sept. 24th , 2016

下载地址:(v2.1.17)

OS type Minimun Supported Version
WorkStation Microsoft Windows XP Family
Server Microsoft Windows Server 2003 Family

Hosts Tool

这个工具可以帮助你全自动的更换 备份原来的hosts文件 所有麻烦的事情只需要打开一个程序就能搞定 如果你愿意,程序还可以作为服务安装随系统启动 每次开机后每隔30分钟会自动检测hosts文件的更新噢!

在此特别感谢@qwerty258为本程序提供了Visual Studio的工程文件

在此特别感谢spacetime的协助 是他帮助我发现了ci运行测试中程序的致命bug

在此特别感谢@0xMeansHexadecimal给我的支持 是她给了我灵感 协助我修复了#22

声明

作者弃坑了

请通过issue来反馈任何bug以及程序问题,bug会及时得到修复。

##New Feature

现在,可以在hosts的头部加上自定义的hosts,程序自动更新时不会覆盖掉自定义的hosts.例如

127.0.0.1 baidu.com
127.0.0.1 www.baidu.com
# Copyright (c) 2014-2016, racaljk.
# https://github.com/racaljk/hosts

程序不会将第一行过滤掉,而会从# Copyright (c) 2014-2016, racaljk.开始改写hosts文件。

如需忽略空行以及注释 请使用choose.exe打开.ini文件在指定的项中修改falsetrue

警告

  1. 请不要删除# Copyright (c) 2014-2016, racaljk.(作为程序的识别位点) 否则 有可能发生不可预料的后果
  2. 如果先前没有使用本项目hosts文件 而使用了其他项目的hosts文件的 请重置hosts文件(具体方法看下方使用说明)后 再使用本程序

How to use?

修改hosts涉及到系统文件的修改,安装服务也有可能触发安全软件的提示,如有安全软件提示请放行通过.

main program file: tool.exe

  • 无参数运行tool.exe 用来更新hosts文件 如有更新 程序会备份原有的hosts文件
  • 运行choose.exe 来选择更多的运行选项

注意事项

  1. 如果安装服务 程序会往%SystemRoot%下复制一个hoststools.exe文件用来作为服务启动的主程序
  2. 安装服务后 日志文件会保存在C:\Hosts_Tool_log.log下 您可以通过查看日志观察服务的工作状态
  3. 本程序一切有更改hosts文件的行为前都会先备份hosts文件。
  4. 请间隔一段时间后清理%SystemRoot%\system32\drivers\etc\文件夹 (程序加入了询问删除早期备份文件的功能)
  5. 如有任何疑问或bug反馈,请开新的issue或者发邮件到 sometimes.naive[at]hotmail.com (如是服务问题请附上日志文件)

Code license:

General Public License Version 3

windows's People

Contributors

ir1d avatar

Watchers

 avatar

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.