Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Basics of Web development with Node js

    June 6, 2023

    How to Remove Pride Flag from Widget Board in Windows 11

    June 2, 2023

    How to Enable Dark Mode in Paint App in Windows 11 22H2 (Right Now)

    June 2, 2023
    What's Hot

    Basics of Web development with Node js

    June 6, 2023

    How to Remove Pride Flag from Widget Board in Windows 11

    June 2, 2023

    How to Enable Dark Mode in Paint App in Windows 11 22H2 (Right Now)

    June 2, 2023
    Facebook Twitter Instagram
    GeekerMag
    • Home
    • Windows
      1. Windows 11
      2. Windows 10
      3. View All

      How to Remove Pride Flag from Widget Board in Windows 11

      June 2, 2023

      How to Enable Dark Mode in Paint App in Windows 11 22H2 (Right Now)

      June 2, 2023

      How to Disable ‘Recommended Websites’ Ads in Windows 11 Start menu

      June 2, 2023

      How to Create Virtual Drive (VHD, VHDX) from Windows 11 Settings App

      June 2, 2023

      How to Disable New ‘Bing Search Bar’ on Windows 10 Desktop

      March 17, 2023

      How to Stop Internet Explorer Open/Redirect to Microsoft Edge in Windows 10

      March 6, 2023

      How to Download & Install Intel Unison on Windows 10 PC (Workaround)

      February 21, 2023

      Fix – Microsoft Store Error Code 0xC002001B in Windows 10 While Installing Apps

      May 21, 2022

      Basics of Web development with Node js

      June 6, 2023

      How to Remove Pride Flag from Widget Board in Windows 11

      June 2, 2023

      How to Enable Dark Mode in Paint App in Windows 11 22H2 (Right Now)

      June 2, 2023

      How to Disable ‘Recommended Websites’ Ads in Windows 11 Start menu

      June 2, 2023
    • Browser
      1. Microsoft Edge
      2. Google Chrome
      3. Firefox
      4. View All

      How to Disable Bing Chat Shopping Suggestions & Prompts in Microsoft Edge

      May 25, 2023

      How to Turn ON ‘Edge for Gamers’ Feature for Enhanced Gaming Experience

      May 14, 2023

      How to Try New Microsoft Edge Look with Round Corners (2023)

      May 6, 2023

      How to Use Bing Chat Integration in Edge (Right-click) Mini Menu

      April 30, 2023

      Fix – Opening Chrome opens Default App Settings in Windows 11/10

      May 1, 2023

      How to Enable and Use Chrome Hidden Reader Mode (2023)

      April 9, 2023

      How to Use New Bing Chat Mode in Google Chrome

      March 15, 2023

      How to Disable Windows 10 Upgrade Prompt in Google Chrome – 2023 Guide

      February 2, 2023

      How to Automatically Reject All Cookies Banner on Sites in Firefox

      December 23, 2022

      How to Install Firefox v100 in Windows 7

      April 9, 2022

      How to Enable Close Tab Warning in Firefox 94

      October 27, 2021

      How to Restore Missing View Image Info Option in Firefox

      September 2, 2021

      Basics of Web development with Node js

      June 6, 2023

      How to Remove Pride Flag from Widget Board in Windows 11

      June 2, 2023

      How to Enable Dark Mode in Paint App in Windows 11 22H2 (Right Now)

      June 2, 2023

      How to Disable ‘Recommended Websites’ Ads in Windows 11 Start menu

      June 2, 2023
    • Gaming

      Fix – Avast Antivirus Blocking or Disconnecting League of Legends

      May 4, 2023

      5 Cool Puzzle and Brain Teaser Games

      November 24, 2022

      4 Alternatives to Microsoft Solitaire You Should Try 

      June 29, 2022

      5 Best Equipment to Stream Your Game Live [Logitech, Tonor & so on..]

      April 6, 2022

      Twitch Set to Offer Income Incentives to Help Level the Playing Field

      March 9, 2022
    • Best Of

      How to Find Someone Online using their Picture

      April 5, 2023

      Lasta Review: Can This App Aid in Weight Loss?

      April 5, 2023

      How to Create Stunning Visuals for Instagram in 2023

      March 23, 2023

      How to Teach your Child to Program in Python

      January 30, 2023

      What Should You Look at Before Choosing Automatic Captioning Software?

      April 20, 2022
    • How to

      Convert HEIC to JPG without Losing Quality Online for Free

      May 8, 2023

      How to Know Someone Is Lying to You Online

      April 25, 2023

      How to Add Text Box to PDF on Mac? Three Effective Ways

      April 18, 2023

      How to Recover Data From SD Card Using Recuva

      April 17, 2023

      Upgrading from Windows 7 to Windows 10: How to Keep Your Data Safe‍

      March 20, 2023
    GeekerMag
    Home»How to»How to Block Websites on Microsoft Edge in Windows 10 (Host’s file Method)
    How to

    How to Block Websites on Microsoft Edge in Windows 10 (Host’s file Method)

    By Viney DhimanSeptember 19, 2019Updated:June 2, 202112 Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    PC Repair and Driver Updater Recommended for Fixing Issues and Updating Drives on Windows PC. Trusted by Millions.

    The following blog has a quick workaround on how to block websites on Microsoft Edge in Windows 10.

    How to Block Websites on Microsoft Edge in Windows 10

    Microsoft Edge is the default web browser in Windows 10 out of the box. The company has replaced it with Internet Explorer to complete other modern browsers available in the market such as Chrome, and Firefox.

    By the time the company has introduced lots of useful features, and one of them is a parental control feature. Users can take help of this security feature to block certain sites on Microsoft Edge browser in Windows 10. It could be social networking sites like Facebook or Pornography sites. Of course, no one would like their family members to access these type of websites.

    Parental Control feature is the part of Edge browser for a long time. And blocking sites using this feature is not much useful. Now what to do in this situation? The best solution is to block the whole domain on the Edge browser.

    Update 19/09/2019 – I have tested this workaround and working flawleslly

    How to Block Websites on Microsoft Edge in Windows 10

    Unfortunately, there is no such setting available in the Edge browser and due to this reason users left with no other choice, but to use the host file to block sites in Windows 10.

    In this method, you need to modify the host file and mention the sites which you want to block on the Edge browser. If you’re willing to check this method, then here is what you need to do:

    Step one: Launch Notepad with Administrator Rights

    In the Start menu search bar type “Notepad.” When the Notepad comes up in the results, right-click on it and Run as administrator.

    notepad - run as administrator

    When UAC Dialog box appears, click Yes to continue.

    In the Notepad file, click on the File > Open.

    open file in notepad

    The new navigate window will open, you need to navigate to the location where the host’s file is available. 

    Windows 10 hosts file location is C:\Windows\System32\drivers\etc\hosts file

    windows 10 hosts files location

    To view files under this folder, you need to switch from Text Documents (*.txt) to All Files. You can change it just like shown in the following screenshot.

    window hosts file location

    When you select All Files, you will get all the files available in the ETC folder. Here is how it will look:

    hosts file in windows 10

    Just choose the Hosts file and click on the Open button.

    The host’s file in the Notepad will be open. Here is how it will look:

    windows 10 host files

    Step Two – Add Sites which you want to block

    Next, you need to type links of the sites which you want to block from opening in the Edge browser. Suppose, you want to block Facebook and YouTube, then here is how you need to type it:

    Note: Before editing the host’s file it is very important to make a backup of the file.

    • To block Facebook, type this: 127.0.0.1 www.facebook.com
    • To block YouTube, type this:  127.0.0.1 www.youtube.com
    modify hosts file

    Thing to Keep in Mind– Make sure to modify the file the way its is visible in the above screenshot. Otherwise, it will not block the site.

    Depending on the requirement, you can add as many websites you want to block.

    Alternate way – In case, After following the above workaround, if sites are still opening then instead of using 127.0.0.1 before web address use 0.0.0.0. For example: 0.0.0.0 facebook.com

    Step Three – Save the file

    After modifying the host’s file, click on the Save button and close the file. Also, close the Microsoft Edge browser to apply the changes.

    Now if you try to visit Facebook, YouTube and other sites which you have blocked; then you will notice that the site is not opening and showing you a message, i.e., Can’t reach this page or similar.

    facebook blocked

    As of writing this blog post, this is the only way to block sites on Edge browser. Maybe, the company introduces a better option for achieving the same thing in the future.

    Additional information – This method also answer the following queries:

    Block websites in Chrome, Block Websites in Firefox, and Block Websites in Chromium Edge.

    Check out this YouTube video:

    Find this workaround handy? If you’re facing any difficulties in blocking sites using host’s file method, then let us know in the comments we will love to assist you.

    Donate on Paypal or Buy us a coffee or Join Patreon if you find the information shared in this blog post useful. Mention ‘Coffee’ in the Subject. So that I can thank you.

    Windows 10
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Viney Dhiman
    • Website
    • Facebook
    • Twitter
    • Instagram
    • LinkedIn

    Himachali, Mechanical Engineer, Snooker Lover, Avid drinker of Scotch, Traveler, and Webmaster.

    Related Posts

    Convert HEIC to JPG without Losing Quality Online for Free

    May 8, 2023

    How to Know Someone Is Lying to You Online

    April 25, 2023

    How to Add Text Box to PDF on Mac? Three Effective Ways

    April 18, 2023

    How to Recover Data From SD Card Using Recuva

    April 17, 2023
    View 12 Comments

    12 Comments

    1. anthony on March 8, 2019 7:24 am

      this doesn’t work at all!

      Reply
      • Viney Dhiman on March 8, 2019 11:51 am

        It should work, you might have done something wrong.

        Reply
        • rajeev on March 18, 2019 4:29 am

          127.0.0.1 in.yahoo.com
          127.0.0.1 http://www.yahoo.com

          127.0.0.1 https://in.yahoo.com/
          127.0.0.1 https://www.yahoo.com/

          tried both the ways , Not working…:(

          Reply
          • Viney Dhiman on March 18, 2019 11:59 am

            Thanks for sharing your query. Instead of 127.0.0.1 use 0.0.0.0 yahoo.com and save the host file. This will block the site for sure.

            Reply
            • Stephane Tremblay on September 18, 2019 2:38 am

              the 0.0.0.0 is not working either

            • Geekermag Staff on September 19, 2019 12:04 pm

              Thanks for the update, I have updated the blog post and its working fine at my end. You need to add the code as shown in the screenshot in the article.

              Also, make sure to relaunch the browser after adding the site in the host’s file. Give me the feedback.

    2. invisable on December 5, 2019 5:18 am

      its bollocks lol cant you grasp the proof of the user ? this wont work so easy in win 10 , uninstall your linux , copywriter !

      Reply
    3. Seth Joel on June 26, 2020 9:39 am

      This doesn’t work

      Reply
    4. Seth Joel on June 26, 2020 9:54 am

      Apologies! Hi everyone! This method does work. It won’t work for those of you who are using User administrator accounts. You’ll have to login with the system’s administrator account to set it up.

      Reply
    5. Ulises Nunez on June 27, 2020 12:56 am

      I think that it should be noted in this methodology that you should add websites you intend to block both with and without prefacing the url by “www.”. For example, if I add 127.0.0.1 youtube.com to the add, then YouTube isn’t blocked. However, if I add both I add 127.0.0.1 youtube.com AND I add 127.0.0.1 http://www.youtube.com, then YouTube is blocked. Same with many other websites (NYTimes, Netflix, RealClearPolitics, etc.). I hope this helps!

      Reply
    6. Ulises Nunez on June 27, 2020 12:59 am

      I think that it should be noted in this methodology that you should add websites you intend to block both with and without prefacing the url by “www.”. For example, if I add 127.0.0.1 youtube.com to the block list, then YouTube isn’t blocked. However, if I add both 127.0.0.1 youtube.com AND I add 127.0.0.1 http://www.youtube.com, then YouTube is blocked. Same with many other websites (NYTimes, Netflix, RealClearPolitics, etc.). I hope this helps!

      Note: I am not sure why this works, so I can’t explain it.
      *Note: my previous comment had several typos. If the moderators could delete that comment it would be great!

      Reply
    7. SAI vineetha reddy on August 15, 2020 6:50 pm

      its not working

      Reply

    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Recommend App

    Free HEIC to JPG Converter Online

    Fix Windows Issues

    Use OutByte PC Repair and OutByte Driver Updater. Recommended for Fixing Issues and Updating Drives on Windows PC. Trusted by Millions.

    Need Support?

    Please do not hesitate to Contact me on Twitter or Join Facebook Group if you want assistance with issue related to Windows 11, Windows 10, and Edge browser. I will try my best to assist you ASAP. (Follow me first and then PM your issue on Twitter)

    Our Picks

    How to Remove Pride Flag from Widget Board in Windows 11

    June 2, 2023

    How to Enable Dark Mode in Paint App in Windows 11 22H2 (Right Now)

    June 2, 2023

    How to Disable ‘Recommended Websites’ Ads in Windows 11 Start menu

    June 2, 2023

    How to Create Virtual Drive (VHD, VHDX) from Windows 11 Settings App

    June 2, 2023
    Help Us Grow!

    Donate on Paypal or Buy us a coffee or Join Patreon if you find the information shared in this blog post useful. Mention ‘Coffee’ in the Subject. So that I can thank you

    Facebook Twitter YouTube
    • About
    • Contact
    • Privacy Policy
    • TOC
    © 2023 All Rights Reserved | GeekerMag

    Type above and press Enter to search. Press Esc to cancel.