If you are asking how to find hosts file location in Micorsoft Windows or how to change it, let follow steps below:
1. Go to location:
2. Look for the file “hosts”
3. Edit the file with Notepad or a particular text editor.
When you try to change the hosts file or the Lmhosts file in Microsoft Windows Vista, or Windows 7, you may receive an error message that resembles either of the following.
Access to C:\Windows\System32\drivers\etc\ hosts was denied
Cannot create the C:\Windows\System32\drivers\etc\hosts file. Make sure that the path and file name are correct.
This issue occurs even though you log on by using an account that has administrative credentials.
To fix this issue, read this post.