Friday, 28 August 2015

How to Block Sites on Your Compute

block-websites-650x0

Method : Blocking Sites on a Windows Computer

  1. Block Sites on Your Computer Step 1 Version 3.jpg
    1
    Open Notepad as an administrator. Find your Notepad program, using the search bar if necessary. Right click it and select Run as administrator. You will need to enter an administrator password in order to block sites for the entire computer.
    Ad
  2. Block Sites on Your Computer Step 2 Version 3.jpg
    2
    Open your computer’s hosts file. You can use this file to tell your computer that a website is actually a device connecting to your computer, preventing it from working as usual. Click File → Open in Notepad, then find and open the hosts file atComputer → C: → Windows → System32 → drivers → etc → hosts.[1]
    • If you can’t find “Windows,” look for “WINNT,” “WINNT35,” or “WTSRV” instead.
    • If you found the “etc” folder, but don’t see a “hosts” file, click Show all files at the bottom right of the Notepad “open file” screen.
  3. Block Sites on Your Computer Step 3 Version 3.jpg
    3
    Copy the information to a backup document. If you accidentally delete or alter an important line in this document, your computer could fail to load any web pages. Create a backup Notepad file on your desktop or another obvious location, copy-paste the entire contents of the “hosts” document into it, and save it as “hosts file backup” or a similar name.
    • If you accidentally alter the wrong part of the hosts file and something goes wrong, just copy the information back from your hosts backup, and paste it back into the actual hosts document, replacing all the old text.
  4. Block Sites on Your Computer Step 4 Version 3.jpg
    4
    Return to the original file and fine the “localhost” line. Close your backup file, and return to the actual hosts file. Look for the word “localhost.” This is usually at the bottom of the document, where something similar to “127.0.0.1 localhost” or “::1 localhost” is written. Click at the end of this line to start typing.
  5. Block Sites on Your Computer Step 5 Version 3.jpg
    5
    Write the following information to block a website. First, hit “enter” or “return” on your keyboard to start a new line. On this line, type “127.0.0.1” followed by a space, then type the URL of the website you want to block, such as “www.facebook.com”.
    • Include the “www.” in the website name, but do not include “http://”.[2]
  6. Block Sites on Your Computer Step 6 Version 3.jpg
    6
    Add new websites on separate lines. You can block as many websites as you like. Make sure to put each one on a separate line, using “127.0.0.1” followed by a space before you enter the website URL.
  7. Block Sites on Your Computer Step 7.jpg
    7
    Save the file in the same location. Navigate to File → Save in the Notepad menu, and save the file with the same name. Click OK if any warnings show up, and do not save it to another folder even if prompted to.
    • If you cannot save your file, try disabling NortonMcAfee, or other antivirus protection software, since these could be blocking you. Activate them again after you are finished saving the document.
  8. Block Sites on Your Computer Step 8.jpg
    8
    Restart the browser if necessary. You might need to restart your browser before you notice any changes, or clear your cache in the browser’s preferences. However, even if you do neither of these, you should notice that the websites you listed are blocked within a few minutes.

No comments:

Post a Comment