editing hosts file

Page 1 of 2 12 LastLast

  1. Posts : 29
    64 bit
       #1

    editing hosts file


    I am trying to modify the hosts file so that it will block certain websites. I tried the following code, but it does not seem to do anything when i visit the website (as in, the page loads normally):

    Code:
    127.0.0.1 asite.com
    what am i doing wrong? i made sure i saved before viewing the website.
      My Computer


  2. Posts : 418
    N/A
       #2

    In the hosts file, before the "127.0.0.1 asite.com" line, you need to put "127.0.0.1 localhost" to tell the machine that asite.com = 127.0.0.1 = localhost.
      My Computer


  3. Posts : 418
    N/A
       #3

    And please make sure that there is no "#" (pound sign) in front of the "127.0.0.1 localhost) line.
      My Computer


  4. Posts : 23
    Windows 7 x64
       #4

    OR add ::1 localhost.
      My Computer


  5. Posts : 418
    N/A
       #5

    Yup.
      My Computer


  6. Posts : 1,996
    Windows 7 Home Premium 64 bit
       #6

    The Host file hast a lot more competition these days when it comes to site blocking.

    Routers.
    Avast
    Google
    OpenDNS

    The free version of Avast will block sites. You can also use a password to protect the Avast settings from being changed.
      My Computer


  7. Posts : 8,608
    Windows 7 Ultimate 32bit SP1
       #7

    You can also use SpywareBlaster to protect your Hosts file along with protecting your Homepage and not allowing a drive-by ActiveX to hijack your computer.

    Read this: Using SpywareBlaster to protect your computer from Spyware, Hijackers, and Malware
      My Computer


  8. Posts : 29
    64 bit
    Thread Starter
       #8

    i have:

    Code:
    127.0.0.1       localhost
    #	::1             localhost
    
    127.0.0.1 asite.com
    I go to the site, and it still loads.
      My Computer


  9. Posts : 29
    64 bit
    Thread Starter
       #9

    Jacee said:
    You can also use SpywareBlaster to protect your Hosts file along with protecting your Homepage and not allowing a drive-by ActiveX to hijack your computer.

    Read this: Using SpywareBlaster to protect your computer from Spyware, Hijackers, and Malware
    i don't use IE that much. would I still need this?
      My Computer


  10. Posts : 8,608
    Windows 7 Ultimate 32bit SP1
       #10

    If you use Foxfire, yes.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 12:01.
Find Us