How To Edit Hosts File In Windows Vista: Windows Vista Tips

August 17, 2009

in Tools & Extras

Sometimes situations demands you to edit hosts file of your system. For instance when you want to block a website on your computer without any software then you are supposed to edit this hosts file. Now if you are on Windows vista then it does not allow you to edit hosts file in the same way you edit other normal notepad files. This is due to extra layer of security in windows vista.  Actually you are supposed to have the administrator privliges to edit system files. So whenever you will try to edit hosts file in vista it would not allow you to save that file after your editing, it will show up a error.

So here is how you have to edit the hosts file in Windows Vista:

Step1: Click on the start button and you will see a search box just above the start button. Type Notepad in the search box. Now notepad will appear in the programs.


Right click on Notepad and select Run as Administrator, this will open up notepad with administrative privileges.

Step 2: Now browse to this location in notepad C:\Windows\System32\drivers\etc. Now a notepad window will open, select type of files as “All files” as shown in the screenshot below.

Vista Hosts file

Now vista hosts file would be visible to you. Select it and start editing.

To get More Real Time updates on this topic: Subscribe by RSS Subscribe VirginTech via RSS or Subscribe by Twitter Follow us on Twitter or Join VirginTech Facebook Fan club Join VirginTech Facebook Fan Club

We'll send you more updates on this topic right to your inbox for free:

Enter your Email below to get free VirginTech updates:

[NOTE: Once you click on "Subscribe Now" after entering your email, we'll send you a subscription confirmation email to your email address you entered here to confirm your subscription. So make sure you check it.]

{ 2 comments… read them below or add one }

1 Chris August 18, 2009 at 12:17 pm

You mentioned that one can block websites on computer by editing these hosts file. So what we need to put in there?


2 Shahab August 18, 2009 at 12:21 pm

Well chris just stay tuned to VirginTech. In our next post you will get your answer.


Leave a Comment

Previous post:

Next post: