Editing the Host File - Windows XP Service Pack 2

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am learning about the Host file and wanted to try it out. So, I added an
entry to redirect my machine when I type www.amazon.com. My entry looks like
the following:

66.102.7.99 www.amazon.com #redirect to www.google.com

However, Internet Explorer still goes directly to www.amazon.com. I have
deleted cache, cookies, and the history in Internet Explorer. I have flushed
dns in a command prompt. I have also made sure the bypass proxy server for
local addresses is checked.

What am I doing wrong?

Thank you!
 
Kara,

How did you edit the HOSTS file?

Open the file with Notepad, and then disable Word Wrap.
After each line in the HOSTS file, there should be a carriage-return.

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


I am learning about the Host file and wanted to try it out. So, I added an
entry to redirect my machine when I type www.amazon.com. My entry looks
like
the following:

66.102.7.99 www.amazon.com #redirect to www.google.com

However, Internet Explorer still goes directly to www.amazon.com. I have
deleted cache, cookies, and the history in Internet Explorer. I have
flushed
dns in a command prompt. I have also made sure the bypass proxy server for
local addresses is checked.

What am I doing wrong?

Thank you!
 
If word wrap in enabled in your text editor, disable it before editing the
HOSTS. Word wrap pushes lengthly sentences to the next line. (not a carriage
return). Whereas, each entries in the the HOSTS file should have a carriage
return line feed at the end so that Windows can correctly parse them.

Third-party HOSTS editors:
http://www.mvps.org/winhelp2002/hostsfaq.htm#Related

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


Hi Ramesh,

Could you please show an example on what you said? Thanks
 
Back
Top