If you’re a mother who wishes to protect your child from bad websites or a network admin who is responsible for the network activity of company workforce, then, this short tutorial will teach you how to restrict internet access to a specific website – no additional software needed.
Block Specific Websites At School, Office Workstations - No Software Needed
Step 1 Log in to your computer as Administrator.
Step 2 Navigate through the Hosts File. Click Start > Run and type the following:
\Windows\System32\drivers\etc\hostsWindows should prompt you an "Open with" dialog (see below). Just select "Notepad" or any other text editor and hit OK.
NOTE: To access the hosts file on on Windows 7, you may need to temporarily disable all active antivirus software first. Then run Notepad as Administrator, open the host file by navigating over here: \Windows\System32\drivers\etc\hosts.
Step 3 Now, let’s try to block Facebook and Twitter. All we need to do is to add the following codes below the lines containing 127.0.0.1 localhosts (if you cannot see it, create it):
127.0.0.1 facebook.comStep 4 Now, save the File and see it yourself!
Blocking specific websites is really that easy!