How to Block Websites from Opening in Windows

A website is a collection of related network web resources, such as web pages and multimedia content, typically identified with a common domain name and hosted on at least one web server. Sometimes, you might need to block certain websites, for instance, to configure a computer for office use or to restrict some websites for home use. In this article, we will teach you how to block websites on Windows 10.

Blocking websites on Windows 10
How to block websites on Windows 10

 

1. Block Websites through Hosts File

Modifying the hosts file is a straightforward way to block specific websites by redirecting their addresses. By linking the site’s URL to a local address like 127.0.0.1, your system blocks the connection, preventing access. This method works at the system level, making sure the restriction applies in all browsers.

  1. Open “Notepad” as an administrator. Press Windows + S, type “notepad“, right-click the application, and select Run as administrator.Opening Notepad as administrator
  2. Click “File” and then “Open.”
  3. Go to the address:
    C:\Windows\System32\Drivers\etc\hosts
  4. Find and open the “hosts” file.Opening hosts file in the system directory
  5. Scroll to the bottom and click below the last entry.
    Note: Add space after the last line just to be safe.
  6. Type your localhost IP and URL/Address of the website you want to block:
    127.0.0.1    www.facebook.com
    Adding websites to block in the hosts file
    Adding Websites to Block in the Hosts File
  7. Note: Use the tab key to add a space between the IP and the address. The IP stays the same for each web address you add since it is your localhost IP. Only the website URL changes.
  8. Click File, then Save.
  9. Try accessing the website; it should now be blocked.
    Note: You might need to restart your PC for the changes to take effect.

2. Block Websites in Firefox

To manage access in Firefox, you can use extensions or parental controls to block websites. This prevents unwanted sites from opening, providing a safer and more focused browsing experience to suit your needs.

  1. Open Mozilla Firefox.
  2. Click the “Settings Bar” at the top right corner.
  3. Select Add-ons or press Ctrl + Shift + A.
  4. Search for “Block Site” in the search box.Adding add-ons on Firefox browser
  5. Choose the one with the most users and click “Add to Firefox.”Adding to Firefox
  6. Add any web address to block it in Firefox.Adding sites to block in Block Site add-on
  7. Add a Password in the settings on the left panel to protect the blocked sites from being unblocked.
    Password feature for Block Site
    Password Feature for Block Site

3. Block Websites in Chrome

Using Chrome’s built-in tools or extensions lets you easily block certain websites right in the browser. This approach is great for reducing distractions and keeping your browsing safe without changing any settings on your computer.

Click here to view the method for blocking a website in Chrome.

4. Block Websites in Edge

Controlling access directly within Microsoft Edge makes it easy to block unwanted websites without using extra tools. By using Edge’s built-in features like site permissions or family safety settings, users can easily block specific URLs. This helps create a safe and focused browsing experience tailored to individual needs.

  1. Press Windows + R on your keyboard to open Run.
  2. Enter “inetcpl.cpl” and press Enter.Opening Internet properties through Run
  3. In the Internet Properties window, click the Security tab.
  4. Choose “Restricted Sites” and click “Sites.”Selecting a restricted site in the security tab
  5. Add the websites you want to block, click Add, then Close and Save.Adding website to block in Edge
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.