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