How does one block Facebook from their computer?

By learninmypc
Nov 27, 2011
Post New Reply
  1. A friend has asked me how to block facebook from a computer & I read some place where its a router setting? Is that true?? TIA
  2. jobeard

    jobeard TS Ambassador Posts: 8,945   +584

    Blocking a website for ALL users is easy. Exit your email program and any browser

    using an admin login, get a command prompt
    cd \windows\system32\drivers\etc
    attrib -r hosts
    notepad hosts​
    at a minimum you will see
    # localhost
    # ​
    anywhere below the line reading LOCALHOST, you add
    # kill these websites
    # ​
    make sure there is at least one space (or tab) between the address and the domain name

    save the file

    run the following
    • attrib +r hosts
    • ipconfig /flushdns
    • net stop "dns client"
    • net start "dns client"
    from then on, no one (including the admin) can access
  3. learninmypc

    learninmypc TS Evangelist Topic Starter Posts: 6,317   +326

    Thank you, will let my friend know

Similar Topics

Create an account or login to comment

You need to be a member in order to leave a comment
TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...

Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.