How do you edit hosts file on Windows 7
Every time I try to edit it in Notepad it says "Access is Denied".
In order to edit the
This example uses
You need to be running Notepad as an administrator. An easy way to do so: Start -> Search "notepad" -> Right click on the Notepad result and select "Run as Administrator." With Notepad open, select File -> Open... and browse to your hosts file.
My most recent idea was to create a shortcut to edit it:
right click on your desktop, choose "New", then "Shortcut"
if you installed Windows 7 in a default location e.g. "C:\Windows", simply paste:
as the location of your item. Click "Next"
Type a descriptive name and click "Finish"
Now, right click on the newly created shortcut and choose "Properties".
Click on "Advanced" on the window that pops up, and choose "Run as Administrator"
Now when you double click the shortcut, windows will ask to confirmation to edit your HOSTS file as administrator, and you can simply hit CTRL+S to update it
If you use firefox, this is a great extension to add:
Have you tried save as > .txt > then edit as you wish > change the extension of file from .txt to "nothing" then copy over you existing hosts file.you must close your browser before you copy/paste your edited version.
I copy and paste the HOSTS file onto my desktop. I edit and save it on my Desktop and then drag it back over to