Sunday 11 January 2015

How to edit your host file or block a website

The hosts file is a computer file used by an operating system to map hostnames to IP addresses. The hosts file is a plain text file, and is conventionally named hosts.
   [en.wikipedia.org/wiki/Hosts_(file)]

Windows 8 and 8.1
 Locate the host file location C:\windows\system32\drivers\etc\hosts 
Right click the hosts file and open the properties to uncheck the Right-only





Open notepad as an administrator, go to the start menu and type Notepad


Right click on the notepad and Run as administrator


In notepad click File>open



Go to C:\Windows\System32\Drivers\etc
To locate the host file,

Click to select All Files, Open the hosts file.
 In this example we are going to block www.facebook.com,by editing the host file.

Add 127.0.0.1   www.facebook.com
after the last entry or below the # sign
Save the File to effect the changes and close the it.
Go to the browser and put www.facebook.com
It will not display the website



0 comments:

Post a Comment