Modify hosts file in windows 7

October 11th, 2011

Normally we can modify system file C:\windows\system32\drivers\etc\hosts to map an ip address to name.But the default owner of hosts file is system ,so we need administrator privilege to modify file hosts or you may get error like “access to hosts file is denied”.

1.Open your Notepad or Wordpad with administrator privilege

2.If prompt by UAC ,click Yes or type in the username with admin privilege and it’s password

3.In your Notepad window,click File–Open  then browse to c:\windows\system32\drivers\etc , select All Files *.*  , then open and modify hosts file

Leave a Reply