1. Open Notepad with Administrative privileges by clicking Start, All Programs, Accessories, and then right-click Notepad and select to open as Administrator.
2. Browse to (C:\Windows\System32\drivers\etc) in Notepad and open the hosts file.
Now you can edit and save the hosts file.