Mac Lion Hosts File Ignored?

Discussion in 'Mac OS X Lion (10.7)' started by SteveZz, Sep 23, 2011.

  1. SteveZz macrumors newbie

    Joined:
    Apr 20, 2009
    #1
    I've been searching all night and have yet to find out what is going on. I'm trying to block websites on the administrator user of my computer through the hosts file as I've done for quite some time now. Suddenly it seems as though the hosts file is being ignored. A simple line such as 127.0.0.1 Facebook.com does nothing. Facebook opens fine. I've cleared the dns cache I've rebooted the computer. I don't know what else to check. If I make something up google.something and type that into a browser it seems to check the hosts file. But not for something like Facebook.com if anyone can give me any guidance I'd love to hear it. Thank you.
     
  2. sidewinder macrumors 68020

    sidewinder

    Joined:
    Dec 10, 2008
    Location:
    Northern California
    #2
    Did you put both of these in your hosts file:

    127.0.0.1 facebook.com

    and:

    127.0.0.1 www.facebook.com

    And then do?:

    dscacheutil -flushcache

    Because this block Facebook for me....

    S-
     

Share This Page