Joinsubscribers and get a daily digest of news, geek trivia, and our feature articles. By submitting your email, you agree to the Terms of Use and Privacy Policy. Occasionally you may need to edit the hosts file on your machine. Your host file might have been edited maliciously in an attack, or as a prank. Alternatively, you may just want to control access to certain websites or control network traffic.
The hosts files were used to resolve host names for decades before the DNS system was implemented. Since they were used to aide in network name resolution, hosts files grew to become massive documents.
Microsoft, Apple, and other operating system developers have kept the hosts file around, which is why it varies very little between Windows, macOS, and Linux. The syntax stays mostly the same across all platforms.
Most hosts files will have several entries for loopback. We can use that for the basic example for the typical syntax. The first part will be the location to redirect the address to, the second part will be the address that you will want to redirect, and the third part is the comment. They can be separated by a space, but for ease of reading are typically separated by one or two tabs, or the equivalent amount of spaces.
The hosts file is still present in the latest and greatest from Microsoft — Windows 10 and Windows 11 — despite being ancient by computer standards. The hosts file, like other files that can be found in the Windows folder, is protected. You need administrative privileges to move, edit, or delete the file.
You can use any plain text editor you want to modify the hosts file, however Notepad is perfectly adequate for download file hosts windows 10 task. There are a few obvious things to do with it, like block or reroute internet traffic. Download file hosts windows 10 can use it to block access to websitesif you want. Accessing the hosts file in Windows 7 is the same as on newer versions of Windows.
You need to run Notepad as administrator, navigate to the hosts file, and then open it up. There are a few ways you can do download file hosts windows 10. It is located at:. Once notepad is open you can edit the file. In this example we will block Facebook. To do this just enter in the following after the mark. We also were not able to get to it in Google Chrome… check notes at the end.
In Ubuntu and most Linux distributions you can edit the hosts file directly in the Terminal. You can use your favorite command-line editor or your favorite GUI text editor. For this example we will use Vim, since it is one of the traditional text editors in Linux. The hosts file is protected, and your regular user account will not be able to edit it.
Open up a Terminalthen enter:. Now that it is open we can edit it to redirect Facebook into nothing. You will notice that with Ubuntu there is also a section for IPv6. You can ignore the IPv6 section in most cases; just editing the IPv4 section should download file hosts windows 10 what you need. Now we can save the file and try to go to Facebook. When you set the address in the hosts file to 0. In macOS, accessing the hosts file is very similar to Ubuntu. Begin in terminal and use your favorite editor — it could even be a GUI-based text editor if you wish, but it is easier to use a command-line editor from the Terminal.
The file will look a lot like the hosts file found in Windows and Linux. Again we are going to redirect Facebook to 0. For our purposes here, it limits the utility of the hosts file. The download file hosts windows 10 file can only be used to block internet traffic if your browser is deferring to the DNS Server specified in the Windows operating system. That results in the browser completely bypassing the hosts file.
This should get you started in understanding the Hosts file and how it can help protect your computer.
We select and review products independently. When you purchase through our links we may earn a commission. Learn more. Windows ». What Is svchost. Best Ergonomic Keyboards. Best Tripod Heads. Best Outdoor Speakers. Best Cloud Gaming Services.
Best Cloud Storage Services. Best Curved Monitors. Best Budget Bluetooth Speakers. Best Photo Printers. Best Car Phone Mounts. Best Retro Controllers for Pi. Download file hosts windows 10 Favorites Best Linux Laptops. Best Wi-Fi Routers. Awesome PC Accessories. Best Wireless Earbuds. Best Smartwatches. Best Meta Quest 2 Accessories. Best Home Theater Systems. Browse All News Articles. Android Free Spotify Premium. Scribble on Office for iPad. Samsung Odyssey Ark. Freevee Loading Screen Ads.
Galaxy Buds 2 Deal. Outlook for Windows Design Update. Get The Message. Get Office for Free. Detect Hidden Surveillance Cameras. Dark Mode on Every Website in Chrome. Disable Bing in Windows 10 Start Menu. Hide Steam Games You're Playing. Browse All Buying Guides. Amazon Fire 7 Tablet Review.
Edifier Neobuds S Review. Lenovo Yoga 7i Inch Laptop Review. Google Pixel 6a Review. SwitchBot Lock Review. Amazon Fire 7 Kids Tablet Review. Download file hosts windows 10 Best Tech Newsletter Anywhere Joinsubscribers and get a daily digest of news, geek trivia, and our feature articles. How-To Geek is where you turn when you want experts to explain technology. Since we launched indownload file hosts windows 10 articles have been read more download file hosts windows 10 1 billion times.
Want to know more?