How to Block Facebook in Windows XP

Written by robert kingsley
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Block Facebook in Windows XP
You never know what sort of creepy characters are looking at your children's profile. (Hemera Technologies/ Images)

Facebook can be a lot of fun, but it can also be a security risk and a huge time waster. As a parent you may not want your children using this website. Whether you're sick of cleaning malware off of your computer, sick of yelling, "Do your homework" or you're worried that the wrong people will take interest in your kid's profile, you can block this site without even having to download anything. Windows XP has a built-in file called "Hosts." Adding sites to this file can block users from viewing specific pages, including Facebook.

Skill level:
Moderately Easy


  1. 1

    Click "Start" and "Run" to open a dialogue box.

  2. 2

    Type "notepad c:\windows\system32\drivers\etc\hosts" without quotation marks and click "OK." Notepad will launch the hosts file for editing.

  3. 3

    Scroll to the bottom of the file where you'll find the following like of text, " localhost". Place your cursor on the line below this entry.

  4. 4

    Enter "" then press "Tab" and type "" Click "File" and "Save" to save your changes. Close Notepad.

  5. 5

    Open Internet Explorer and browse to Facebook. You'll find the page blocked.

Tips and warnings

  • There is no limit to the number of sites you can block using the hosts file. Just use the same format with whichever site you don't want your kids to see.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.