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.
Step-by-Step Guide
-
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\ -
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. -
Step 3: Set it up.
-
Step 4: Block each website.
-
Step 5: Example: 127.0.0.1 facebook.com
-
Step 6: Save the file.
-
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
Victoria Wilson
Dedicated to helping readers learn new skills in creative arts and beyond.
Rate This Guide
How helpful was this guide? Click to rate: