Hosts file11/19/2022 ![]() ![]() Note the address bar that shows the path of the folder.Ĭopy and paste that line onto the address bar of Windows Explorer and hit Enter to quickly get there, as shown in the screenshot above. Here’s the location of the host file on a Windows computer. In the rare case where Windows is installed on another drive instead of c:, change the drive letter accordingly. On a Windows computer, the hosts file always resides at this location: c:\windows\system32\drivers\etc\ #Hosts file how to#How to handle the host file on a Windows computer With that, let’s find out where this glorious hosts file resides on your computer and how to edit it. So use 0.0.0.0 or 127.0.0.1 if you want to block all of them. You can map multiple domains to the same IP. Within the hosts file, each mapping entry (each domain) takes one line. The way it works, every time you want to reach a domain, such as entering it on a browser, the computer will check its hosts file for the mapping, and if the domain is manually mapped, it’ll use that and no longer query a DNS server for the domain.Īnd you can manually map as many domains as you’d like - as long as you know what you’re doing and don’t abuse it. This mapping takes effect system-wide and immediately, meaning it will affect all user accounts of a computer and you don’t even need to restart the computer. And if you use the IP address of another website, the entry becomes a mean prank or a (malicious) hack. Specifically, when you go to, you’ll get a message that the website doesn’t exist or is unavailable.Īlternatively, you can also use 0.0.0.0 as the IP address to get the same effect. This particular example entry binds to the IP of the localhost, the computer itself, and in effect, blocks the computer’s access to Facebook. To be sure you can use a separate entry for each.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |