Forum Home
Press F1
 
Thread ID: 108304 2010-03-23 04:57:00 HOSTS file not working stevesumner (4849) Press F1
Post ID Timestamp Content User
869431 2010-03-24 00:32:00 Make sure your HOSTS file has the entry:- 127.0.0.1 localhost

Also make sure you have also flushed your browser cache/history as well as dns cache
Terry Porritt (14)
869432 2010-03-24 00:55:00 what are you using to edit the host file?

If notepad etc, make sure it's not being saved as host.txt

You are probably aware of this, but I'll say it just in case :)

(The .txt extension is not seen unless you have "Hide extensions for known filetypes" unchecked in Folder Options/View.)

When you save the file after editing - use the "Save As" and not the "Save"

Change the "Save as type" drop-down from "Text Documents" to "All Files"

make sure the file name to save as has nothing but the word "hosts" in it and click save

reboot
bevy121 (117)
869433 2010-03-25 00:20:00 do u use a proxy server?
I have the same issue. I just wondering maybe it's because of the proxy server. any thoughts thanks a lot
shaider (15396)
869434 2010-03-25 23:26:00 I do use a proxy server, but I am able to surf with it turned off, using Microsoft Firewall Client. I had wondered about that myself, and I will need to test using my laptop at home using my home network, no proxy server and no firewall client etc. and see what happens. But I figured that changing the NS lookup order via the regedit to set the hosts file as the first lookup should have meant that the name was resolved to localhost straight away, thereby effectively blocking access to the site. stevesumner (4849)
869435 2010-03-26 00:09:00 Right, problem solved! It is the proxy server and the reason I didn't figure this out earlier was that I hadn't flushed my browser cache as well as dns cache like Terry suggested. I think I was doing one or the other, but never both.

Thanks to you all for your help.

Cheers.

Steve (not the real stevesumner)
stevesumner (4849)
1 2