Into Windows

  • Home
  • Windows 11
  • Windows 10
  • Windows 7
  • Privacy
You are here: Home » Windows 10 » How To Block Websites On Your Windows 10 PC

How To Block Websites On Your Windows 10 PC

Last Updated on June 12, 2017 by admin 4 Comments

So much of our life is digital today. We visit tens of websites every day to consume and share information. But the sites we visit might not be appropriate for our kids.

If you share your Windows 10 PC with your kids, it’s a good idea to block access to certain websites on your PC.

block websites on Windows 10 pic7

While there are tens of free and commercial software around to block websites on a PC, you can use the built-in hosts file to block URLs on your Windows PC. Just by adding URLs of a website to the host file, you can block that website on your PC. None of the browsers installed on your PC will be able to open those blocked websites.

Here are two easy ways to block websites on your Windows 10 PC by editing the hosts file.

Block websites by manually editing the hosts file in Windows 10

As said, you can block websites on your Windows 10 PC without installing any additional software. All you need to do is edit the hosts file. Here is how to do just that.

Step 1: Open the Notepad program as administrator. To do so, type Notepad in Start/taskbar search field to see Notepad program in search results, right-click on the Notepad entry, and then click Run as administrator.

Click Yes button when you see the User Account Control prompt.

block websites on Windows 10 pic1

Step 2: At the Notepad program window, click File menu, click Open, change the file type from Text Documents to All Files (see picture below). Navigate to C:\Windows\System32\drivers\etc (where “C” is the drive letter of your Windows 10 install drive), and select the hosts file.

Click the Open button to open the file with Notepad.

block websites on Windows 10 pic2

block websites on Windows 10 pic3

Step 3: Once the hosts file is opened with Notepad, add the URL of websites that you want to block access to on your PC in the following way:

127.0.0.1 www.bing.com

127.0.0.1 www.google.com

block websites on Windows 10 pic4

Step 4: Finally, click the File menu and then click Save option (Ctrl+S) to save the changes. That’s it!

block websites on Windows 10 pic5

Try to open one of these URLs in any of the web browsers on your PC now. None of the blocked websites will load on your PC from now on.

To unblock websites again, follow the instructions mentioned above and remove website entries from the hosts file. Save the file.

Use URL Blocker to block websites in Windows 10

If you are not comfortable manually editing the hosts file, you can use this tiny URL Blocker utility to block websites on your Windows 10 PC. The URL Blocker allows you edit the hosts file without opening the hosts file. Here is how to use URL Blocker to block websites in Windows 10.

Step 1: Get URL Blocker from this page.

Step 2: Run URL Blocker by double-clicking on its executable as it doesn’t require an installation. If Windows 10 warns you against running this program, please run the program by ignoring the warning.

Step 3: Click the field, type the URL of the website which you want to block on your PC and then click Add button. You can add as many websites as you want.

block websites on Windows 10 pic6.1

Once done, click the Apply button. You will be asked to log off and sign in again. Please do so to block all added websites. Good luck!

To unblock websites, run URL Blocker again, select websites which you want to unblock, click Delete button and finally, click Apply. Log off and log in again.

Filed Under: Windows 10 Tagged: Tips

Related Posts

  • Make Windows+E Open This PC (Computer) In Windows 10/11
  • You Can Run Windows 7 Programs On Windows 11
  • How To Open File Explorer To This PC By Default In Windows 10
  • How To Search The Entire Windows 10 PC For A File From Start/Taskbar
  • Check If Your PC Is Ready For Windows 8 Using Windows 8 Upgrade Assistant
  • PCtransfer: Windows Easy Transfer For Windows 10/8.1

Comments

  1. Huzaif Ahmad Malik says

    February 16, 2019 at 8:51 pm

    What is the procedure for 64 bit i am not getting host file anywhere can someone help me out

  2. Martin says

    June 11, 2018 at 12:07 pm

    Useless! You can’t save the edited host file, even if you run notepad as administrator, because a process has it locked!

  3. Géraud Lernais says

    February 19, 2018 at 6:11 pm

    Thank you, you just mentioned to add in the procedure that the computer had to be restarted for the changes to the host file to apply.

  4. Marty G says

    October 28, 2017 at 9:24 am

    Is there a way to prevent a site from opening altogether without giving you an error message and having to manually close out the opened tab?

Leave a Reply

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

Advertisements

Search Into Windows

Recent posts

  • How To Turn Off Or Disable Windows Copilot In Windows 11
  • 4 Ways To Start A Search In Windows 11
  • How To Format USB Drives In Windows 10/11
  • How To Show Seconds In Windows 11 Clock
  • How To Make Laptop Screen As Main Display On Windows 11
  • How To Automatically Delete Old Files From Recycle Bin In Windows 10/11
  • 3 Ways To Disable Automatic Driver Updates In Windows 11
  • How To Restore Personal Folders (Downloads & Documents) To Default Locations In Windows 10/11
  • How To Make Bing Search Default In Microsoft Edge
  • How To Hide Edge Sidebar On Windows 10/11 PC & Mac

About us

  • About Us
  • Contact Us
  • Privacy Policy

Copyright © 2023 · Into Windows