Update/replace system hosts for easy access to foreign sites

Source: Internet
Author: User

Update hosts
    • The actions described below may overwrite the existing hosts, so make sure you need to make a backup before doing so.
    • It is recommended that you use the Host Tools of this project to automate backup/configuration work.

    • If the update hosts do not take effect immediately, please reset the network:

      • Switching networks within the system Setup
      • Enable disable airplane mode
      • Rebooting the system
Windows

To open a file with a text editor (such as notepad++):

C:\Windows\System32\drivers\etc\hosts

Copy the entire contents of the hosts into the above file and save

Note: If you encounter an inability to save, right-click on the file hosts and find "Properties", "Security", then select the username you logged in, click Edit, Tick "write".

Linux and Mac OS

Copy the entire contents of the hosts to /etc/hosts and save it.

or open terminal (shortcut key Ctrl + Alt + T ) input command:

1 wget https://2'cat/tmp/hosts >/etc/hosts'

Android and IOS

Copy the entire contents of the hosts to /etc/hosts and save it.

More

For more information, please visit the Wiki page. If you have any questions, please open Issue feedback.

License
    • All code for this project is published in accordance with the MIT License, unless otherwise stated.
    • The Hosts,readme of this project. Md,wiki and other resources based on CC BY-NC-SA 4.0 This means that you can copy and re-distribute the contents of this project, but you will have to provide the original author information as well as the agreement statement. At the same time, you cannot use the project for commercial purposes, in accordance with our narrow understanding (additional terms), any profitable activities are commercial purposes.
    • Please use this program in compliance with local laws and regulations.

Update/replace system hosts for easy access to foreign sites

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.