Most of you may know host files and how they work this is also an article about the host file how they work, how you can block web sites or computers on LAN using a host file etc..
First of all, a host file is a file that the operating system uses to store the IP address of computers having a physical name (or site address).It is located at %SystemRoot%\system32\drivers\etc\ ( %systemroot% is the Windows Root Directory - deault C:\WINDOWS ). Its location can be found out from this registry key
\HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
DataBasePath
You can enter the site name and the corresponding IP in the host file of any number of sites.
How it Works : When you enter a web sites adress into your browser your systm checks whether the corresponding IP adress is already in your host file. If present you will bw taken to that IP. If it is not pressent in host file then it is cross checked with a DNS server and IP of the site is found.
Advantages : Almost all the time the DNS server is not near you and also it will take more time to first findd out the IP and then goto the adress. So if the IP of the web adres is present in the host file you are saving time.
How to block sites : Your own system is considered as a srver for sertain purposes and its name is localhost and assigned IP is 127.0.0.1. So if you give any sites adress and put 127.0.0.1 as its IP in your host file well you know what happens..
Disadvantage : A trojen or some "Malicious" friend can alter the host file with the wrong IP so that you may find yourself in a fraud site or getting pissed off every time you go to some site.
And finally as our Windows always do, there is a problem ,while trying to make things easier. If the host file is larger than 135Kb. Its because all host file is in memory this can also affect boot time.
To pevent this system sluggishness you can do this.
How to prevent system slowdown due to large host files External Links : NoneAdd to Delicious |
Submit to Netscape |
Stumble thisLabels: Tips, Uncovered, Web, Windows