How to edit the HOSTS file in Vista?
Q: I have been trying to edit my HOSTS file to stop certain advertisements from showing, however, when I try to save it, I receive a message that states I do not have permission to edit this file. I am the administrator, so how can I successfully edit this file in Windows Vista? A: You will have to run the text editor (NOTEPAD) as administrator. Simply right click the program and select “Run as administrator” from the resulting menu. Now you can edit the HOSTS file.