Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
Steven W

Hosts File

Recommended Posts

Has the Hosts file changed in 7? I noticed this which is different from every other version of Windows I've seen:

# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

# ::1 localhost

Is there different actions required in 7 to block sites? I'm not just looking to block in one app, but universally.

Share this post


Link to post
Share on other sites

Hmmm, I've tried entering the line:

127.0.0.1 google.com

doesn't seem to work, I've even tried adding:

127.0.0.1 localhost

::1 localhost

Without the # seen above, just doesn't seem to work.

Share this post


Link to post
Share on other sites

This just got a little more odd...Firefox will not open Google.com, But IE will and I can also ping it.

Editing, check this, pinging:

55817094.jpg

127.0.0.1? Should the ping be sucessful?

Edited by Steven W

Share this post


Link to post
Share on other sites

Okay, duh, yeah that should work. I finally put the 127.0.0.1 localhost line back in (without #) and although it worked once or twice in IE it finally stopped. Odd world!

Share this post


Link to post
Share on other sites

Okay, duh, yeah that should work. I finally put the 127.0.0.1 localhost line back in (without #) and although it worked once or twice in IE it finally stopped. Odd world!

When you put the domain name in the host file you are basically blocking the dns lookup.

It probably worked for a while because you had resolved a google ip before and it was still in the dns cache.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...