How to block websites on Windows 10 PC / Laptop using host file in 2021

In this mode you learn how to block websites on windows 10 using command prompt or CMD. A website is a collection of related network web resources such as web pages and multimedia content that are usually identified by a common domain name and published on at least one web server. You may need to block these sites from time to time.

However, when it comes to blocking websites Windows 10, there are several ways to do this. Most of the time you can find them through your tabs so you can delete them from the browser you are using. In addition, our systems have a host file that you can use to block any site by editing it and pasting the URL.

What you learn in this guide:

Advertising

How to block websites on Windows 10 using host file

Do you want to prevent all users on a Windows PC from accessing certain websites, no matter what browser they use or at what time of day? All you have to do is make a few simple additions to the Windows host file. This is the easiest way to block websites on Windows 10, and it’s free and does not require you to download or install any additional software or extensions. It’s an easy way to block people of all ages from seeing content you don’t want to see.

Step 1. Type Ordered in the search bar next to beginning menu. So Right click on Command prompt choose Perform as administrator.

Step 2. If prompted, click Yes.

Step 3. Write now “notepad c: \ WINDOWS \ system32 \ drivers \ etc \ hosts”Without quotes in the command line window, and then press Enter.

How to block Web sites on Windows 10 by using a command-line host file

Step 4. Scroll to the end of the text file in Notepad. Type 127.0.0.1 followed by a space then the name of the site you want to block. E.g, 127.0.0.1 www.facebook.com. Repeat this step for each site you want to block.

iMarkup 20191229 190116 min

Step 5. Once you’ve added sites to your block list, click “Sag“in the notepad menu bar, then”to cherish”To save to file when you have finished adding each website. Then close the command prompt and notepad.

iMarkup 20191229 190220 min

How to unblock websites on Windows 10 by using command-line host file

So now you have learned how to block sites on Windows 10 with command prompt. However, sometimes you may want to unblock these blocked sites again. To unblock websites on Windows 10, just follow the steps below.

Step 1. Type Ordered in the search bar next to beginning menu. So Right click on Command prompt choose Perform as administrator.

iMarkup 20191229 190516 min

Step 2. If prompted, click Yes

Step 3. Write now “notepad c: \ WINDOWS \ system32 \ drivers \ etc \ hosts”Without quotes in the command line window, and then press Enter.

iMarkup 20191229 190052 min

Step 4. Wipe off or remove the blocked site you added. block websites on Windows 10

iMarkup 20191229 190240 min

Step 5. Once you have removed the site (s) from the list, click on “Sag“in the notepad menu bar, then”to cherish”To save to file when you have finished adding each website. Then close the command prompt and notepad. block websites on Windows 10

iMarkup 20191229 190446 min

Similar items:

Related studies:

  • Windows 10 blocks websites
  • how to block websites using host file windows 10
  • Windows 10 unblocks websites
  • how to block a site on windows 10 chrome
  • how to block youtube on windows 10

Conclusion

It was about blocking websites on Windows using a host file with a command prompt. It was the easiest and freest method to block websites on Windows 10, and it does not require any additional software or extension.

Leave a Comment