How to edit the HOSTS file of Windows 10 with the default application and third-party application?

  
Win10 before the host is very good, win7/8 and winxp although it is different, but also very good, but many friends do not know how to modify win10 hosts? It does not matter, the following share two methods, one of which is to use the windows system directly Change, there is also a kind of
Windows 10 is less than a month old, as some people expected, guessed or hoped, some things are not as good as everyone planned, at least for those underlying users Especially this. Just as Microsoft continues to gather information from Windows computers, some individuals are also looking for ways to evade the information being collected. Since it's black into Windows' core code, trying to remove code that keeps sending data to Microsoft servers is rude, unethical, or perhaps illegal. We need to try some other means to see if we can bypass or block these programs.
One of the easiest ways is to unplug your PC's network cable, or turn off the WiFi adapter; however, face the reality! You can never stay away from the network.
Another method is to find the host name stored in the Windows map and store the IP address, which is the HOSTS file we often say. If you think this is complicated or risky, then you will be happy to know that there are actually safer methods. Ok, let's not continue to circle, now we have to go straight to the point.
Editing HOSTS Files
First, using Windows methods
Windows knows where you have been on the Internet, and this information is safely stored in the original data set, such as IP addresses. Needless to say, unless you know exactly where it is, you can't know the real domain name of an IP address, which is what the HOSTS file does.

Enter the HOSTS file:
1, just need to simply navigate to the address: C: Windowssystem32driversetc (directly in the address bar of the file browser). So, you can immediately see a file with the name of the hosts. It is visible by default, but to prevent you from finding it, go to the View menu and click on the box to hide the file in the menu.
2, (This will start editing) Press the Win+R key combination to enter the run function. Now, write C:Windowssystem32driversetchosts in Notepad, which will open the HOSTS file directly in Notepad.
3. Press Win+S to search for Notepad. Once the search list appears, right click on it and select Run as administrator. Now go back to the File menu and paste the following in the file name area: C:Windowssystem32driversetchosts
Important! Don't forget to create a backup copy of the HOSTS file before editing anything inside
This will only be more It will take you a few seconds, because you only need to copy a file to a safe location. Note that you need to use administrator privileges to copy this copy back to its original location.

Okay! I actually saw it here, what should I do now?
Now is the time to open the HOSTS file with Notepad. Open the notepad by finding it in the search list and double-clicking on the notepad. But if you just follow steps #2 and #3 here, maybe it doesn't work. Because by default, all websites will not be blocked, there will only be a lot of text text. The following is an example description of the problem.
Copying content to the clipboard

As you already know, if you read the text in the HOSTS file, all the things written after # are just a text description. In order to block something, you need to go back to the last # of the above, and write:
Copy content to the clipboard
CODE
0.0.0.0 www.The-Website-You-Want-To-Block .com #additional comment
Note: Make sure you only write one URL per line. Also, don't put # at the top
Disclaimer: In the video example, we blocked the Softpedia website just to tell you how to do it.
We hope you don't do this (block our homepage) :)
Hint: You can put # behind the name of the website you want to block, so you can add a comment
Important information: You need to edit the HOSTS file with Notepad with administrator privileges so that you can save your changes in this location. Once you have saved a new file with your added information, the website you entered will no longer be accessible. If you want to access these blocked sites again, just remove them from the list.
One purpose of this operation is to shield the Windows system from sending your personal data to Microsoft. In addition, you can find these domain names that you need to block in the following article: news.softpedia.com/news/blocking-these-domains-stops-windows-10-from-phoning-home-488630.shtml
2 Using third-party applications
Because editing HOSTS files is a basic means of blocking certain domain names, developers have developed a simpler and faster way to do the same. An example is the following gadget software called HostsMan (you can find the download link for HostsMan here: http://www.softpedia.com/get/Network-Tools/Misc-Networking-Tools/HostsMan.shtml)

The whole process has been simplified to take only a few seconds. First go download and install this software.
First Step: Once the main window appears, if you haven't chosen the default, you should choose to run HostsMan as an administrator.
Step 2: Go to the Hosts menu and select Open.
Note: Choosing to open using Notepad Editor requires you to do the above. But the difference is that the Open option will put the contents of the HOSTS file into the editor that comes with the application.
Step 3: Below the menu, press the + (plus) button.
Step 4: Write down the name of the website you want to block and click Add.
Note: You don't have to click the Add button for each added website. To add more website names, just write their website address line by line, and click Add when you are done.
This application is not just an alternative to our first approach, it has many other features, you can also do it:
Select predefined online resources, which were originally thought to be considered Sites with certain malware and other potentially harmful content;
clean up hidden HOSTS files by looking for copies, deleting all comments, replacing IP addresses or rearranging hosts;
Resolving domain names and cleaning up hidden DNS, and at the command prompt or PowerShell, open the HOSTS folder for advanced features;
Create multiple copies of HOSTS files with a few mouse clicks and store them securely. This is useful for users who want to create multiple different files that block specific content.
The two methods described above, Xiaobian Conscience recommend the first one, this is relatively simple, and does not require third-party software. If the first method is invalid, friends can try the second method to ensure safety and effectiveness.

Copyright © Windows knowledge All Rights Reserved