Home » Questions » Computers [ Ask a new question ]

How do you edit hosts file on Windows 7

How do you edit hosts file on Windows 7

I'm trying to edit the hosts file (C:\Windows\System32\drivers\etc\hosts), because I want to setup a local redirect for my website (like I've always done in XP). However, I can't save the changes!

Asked by: Guest | Views: 80
Total answers/comments: 2
Guest [Entry]

"You have to open it with administrative access.

Launch Notepad with Administrative access then re-open the file."
Guest [Entry]


Sometimes we need to modify hosts file to achieve your goals. XP OS supports saving it after modify directly. But on Windows 7 OS it prompts you have no permission to modify it.

Open this file in local path c:\windows\system32\drivers\etc.

Then right click on it, select properties option.

In the opened host properties, switch to “Security” tab.

Then click Advanced button.

In the opened window, we select “Change permissions” button.

Check out “Include inheritable permissions from this object’s parent” option, then click Add button.

After click Add button we back to the previous window, click confirm, pops up Windows safe window, click Yes.

Click confirm again, back to host properties window, then we select Administrators and click edit button.

We checked the current user’s management group, to give full control permissions.

Click confirm button, then we can modify hosts file now.

can refer to the link:http://itsprite.com/windows7how-to-save-the-modified-hosts-file-on-windows-7/"