Sunday, July 27, 2008

HOSTS FILES; edit, create, background

By default, if you try to modify your hosts file in Vista, it will not let you save it. It tells you that you don't have permission. To successfully modify the hosts file, run notepad.exe as an administrator and open the
file.
1) Browse to Start -> All Programs -> Accessories
2) Right click "Notepad" and select "Run as administrator"
3) Click "Continue" on the UAC prompt
4) Click File -> Open
5) Browse to "C:\Windows\System32\Drivers\etc"
6) Change the file filter drop down box from "Text Documents (*.txt)"
to "All Files (*.*)"
7) Select "hosts" and click "Open"
8) Make the needed changes and close Notepad. Save when prompted.

I got a ready-made hosts file from
http://everythingisnt.com hosts.html
Your virus program MIGHT report this as a hijacking program because of what it contains, BUT it is NOT. It is a TEXT file, afterall. You have to rename it to just HOSTS when you put it in your windowns/system32/drivers/etc directory To change the file name, you also have to set Folder Options to be able to Show hidden files and UNCHECK the box marked Hide Extensions of known file types.

Background on HOSTS file: http://en.wikipedia.org/wiki/Hosts_file -tp.

No comments: