Originally Posted By gotm4:
Originally Posted By Troy:
Add the following line to your HOSTS file:
Where x is the drive you have Windows installed on (usually C). WinNT and 2000 will default to C:\WINNT, with everything else defaulting to C:\WINDOWS.
The HOSTS file does NOT have a file extension, because the origin of the file is from the UNIX world, and file extensions aren't necessary in UNIX. But it is a simple text file, so open Notepad, go to Open, and pull down "*.* Show All Files" and browse to your HOSTS file.
Simply add that line somewhere in your HOSTS file.
You can hard-code the IP address of any DNS name by adding an entry into your HOSTS file. For example, you can make your computer go to Google when someone types in "www.yahoo.com" by using your HOSTS file to point "yahoo.com" to Google's IP address:
yahoo.com 18.104.22.168 (the IP address is for Google, not Yahoo)
This would drive people crazy if they really wanted to get to Yahoo, because they would always get pointed to Google.
I have an entry for AR15.com:
That way, if my DNS goes out due to problems with my ISP (it happens), I can still get to AR15.com. It also speeds things up slightly because it doesn't have to perform a DNS lookup everytime I go to a page at AR15.com.
The IP "127.0.0.1" means "this computer". Anything you point to that address will send any requests to your own computer. Since your computer probably isn't running a web server, any web requests routed there will error out instantly, but without a pop-up box.
This is how the "immunize" feature in Spybot Search & Destroy works. It takes a big list of known spybot addresses and repoints them to 127.0.0.1. That way, anytime a web page you're visiting has references to one of those evil addresses, it will ask your own computer instead, and error out, which prevents you from going to the page that has the spybot pop-ups and getting infected.