First, to ensure that users have permissions
Users of Windows Windows:windows 7 and later need to right-click Hoststool.exe and select "Run as Administrator".
Linux: You need to execute hoststool.py with root permissions.
Mac OS X: Enter a user's password to get permissions when the application is started.
Second, close the security software
To modify the Hosts file will trigger 360, Jinshan and other security software active defense rules, completely shut down 360 antivirus, 360 security guards, Jinshan poison PA, Golden Hill Bodyguard Security software and then run huhamhire-hosts. Reference: How to close 360, Jinshan and other anti-virus software
Third, manually modify the Hosts file
If you try the above two methods or not, we can use huhamhire-hosts to download the Hosts file manually modify the system's hosts file.
1. Download the Hosts file and click the "Save as ANSI" button to save the Hosts file on the desktop or elsewhere.
2. Copy the Hosts file just saved, open c:windowssystem32driversetc, paste the original Hosts file.
3. If the prompt does not have permission to save the file in this location, it must be the current logged-on account that is not an administrator or is not assigned permissions. Right-click the Hosts file, select Properties, switch to the Security tab, add all permissions to the account, or add a everyone account to allow all permissions.