There are countless methods to block websites that you don't want users to access whilst utilizing your computer, with some (software) being quite effective, and others failing to serve their purpose at the best of times. There Is however, a very effective way to block any site you want natively within Windows, and dedicated to the PC on which It's applied to. In this tutorial, I will show you how to do It without the aid of third-party software.
Whatever your reason may be, I will demonstrate how to block websites by editing the Windows Hosts file. So what exactly Is the Hosts file? In simple terms, It's used to translate domain names Into their IP addresses, thereby you can view the website thereafter.
What I'll be doing, Is translate the domain name (website) that you wish to block, back to your own IP address, being the localhost. This means that the website will redirect to your computer and not on the Internet, hence the site cannot be reached.
You can block as many websites as you like, but for the purpose of this tutorial, I will be demonstrating just the one. So without further delay, let's get this started.
Step One:
To access the Hosts file, navigate to the following directory.C:\Windows\System32\Drivers\etc
Then right-click It, and select Open with as shown below.
Step Two:
Windows will ask how to open the file, so simply select Notepad and hit OK.Step Three:
The Hosts file will now open, so scroll to the bottom. Next, enter the loopback IP address of 127.0.0.0 and the website you wish to block. The loopback IP adddress (127.0.0.0), will redirect the website to your own computer, hence block It.In my case, I've entered 127.0.0.0 www.youtube.com, which will block access to YouTube. If you want to block several websites, enter each one as a new line In the above format.
Comments
Post a Comment