View Full Version : HOSTS file (W2K)
hammerjammer
10-18-2003, 10:02 PM
any idea why adding a website to HOSTS (with either 127.0.0.0 -or- 127.0.0.1 as the IP) fails to block the site in question?
HJ
motoflop
10-19-2003, 04:02 AM
If you have trojan delude/qhosts or any variant, changing hosts file doesn't work because that trojan has changed folder where windows looks for hosts file ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\DataBasePath").
unknown634
10-21-2003, 10:01 AM
This is the file Windows will look in first for the Domain name to IP translation before going to a DNS server. So any site in the hosts file that's got 127.0.0.1 or the like listed as a domain name's IP will give you the Error 404 screen, because it will think that 127.0.0.1 is the IP of whatever site you have after it.
Oh, and you also have to have this line at the top of the hosts file for this to work for the "blocking feature," as I like to call it.
<font color=red>127.0.0.1 localhost</font color=red>
You can do this to keep pop-up ads from loading (the window will show up, but will have the Error 404 instead of the ad).
If I am wrong in some way, someone please correct me...unknown_entity
-----------------
And now it all falls to pieces...
hammerjammer
10-21-2003, 05:10 PM
127.0.0.1 localhost is already there...i put it on all the machines as a security feature.
as for the DataBasePath in registry....i'll have to check it out....
i'll let ya know if it worked or not
HJ
hammerjammer
10-22-2003, 04:37 PM
okay HKLM\system\currentcontrolset\tcpip\parameters\dat abasepath=%systemroot%\system32\drivers\etc
is that right?
my host file is located at c:\winnt\system32\drivers\etc
yes, the localhost entry is in the hosts file
yes, i've tried both 127.0.0.0 and 127.0.0.1
yes, i have lmhosts enabled
HJ
ps. what the hell happened to the quick, convenient logon and dropdown menus for winguides and forums?
hammerjammer
10-25-2003, 08:05 PM
noone knows?
-----------------------------------------------------------
what has happened to the quick logon and easy drop-down menus on forums?
HJ
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.