How To Edit The HOSTS File In Vista or Windows 7
If you were to just go to C:\Windows\System32\drivers\etc and open the hosts file in Notepad, you wouldn’t be able to save your changes.

Instead, you need to go under the Start Menu and either type Notepad or find its listing. Then right-click on Notepad and choose to ‘Run as administrator’. A prompt should come up and you can give it permission.

Once Notepad open go to File, Open (change file type in the dialog box from .txt to all files) and browse to your HOSTS file. You’ll then be able to make and save changes as needed.
TL;DR – Run Notepad as an Administrator (even if you are using an administrator account), open the HOSTS file, and save your changes.











