Sunday, 3 November 2013

How to edit Windows 7 hosts file ?

NOTE:- This tutorial uses the file “hosts” as an example but other files can also be modified using this method .

I will give you two methods for this  -

First Method :-

If at some point you need to modify your "hosts" file in Windows 7, you’ll most likely have to change your access rights to that specific file.
Please note that you have to have administrator privileges to make the following changes.
In Windows Explorer, go to the file you wish to Edit. In this case we will be using “c:\windows\system32\drivers\etc\hosts”
Right-click on that file and select “Properties”
Select the “Security” tab
Select your Users.
Click on “Edit”

Click on your username again and modify the permissions as you wish. In most cases, you can give yourself “Full Control” .







Second Method :-


If you are using Windows 7 Operating System, then editing/modifying/saving Windows "hosts" File is not possible in most of the cases . In this post I will show you how we can easily edit/modify/save "hosts" File in Windows 7 Operating System?

Follow these simple steps for editing/modifying/saving "hosts" File in Windows 7 Operating System?

Windows 7 Hosts File is located in: C:\Windows\System32\drivers\etc (Assuming C Drive is your Operating System Drive). Copy this location :-

Click on Start Button > All Programs > Accessories then Right Click on Notepad and Select Run as Administrator .

Click Open i.e. (CTRL + O) in Notepad and Paste the Hosts File Address in it > Press Enter and Select All Files from the Drop Down Menu .

Or Simply Click on Start>My Computer>Local Disk C>Windows>System 32>drivers>etc , there you can see the "hosts" file .

Now Open the "hosts" File and Edit it as per your Requirement. Save it and it’s all done .

Note :-
Notepad in Administrator Mode can Save the changes you made in Windows Hosts File. You may not be able to Save Windows Hosts File, if you run Notepad in default mode.

Labels: , , , , , , ,