How to Block a Website in Windows

Open the windows HOST file., Edit the file named HOST in notepad. , Set it up., Block each website., Example: 127.0.0.1 facebook.com , Save the file., Reboot., Test.

7 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Open the windows HOST file.

    In Windows 7, Vista, and XP it should be located in the following directory (or the drive in which windows is installed) C:\WINDOWS\SYSTEM32\DRIVERS\ETC\
  2. Step 2: Edit the file named HOST in notepad.

    , Add the following line of code to the bottom of the file:
    127.0.0.1 localhost , For each website you wish to block add a new line of code:
    127.0.0.1 website to block (see the next step for an example). ,, File-> Save-> Yes Overwrite , Restart the computer. , Direct your web browser to the blocked website to ensure the block has been successful.
  3. Step 3: Set it up.

  4. Step 4: Block each website.

  5. Step 5: Example: 127.0.0.1 facebook.com

  6. Step 6: Save the file.

  7. Step 7: Reboot.

Detailed Guide

In Windows 7, Vista, and XP it should be located in the following directory (or the drive in which windows is installed) C:\WINDOWS\SYSTEM32\DRIVERS\ETC\

, Add the following line of code to the bottom of the file:
127.0.0.1 localhost , For each website you wish to block add a new line of code:
127.0.0.1 website to block (see the next step for an example). ,, File-> Save-> Yes Overwrite , Restart the computer. , Direct your web browser to the blocked website to ensure the block has been successful.

About the Author

V

Victoria Wilson

Dedicated to helping readers learn new skills in creative arts and beyond.

37 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: