Skip to main content

How To Block Websites Without Using Software

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.

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 and the website you wish to block. The loopback IP adddress (, will redirect the website to your own computer, hence block It.

In my case, I've entered, which will block access to YouTube. If you want to block several websites, enter each one as a new line In the above format.

Step Four:

To finalize the change, hit File and then Save.

Step Five:

Let's put this to the test. Remember, I've blocked YouTube, so upon navigating to, as you can see, It cannot be accessed. This was done using Microsoft Edge, so I'll try another browser In the next step.

Last Step:

I've navigated via Firefox, and as expected, YouTube has been blocked. Perfect.

Final Thoughts:

Although there are many methods and gateways to access websites, It's very much a commonality for users to simply refer to them by their domain names, therefore the entries In the Hosts file are very effective Indeed. As stated In Step Three above, every website that you want to block, must be entered as a new line. Of course, don't forget to save the changes.


Popular posts from this blog

How To Decode The Windows 10 Product Key

Every Windows 10 operating system that's Installed and activated on the computer, has what's called a Product Key , that Is either pre-Installed by the manufacturer, or added by the end user when formatting their PC. In order to have a fully-functional OS, It must contain a valid Product Key. Whilst there are many tools that can extract It from the operating system, In this tutorial, I will show you how to manually decode the Product Key.

How To Check Faulty Drivers In Windows 10

For hardware devices to function properly, they must have device drivers  Installed, thus allow them to perform at their optimal state. It's all well and good when they're running without error, but they do tend to fail at the best of times, which can cause system Instability and/or loss of functionality. It can be a difficult task pinpointing the problematic driver(s), so In this tutorial, I will show you how to check faulty drivers , without the aid of third-party tools.

How To Create A Fake File Of Any File Size

Depending on your business environment or Individual requirements, sometimes there Is the need to test files of a given capacity. Such tests can Include Identifying how well your hard disks perform under heavy read/write operations, or to establish whether files can be securely deleted beyond recovery. Whatever the reason may be, In this tutorial, I will show you how to create a fake file of any file size.