How to Block a Website in Windows 10 without Third Party Software

How to Block a Website in Windows 10 without Third Party Software


Hi this is Phil from Make Tech Easier
and welcome to How To Block a Website in Windows 10 without third-party software.
There are myriad reasons why you may not want certain websites to be
accessible from your browser maybe you don’t want kids in your house accessing
naughty content or perhaps you want to block those fake news sites that are
making all the headlines these days or maybe you just don’t want to
instinctively keep checking on Facebook or YouTube every five minutes, when you
should be working. No need to explain. Here’s our guide on how to block
websites using functionality built into Windows 10. No need for third-party
extensions or anything like that, just good old-fashioned host file tweaking.
Say hello to the host file. If you’ve done tweaking to your Windows 10
Internet settings before then you may be familiar with the host file. Despite
being a very simple file it plays an important part in managing your
computer’s communication with the Internet.
Specifically it lets you override the domain name system or DNS which assigns
domain names or websites to specific IP addresses and connects you to them. In
layman’s terms it lets you decide which websites you want your PC communicating
with and how you want it communicating with them so using the hosts file you
can block sites, redirect them and other fun little tricks. For today however
we’ll just focus on the blocking. Block websites using your hosts file.
All this may sound kind of complicated but it really isn’t. First navigate to
the system32 directory of Windows, which by default should be C:windowssystem 32driversetc Create a backup of your hosts file
in case you do something wrong. We are sure you won’t but do it anyway. Simply
right-click the host file click copy then find a place where you want to keep
the backup and paste it there. Once you’ve done that, back in the etc folder,
right-click the file called hosts, click “open with” and then select Notepad. You’ll
now see your hosts file splayed out in Notepad format. You should see several
entries with the numbers 127.0.0.1. These are loopback protocols which
basically translate to “your computer”. Any website you assign with this IP address
will look for that website on your computer and fail to do so because
that website of course isn’t stored on your computer. This way the website is
effectively blocked. So to block a website or many websites all you need to
do is start a new line at the bottom of the notepad document and type 127.0.0.1 in a space and then www.facebook.com or
whatever the name of the site you want to block is. For each new website you
want to block, start a new line and go through the same procedure. When you’re
done just click file then save and . . . ok, you may get this message. It says that
“you don’t have permission to save in this location, contact the administrator to
obtain permission. Would you like to save in the Documents folder instead?” if
this happens then obviously your permissions are not quite set up right
for you to be the administrator and you need to run
Notepad as administrator. To do this you just right-click on the icon for Notepad
and select “run as administrator” and then you will have full administrative
privileges to save the host file. This is obviously a security precaution because
you shouldn’t really mess around with the hosts file unless you know what
you’re doing. So please bear this in mind. Okay once you’ve saved the file, those
pesky websites you don’t want in your life will no longer be accessible from
any of your browsers. If you decide you miss those sites and want them back, just
open the hosts file in Notepad again and delete the specific entries for the
sites you want back. As stated before be careful about what you delete and
whatever you do don’t delete the hosts file itself. Very important. Conclusion.
We’ve always believed that if there’s a way to do something internally in
Windows you should do that instead of using third-party apps. If however you’re
not entirely comfortable with this then there are good extensions for each
individual browser that will do the job. Check out our list of extensions in the
description for blocking websites in Chrome and that will give you the idea.
Firefox has a good one too called LeechBlock, and there are plenty of
others out there. With that said we don’t feel the need to use those when we have
our humble host file right here. Ok, as always thanks for watching and please
subscribe and add your comments below. See you next time!

6 comments

Leave a Reply

Your email address will not be published. Required fields are marked *