Looking for:
How to reset the Hosts file back to the default

While there are fewer technical ways to block access to unauthorized websites, many of these methods are relatively easy to reverse. For example, a tech-savvy child may have little problems bypassing parental controls, but modifying the hosts file requires a higher level of technical knowledge.
You might take this a step further and block all websites that serve up advertisements. If you map the addresses of all the major ad providers to an unused internal IP address, then Windows 10 will be unable to resolve these addresses. You can then enjoy the web, advertisement-free. Finally, some malicious third parties may set up redirects by altering your hosts file. This is known as a hosts file hijack. With this setting enabled, Firefox will use the DOH server as the primary name resolver, rather than checking your local hosts file or DNS resolver.
As a result, the website displayed will always point to the IP address that the Internet deems authoritative for that domain. There are plenty of great web browsers that are compatible with Windows 10 and that honor the hosts file out-of-the-box.
However, if you want to stick with Mozilla Firefox, you can always disable DoH. To start, select the Menu button in the Mozilla Firefox browser and go to Settings. Find the menu button and click on Settings. In the subsequent tab, make sure General is selected. Then, scroll to the Network Settings section and click on Settings. Network Settings in Firefox. Then, uncheck the accompanying box. To save your changes, click on OK and then exit this window. From this point onwards, Firefox will honor any custom addresses that you add to your Windows 10 hosts file.
There are many reasons why you might need to edit this important file. Regardless of whether you want to block advertising networks, verify a new domain, or perform other DNS-related tests, the process will be exactly the same.
The MyKinsta dashboard. Swipe in from the right edge of the screen, tap Search , type run, and then tap the Run icon. Or, if you are using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, select Search , type run, and then select the Run icon. Select the Hosts file, select Rename , and then rename the file as “Hosts. If you are prompted to enter an administrator password, tap or click Continue. On the File menu, select Save as , type “hosts” in the File name box, and then save the file to the desktop.
Microsoft ended support for Windows XP on April 8, This change has affected your software updates and security options. Learn what this means for you and how to stay protected. Microsoft ended support for Windows Server on July 14, Windows 8 Windows 8. To reset the Hosts file back to the default, follow these steps: Open Notepad. Best Smartwatches. Best Meta Quest 2 Accessories.
Best Home Theater Systems. Browse All News Articles. Google Photos Updates. Ethereum’s “The Merge” is Finally Here. Windows Terminal 1. Diffusion Bee AI Generator. Logitech Announces New Webcams and Headphones. OneNote Revamp on Windows. Breath Of The Wild Sequel. High-Resolution Stable Diffusion.
Google Widgets for iOS If the Hosts file is changed from default, resetting it can help resolve some connectivity issues. To reset the Hosts file back to the default, follow these steps according to your operating system:. Open Notepad. Copyright c Microsoft Corp. This file contains the mappings of IP addresses to host names.
Each entry should be kept on an individual line. The IP address should be placed in the first column followed by the corresponding host name. The IP address and the host name should be separated by at least one space. Additionally, comments such as these may be inserted on individual lines or following the machine name denoted by a ‘ ‘ symbol.
For example: On the File menu, select Save as , type “hosts” in the File name box as displayed in the following image , and then save the file to the desktop.
Tap and hold or right-click the Hosts file, select Rename , and then rename the file as “Hosts. In the above example, the first section denotes the IP address where this request will be redirected to The second section designates the location that we want to redirect a request from example.
The final section specifies a comment for this entry. After adding the domain information, your system will resolve to the IP address you specified. DNS is the key to locating a website. When you modify your hosts file, it causes your local machine to look directly at the IP address specified by you. For example, if you wanted to point mywebsite. Now, every time you try to visit mywebsite. By editing your hosts file, you can override the DNS for a domain on your specific machine only.
However, it is also possible to replace this file entirely. This can be an easy way to block malicious or spammy websites in bulk. There are even sites that have published ready-made lists of IP addresses associated with advertisements, hijackers, page counters, and other unwanted connections.
Alternatively, you might replace your native hosts file with the newly-downloaded file. If you do opt for the latter, then we recommend keeping a copy of your original file, just in case you encounter any strange behavior with its replacement. At Kinsta we provide a temporary URL sitename. You can also use the hosts file to block certain websites. While there are fewer technical ways to block access to unauthorized websites, many of these methods are relatively easy to reverse.
For example, a tech-savvy child may have little problems bypassing parental controls, but modifying the hosts file requires a higher level of technical knowledge. You might take this a step further and block all websites that serve up advertisements. If you map the addresses of all the major ad providers to an unused internal IP address, then Windows 10 will be unable to resolve these addresses.
You can then enjoy the web, advertisement-free. Finally, some malicious third parties may set up redirects by altering your hosts file.
Download HOSTS File for Windows – MajorGeeks.How to reset the Hosts file back to the default – Microsoft Support
Select the Hosts file, and rename it “Hosts. Need more help? Was this information helpful? Yes No. Thank you! Any more feedback? The more you tell us the more we can help.
Can you help us improve? Resolved my issue. Clear instructions. Easy to follow. No jargon. Pictures helped. Didn’t match my screen. Incorrect instructions. Too technical. Not enough information. Not enough pictures. The quickest way to gain this is to use a text application that has elevated privileges. To start, press the Windows key and type Notepad into the search field. Search for the Notepad app.
Next, right-click on Notepad and select Run as Administrator. Windows 10 will now ask whether you want to allow this application to make changes to your device. Select Yes. Select Run as Administrator. This launches a privileged instance of the Notepad application. Note that you may be asked to enter an administrative password in order to re-authenticate yourself. Need a hosting solution that gives you a competitive edge? Check out our plans. Select File and then Open in the Notepad toolbar.
Then, navigate to C:WindowsSystem32driversetchosts. In Notepad, open the File name dropdown and choose All Files. Open the File name dropdown and choose All Files. You can now add your custom IP address and hostname to the end of this file.
In the subsequent window, type the following:. To flush the DNS cache, press the Enter key. Once this process is complete, Windows 10 should be using your new hosts file settings. Alternatively, restarting your computer should have the same effect. By default, you cannot edit the hosts file without administrator privileges. You might also be worried about hosts file hijack attacks.
In these scenarios, you might want to consider locking your hosts file. To lock your hosts file, navigate to C:WindowsSystem32driversetchosts. Then, right-click on the file and select Properties. In the Properties window, mark the hosts file as Read-only.
This will lock the file and prevent anyone from modifying it. If you want to remove this lock at any point, simply navigate back to the Properties window. You can then remove this Read-only restriction. You can always remove individual entries from your hosts file. Simply open the file in Notepad and delete the line in question. However, sometimes you may need to revert your hosts file to its original state.
You may also be encountering strange redirects, which suggests that your hosts file has become corrupted. To reset your hosts file back to its original state, open your File Explorer.
Then, press the Enter key on your keyboard. At this point, we recommend renaming your original hosts file. This file will then serve as a backup, just in case you encounter any issues with your new hosts file. You may be required to take ownership of this file first, depending on how privileges are configured on your computer. Each field is separated by white space Tabs are often preferred for historical reasons, but spaces are also used.
Comment lines may be included, and they are indicated by a hash character in the first position of such lines. Entirely blank lines in the file are ignored. If the Hosts file is changed from default, resetting it can help resolve some connectivity issues.
To reset the Hosts file back to the default, follow these steps according to your operating system:. Open Notepad. Copyright c Microsoft Corp. This file contains the mappings of IP addresses to host names. Each entry should be kept on an individual line. The IP address should be placed in the first column followed by the corresponding host name. The IP address and the host name should be separated by at least one space. Additionally, comments such as these may be inserted on individual lines or following the machine name denoted by a ‘ ‘ symbol.
For example: On the File menu, select Save as , type “hosts” in the File name box as displayed in the following image , and then save the file to the desktop. Tap and hold or right-click the Hosts file, select Rename , and then rename the file as “Hosts.
If you are prompted to enter an administrator password, select Continue. To do this, swipe in from the right edge of the screen, tap Search , type Notepad, and then tap the Notepad icon. Or, if you are using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, click Search , type Notepad, and then click Notepad.
Swipe in from the right edge of the screen, tap Search , type run, and then tap the Run icon. Or, if you are using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, select Search , type run, and then select the Run icon.
Windows 10 hosts file not found free download
On the right-hand side, click the small downward-facing arrow to reveal more options.