The hosts file is hijacked, the Internet will be abnormal, the normal website will not open, and the bad website will be opened.
1. The hosts file is a file with no extension. The usual path is in the C:\\Windows\\system32\\drivers\\etc\\ folder.
The purpose of this file is to speed up domain name resolution, especially for frequently visited websites. Users can configure domain name and IP mapping in Hosts to improve the speed of domain name resolution. Because of the mapping relationship, the input domain computer can quickly resolve the IP without requesting a DNS server on the network. This shows that the hosts permission is higher than the DNS server resolution. For this reason, it is often used by viruses, Trojans, and bad programs.
2, blocking websites (domain name redirection):
There are many websites that install various plugins into computers without the user's consent, some of which are Trojans or virus. For these websites, you can use the permissions of the Hosts file to map the domain name of the website to the wrong IP or the IP of the local computer, so you don't have to visit the bad website. In the WINDOWS system, the agreement 127.0.0.1 is the IP address of the local computer, and 0.0.0.0 is the wrong IP address. The picture below is a hijacked hosts file.
3. If, in Hosts, write the following:
127.0.0.1 #Website to be blocked A
0.0.0.0 # To block Website B
This way, when the computer resolves the domain names A and B, it resolves to the local IP or the wrong IP, and achieves the purpose of blocking websites A and B. The figure below is the modified hosts file (blocking bad sites).
4, because the hosts file is a hidden file, if you can not find, you can display the system file, the steps are:
Start → Control Panel → Folder Options →View → Remove the checkmark before [Hide Protected Operating System Files], select [Hide Files and Folders] → [Show all files and folders] → OK
5, different operating systems, the location of the hosts may be different. You can create a batch file and double-click it to open the hosts file and process it, which is convenient. The steps are: use the right mouse button to click on the blank space of the desktop, in the pop-up menu, click New → text document
6, copy (Ctrl+C) the following command, paste it ( Ctrl+V) in the newly created notebook. Notepad "%SystemRoot%\\system32\\drivers\\etc\\hosts"ipconfig /flushdnsexit
7, file → save as: hosts.bat → save
8, when you need to view, double-click this batch file to view (garbled because it has Chinese).
9, if the hosts file is hijacked, you can empty all the contents of the file, and then paste a sentence: 127.0.0.1 localhost can be saved as a hidden file.
Many users have no problem with the computer, but after they upgraded Win10, there is a problem that
A lot of friends will go out on holiday, and when they return home, they cant wait to share photos t
In order to promote Windows 10, Microsoft has always had to make a rogue tactics, strong behavior Wi
ReadyBoost is a new technology in Windows Vista that takes advantage of flash random reads and write
Win10 Build 10550 is testing next week push
Windows 10 system how to set a graphical password?
How to solve the problem of no automatic recovery item in Win8 advanced boot menu
What should I do if I can't open the menu message bar after upgrading win10?
Windows Server 2012 RMS Introduction
What can I do if the beautiful Aero theme in win7 system can't be selected?
Only 3 days Win10 became the world's fifth largest desktop operating system
Win7 system installation font failure how to do
Windows computer did not receive the win10 upgrade prompts how to do?
Winxp boot press F11 to enter the system solution winxp can not enter the system
Why doesn't Win8 have a hibernate option?
For the old machine to create a faster Win XP
Commonly used Windows computer commands
Linux history: What is the relationship between Linux and GNU?
Windows 8 metro program split screen display skills
Why XP shows how to solve the last disc content
Little mouse learning big talk about mouse response rate knowledge
How to set disk quota for Win10 system
What if the win7 system security mode cannot be released?
Microsoft executives explain Win10: Will not make Win8 error