yoko, on 16 February 2011 - 07:56 AM, said:
AgentF, on 15 February 2011 - 08:32 PM, said:
Hey Yoko. Sorry it's giving you trouble. In order to make changes to the file, you'll need to go into it's properties, uncheck the Read Only option, make the changes, save it, then recheck the Read Only option. You'll want to delete all the lines after ::1 localhost. In the past, all you had to do to secure the HOSTS file was to set it as Read Only. Unfortunately, newer threats can bypass this, too. When fighting malware, it's one step forward and one step back. The HOSTS file is just another thing you'll have to watch. =/
P.S. Don't feel bad about being a novice. We're all here to learn and happy to help you wherever we can. =)
well, I attempted that. after right clicking on the notepad icon, run as administrator, make the changes, try to save and it states that it is a read only file. I went into properties, unclicked the read only box, but it wouldnt allow me to make the changes, with windows security window popping up and stating that since it was part of windows, i couldnt change it. I previously turned off UAC, hoping that would help but it didnt. In other words, it wouldnt allow me to uncheck the read only and progress to saving it.
I have an idea. Open the hosts file, make the changes, and save it elsewhere (like the desktop). MAKE SURE THE NAME IS "hosts" - WITH quotes. Then, go to the C:\Windows\system32\drivers\etc folder and rename hosts to something like "hosts.old". Then, copy over the hosts file to that folder, and accept the user account control prompt. With it disabled, you might actually GET problems, since there's no prompt to elevate the privileges for that command, and in some it must do that. I've seen that before with the guest account of a PC with UAC disabled, I couldn't perform an elevated operation despite having an administrator login, so even with an admin account it might happen since those accounts still get that prompt at times.
Don't worry, even without that file, internet connectivity still seems to work (it might refresh itself only when you reboot, and then you'll be in trouble). I had a friend who accidentally deleted it while messing around and yet he was chatting with me on IM from THAT PC at THE SAME TIME...