I have turned off UAC. I have removed read only permission from the file. When I try to save the file I receive the following error: "The process cannot access the file because it is being used by another process. Can anyone help? This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. I have the same question Report abuse. Details required :. This is particularly useful when you want to test whether a transfer from another host is successful prior pointing your domain to the new server.
The location of the hosts file , depending on the operating system that you are using, is:. In this case, you would need to open up the hosts file with a text editor and append the following line:.
For various reasons, it may be necessary to update the hosts file on your computer to properly resolve a web site by its domain name. The most common reason for this is to allow people to view or publish web content immediately after purchasing a new domain name, or transferring an existing domain name to another ISP Internet Service Provider.
New and transferred domain names have a delay period that can be anywhere from a few hours to a few days. During this period, the new or transferred domain information propagates around the internet, and is generally unavailable. If the IP address is found in your Hosts file, the computer will stop looking and go to that site, but if it is not it will ask a DNS computer domain name server for the information. Since the search ends once a match is found, that provides us with a mechanism to block sites we have no interest in.
We can put names and addresses into the Hosts file so your computer does not have to ask a DNS server to translate the domain name into an IP number. This speeds up access to the host site you want to see because your computer no longer has to query other systems on the Internet for the address translation. When you type in a web address like www. If you put Yahoo! Computers have a host address of their own - it is known as the "localhost" address, with an IP address of If you associate another computer's host name with your localhost IP address, you have effectively blocked that host since all attempts to access it will lead back to you.
That is how we will block sites using the Hosts file. We will tell our computer that the IP address of the site we want to block is our own address. That way, our computer will not ever leave and go looking for the site we are blocking - which keeps that site from appearing because the computer thinks it has found the site and displayed it already.
0コメント