How to Block Website in Windows?

Sometimes you think about and wish that you could stop some particular websites (block website) to open on your computer. Even, it does not feel good to just telling repeatedly to your children’s, friends & family members is not a good solution. Now days, children’s are quite busy to access social sites over the internet instead of doing their school work, etc. Sometimes, you do not want your friends & family members to access few particular websites on your computer network. Therefore, you look for the way wherein you can block website without knowing them.

Here I am going to explain you the steps wherein you can easily stop desired websites to open in your computer. Windows has a feature, where we can modify Windows Host File and will stop certain websites to open on your computer. This tutorial will help you to block websites in Windows 7, Vista, 8.1 and Windows 10.

Block Website – Easy Steps

Follow the step-by-step guide to block Websites by modifying Windows Host File given below:

Step 1. First, we need to copy Windows Host File. To find, follow the path “C:\Windows\System32\drivers\etc”. Once you reach “etc” folder, select “hosts” file and do a right-click on it and copy (or Ctrl + C) hosts file. Now minimize the file explorer. Block a Website in Windows Click To Tweet

block websites

Step 2. Once hosts file copied; go to the desktop and paste (Ctrl + V) it to the Desktop.

Step 3. Now right-click on hosts file and open with “Notepad”.

block a website on windows 10

Step 4. Once hosts file open in the Notepad, scroll down, go to the bottom, and type 127.0.0.1 www.facebook.com / 127.0.0.1 www.twitter.com (Facebook & Twitter will be blocked). You may add more websites by doing the same process. Once finish to add the websites, go to the “File Menu” and click save and close the Notepad.

block website

NOTE: Facebook & Twitter have taken as an example. You can use any website instead.

Step 5. Right-click on hosts file on your desktop and copy it. Now maximize the file explorer where “etc” folder is located. Right-click inside the folder and paste the copied hosts file.

windows 10 blocking websites

Step 6. You may prompted while paste the hosts file to “etc” folder. Click on “Replace the file in the destination”. Once copied, close the file explorer.

Step 7. Now open any of the browser and try to open www.facebook.com or www.twitter.com. Those websites will not open in any of the browser installed on your computer because it has blocked.

block websites using host fileFor Information

Steps showing in this post are on a Windows 10 computer. You can use the same steps in Windows 7 & 8 as well. It will work perfectly. It may show few vary options. In case if you get any trouble in Windows 7 and 8 computer while doing above steps, contact me anytime by using “Contact US” Page.

Block a Website in Windows Click To Tweet

Share This Post To Help Others!!

Leave a Reply