Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to edit the Hosts file in 7

12 Sep 2009   #11
z3r010

 

Type the following into start search and press enter

%windir%\System32\drivers\etc

Then right click on the hosts file and take ownership


My System SpecsSystem Spec
.
12 Sep 2009   #12
Crypto

Windows 7 Professional, Windows XP
 
 

The 3rd one should work, by the looks of it, it seems like you have the same host file in 3rd and 4th location by the size and date of modification.
My System SpecsSystem Spec
12 Sep 2009   #13
ashes

Windows 7
 
 

Orbital Shark>
Believe me, I've tried that a dozen times now, - whenever i copy the hosts file, its still the sample that I open from the new location and not the original file. It says "this is a sample' just like on the snipe i posted here before...
My System SpecsSystem Spec
.

12 Sep 2009   #14
ashes

Windows 7
 
 

Heres the 'proof' that it doesnt help copying the file elsewhere:

peecee.dk | Vis upload sniped3.PNG

- As you see its still the sample and not the actual hosts file!!!
My System SpecsSystem Spec
12 Sep 2009   #15
Orbital Shark

 
 

That's what I get...

You need to add things underneath it like this....

How to edit the Hosts file in 7-capture.png


My System SpecsSystem Spec
12 Sep 2009   #16
Antman

 

Quote   Quote: Originally Posted by Orbital Shark View Post
That's what I get...

You need to add things underneath it like this....

Attachment 27599
Adobe? You are so BUSTED!!!

But I think you are right. The OP is not understanding the SAMPLE text.

Ashes - ignore the wrod SAMPLE. The file is no longer a sample if you put something in it.

It belongs at %windir%\System32\drivers\etc

IGNORE all other copies.
My System SpecsSystem Spec
12 Sep 2009   #17
R0am3r

Windows 7 RTM
 
 

Quote   Quote: Originally Posted by Orbital Shark View Post
C:\Windows\System32\Drivers\ETC\Hosts should be the default & correct location for the host file

I've just copied the file to Documents and opened it directly from there, no admin privliges needed. You should be able to edit it, save it, then copy it back to it original home. You will need to confirm a UAC notification....
This method worked for me. Thanks!
My System SpecsSystem Spec
12 Sep 2009   #18
Bumpus

 

Quote   Quote: Originally Posted by Antman View Post

Ashes - ignore the wrod SAMPLE. The file is no longer a sample if you put something in it.

It belongs at %windir%\System32\drivers\etc

IGNORE all other copies.
This is short cuz this is all ado about nothing...

That IS the host file...ignore the phrase "sample"
My System SpecsSystem Spec
12 Sep 2009   #19
Antman

 

Quote   Quote: Originally Posted by Bumpus View Post
Quote   Quote: Originally Posted by Antman View Post

Ashes - ignore the wrod SAMPLE. The file is no longer a sample if you put something in it.

It belongs at %windir%\System32\drivers\etc

IGNORE all other copies.
This is short cuz this is all ado about nothing...

That IS the host file...ignore the phrase "sample"
Yes. Thank you for clarifying that.
My System SpecsSystem Spec
12 Sep 2009   #20
DrWho

Windows XP-Pro-SP3, Windows 7
 
 

Please, don't anyone think that I'm promoting myself as a HOSTS expert, but I do have some experience with it.

I first ran into using the HOSTS file some time (years) ago when I needed to change the Server designation for my Anti-Virus program, to use the Professional Server instead of the FREE server.

Anyway, I just opened Win-7 and accessed my HOSTS file.
When I tried to edit it by adding another entry, it saved my work to Hosts.txt and not the main Hosts file itself. Hmmmmm!

My solution was to rename the main HOSTS file to HOSTS.bac and then rename the hosts.txt file to HOSTS (NO Extension).
That worked like a treat.

However, all this was only an effort to verify, for myself, what's being said here in this thread.
Actually, I never really needed to go through all those acrobatics to work with my hosts file. I use the "Hosts Manager" program from "abelhadigital(dot)com" and I use it weekly to keep my HOSTS file up to date. It lets me view and edit my hosts file at will.

I've been doing this for quite some time now and I share the HOSTS Manager program with many of my customers, so they can keep their own HOSTS file up to date. It's a great protection against your browser being redirected to a porn site, or worse.

HOSTS Manager is almost a "Must Have" when children are using the home PC. I won't set up a PC without it. It's just one more level of security.

Sorry, I didn't mean to rant or ramble.

Cheers Mates!
The Doctor
My System SpecsSystem Spec
Reply

 How to edit the Hosts file in 7




Thread Tools




Similar help and support threads
Thread Forum
Hosts file ignored and replaced with hosts.original
Hello. I am trying to use the hosts file. However both pings and web addresses still bypass the hosts file. I noticed that there is another file in the C:\Windows\System32\drivers\etc directory called 'hosts.original'. When ever I delete this file, it reappears seconds later. I have made sure that...
General Discussion
Hosts File
Hey, I was wondering, is there any internet performance gain if you put a commonly used website's IP (like Google) in your Hosts file, so it doesn't need to ask a DNS server? I mean, because I have 30 websites I go on at least 10 times each day, and it lags when I open all of them :D Thanks!
General Discussion
Hosts file-S??
can the hosts file be changed to, or amended by, another file? IOW can there be a file named xyz that essentially replaces the hosts file, or adds entries to it? Possibly by a registry key or configuration setting? Of course it could by altering library fxns, but by other "simpler" means? ...
System Security
HOSTS File - Create a "Edit HOSTS file" Shortcut
How to Create a "Edit HOSTS file" Shortcut in Windows 7 and Vista The HOSTS file is a .txt file used in Vista and Windows 7 to map hostnames to IP addresses. Your computer checks this file first to resolve any network names to its corresponding IP address before it tries to check the Internet....
Tutorials
HOSTS file
I setup a hosts file in windows xp in order to use my website locally using the exact domain name by editing the hosts file by adding the line: 127.0.0.1 www.test.com This should resolve my local ip address for the test.com site and if apache is running, then it should load the website...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:47.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App