Into Windows

  • Home
  • Windows 10
  • Windows 7
  • Freeware
  • 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

RECOMMENDED: Download this PC Repair tool to quickly find and fix Windows errors automatically
 

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 Articles

  • How To Add The Lock Option To Start & Taskbar In Windows 10
  • Lock Option Missing From Windows 10 Power Menu
  • How To Stop Microsoft Office Word From Showing Two Pages Side-By-Side
  • How To Make Skype Close When You Click On The Close Button
  • Turn Off Desktop Bottom Right & Action Center Notifications In Windows 10
  • How To Check For Affected Programs & Drivers When You System Restore

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 Cancel reply

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

Advertisements

Search Into Windows

Recent posts

  • How To Sign Out Of Signal Desktop In Windows 10 & Mac
  • How To Install Signal On Windows 10 PC
  • How To Add The Lock Option To Start & Taskbar In Windows 10
  • Lock Option Missing From Windows 10 Power Menu
  • Fix: Image Preview Option Is Missing From Context Menu In Windows 10
  • 4 Ways To Check If Your PC Has SATA Or NVMe SSD In Windows 10
  • A Storage Device May Be At Risk Of Failure & Requires Your Attention
  • Fix: Your PC Can’t Project To Another Screen
  • How To Check SSD Health & Temperature In Windows 10
  • How To Enable Or Disable Dark Mode In Microsoft Office 365 Word, Excel & PowerPoint

About us

  • About Us
  • Contact Us
  • Privacy Policy

Copyright © 2021 · Into Windows