1. Can I create a host on almost all computers? Find the host file in the C: \ windows \ system32 \ drivers \ etc \ folder on the computer.
2. Right-click and select notepad as the open mode.
3. the interface shown in the following figure is displayed. We pull it to the bottom of the window and enter 127.0.0.1 + space + the URL you want to block in another line. If you need to enter multiple URLs, remember to start another line each time.
Then save it. If the host cannot be saved, we can refer to the following method to solve the problem.
Method 1:
Disable anti-virus software of the 360 category and modify the settings so that the files cannot be saved. For example, if 360 has some security software protection measures, the hosts file is automatically restored to the default state, so the hosts file cannot be saved.
Method 2:
Right-click the hosts file and choose Properties> Security> edit to set the user to full control.
Method 3:
Copy the hosts file to the desktop (or other paths), edit and save the file, copy the modified hosts file to the original path, and replace the original hosts file. The system will prompt you to continue the operation only after the administrator permission is required. Follow the prompts and click continue to replace the original hosts file.
Method 4:
As an administrator, click start -- run, enter cmd, and then enter notepad c: \ windows \ system32 \ drivers \ etc \ hosts. Press enter to open the hosts file in notepad mode, in this case, you can directly edit and save the settings.
Now we have finished introducing host shielding for specified websites or pop-up advertisements. If you like it, you can block more websites, if you don't want Baidu to open it on your computer, we can modify 127.1.1.1 www.baidu.com, so that Baidu can access your local computer.