GithubHelp home page GithubHelp logo

yangbo524 / hosts-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laucyun/hosts

0.0 2.0 0.0 1.2 MB

:gift_heart:最新可用的google hosts文件。挖据的3000多个google ip任你使!

Home Page: https://g2.liuker.xyz/

hosts-1's Introduction

语言选择

说明

持续每周更新Hosts (包含Google、Gmail、Facebook、Twitter、Amazon、Yahoo、Wikipedia、Github等被墙的网站)文件。只想上Google者,请上 https://g2.liuker.xyz/ 即可Google,无需修改Hosts文件!

目前拥有3000多个可用的Google IP!所以,大家可以尽情地使用!

适用系统

  • Unix
  • Linux
  • Android
  • Mac
  • Windows

更新地址

如何修改Hosts

Linux & Unix

如果是Linux或者Unix系统,有两种方法。

1、终端:

使用wget或curl,以wget为例:
开启终端(快捷键为“Ctrl + Alt + T”)输入bash -c 'wget https://raw.githubusercontent.com/liuker0x007/hosts/master/hosts -qO /tmp/hosts && sudo mv /tmp/hosts /etc/hosts'

2、非终端:

打开/etc/hosts目录,用下载好的hosts文件粘帖和覆盖该目录的hosts文件。最后在终端输入sudo systemctl restart NetworkManager

注意 : 非systemd发行版,终端输入sudo rcnscd restart,如果不清楚请两个都试一次。

Android

如果是Android系统,用RE管理器(前提需要手机已Root)打开/system/etc/hosts目录,用下载好的hosts文件粘帖和覆盖该目录的hosts文件。然后通过开启飞行模式 -> 关闭飞行模式的方式使其生效。

Mac

如果是Mac系统,打开你的文件管理器(也就是Finder),然后,请按快捷键组合“Shift+Command+G”三个组合按键查找文件,并输入Hosts文件的所在路径:/etc/hosts,用下载好的hosts文件粘帖和覆盖该目录的hosts文件。然后终端输入sudo killall -HUP mDNSResponder使其生效。

Windows

如果是Windows系统,用文本编辑器(如Notepad++|记事本)打开C:\Windows\System32\drivers\etc中的hosts文件,用下载好的hosts文件全部内容复制到C:\WINDOWS\system32\drivers\etc目录中的hosts文件中。或者用下载好的hosts文件粘帖和覆盖C:\WINDOWS\system32\drivers\etc目录中的hosts文件中。保存后通过开始 -> 运行 -> 输入cmd -> 在CMD窗口输入ipconfig /flushdns使其生效。

注意:如果遇到无法保存,请右键hosts -> 属性 -> 安全,然后选择你登陆的用户名,最后点击编辑,勾选"写入"即可。

注意:如果hosts文件中已经有内容,那么请把已有的内容追加到hosts文件末尾。

更新时间

基本上每周周末都会更新一次。

联系方式

hosts-1's People

Watchers

James Cloos avatar  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.