Subscribe to Updates

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

    What's Hot

    How to Enable “Fix problems using Windows Update” option in Windows 11 Settings

    January 27, 2023

    Fix – Windows Terminal 1.16 Won’t open (Startup issue)

    January 27, 2023

    How to Display or Show Desktop Icons in Windows 11 (Desktop Shortcuts)

    January 27, 2023
    What's Hot

    How to Enable “Fix problems using Windows Update” option in Windows 11 Settings

    January 27, 2023

    Fix – Windows Terminal 1.16 Won’t open (Startup issue)

    January 27, 2023

    How to Display or Show Desktop Icons in Windows 11 (Desktop Shortcuts)

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

      How to Enable “Fix problems using Windows Update” option in Windows 11 Settings

      January 27, 2023

      Fix – Windows Terminal 1.16 Won’t open (Startup issue)

      January 27, 2023

      How to Display or Show Desktop Icons in Windows 11 (Desktop Shortcuts)

      January 27, 2023

      How to Add or Remove (Unpin) Widgets in Windows 11

      January 26, 2023

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

      May 21, 2022

      Fix: Chrome, Edge, Firefox Crashes with 0xc0000022 After Windows 11, 10 April 2022 Updates

      April 16, 2022

      How to Disable ‘Search Highlights’ in Windows 11 & Windows 10

      March 25, 2022

      How to Increase Virtual Memory Size in Windows 11 & 10

      March 15, 2022

      How to Enable “Fix problems using Windows Update” option in Windows 11 Settings

      January 27, 2023

      Fix – Windows Terminal 1.16 Won’t open (Startup issue)

      January 27, 2023

      How to Display or Show Desktop Icons in Windows 11 (Desktop Shortcuts)

      January 27, 2023

      How to Add or Remove (Unpin) Widgets in Windows 11

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

      How to Automatically Hide Sidebar for Apps in Microsoft Edge

      January 24, 2023

      How to Split Screen in Microsoft Edge & Compare Two Tabs

      January 24, 2023

      Fix – Microsoft Edge creates shortcuts on the desktop after each update

      January 21, 2023

      Fix – Microsoft Edge v109 Printing issue due to Special (Umlaut) characters

      January 19, 2023

      How to Disable Windows 10 Upgrade Prompt in Google Chrome

      December 7, 2022

      Stop Chrome, Edge Spell Check feature from leaking Passwords

      September 20, 2022

      How to Take Full Page Screenshot in Chrome without Extension

      May 5, 2022

      How to Access or Disable Side Panel in Google Chrome

      March 27, 2022

      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

      How to Enable “Fix problems using Windows Update” option in Windows 11 Settings

      January 27, 2023

      Fix – Windows Terminal 1.16 Won’t open (Startup issue)

      January 27, 2023

      How to Display or Show Desktop Icons in Windows 11 (Desktop Shortcuts)

      January 27, 2023

      How to Add or Remove (Unpin) Widgets in Windows 11

      January 26, 2023
    • Gaming

      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

      How to Stream Xbox One Games to a Windows 11 & 10 PC

      October 25, 2021
    • Best Of

      What Should You Look at Before Choosing Automatic Captioning Software?

      April 20, 2022

      10 Best Windows 11 Laptop to Buy in 2022

      March 16, 2022

      5 Best Logo Maker Sites to Create a Logo in 2022

      January 9, 2022

      9 Best Apps to Track Your Habits & More Productive

      November 11, 2021

      10 Best Apps for Editing Your Videos on iPhone

      November 7, 2021
    • How to

      How to Make Coding Fun

      May 25, 2022

      How to Add Captions and Subtitles to Your YouTube Video

      April 25, 2022

      How to Enable or Disable New Gmail 2022 User Interface

      March 5, 2022

      Fix – Stop Edge from Hijacking/Opening PDF Files – (Workaround)

      February 21, 2022

      Three Tips to Help Organize Your Email Inbox

      December 22, 2021
    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
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Share
    Facebook Twitter LinkedIn Pinterest Email

    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.

    Please do not hesitate to Contact me on Twitter 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)

    Buy us a coffee if you find information shared in this blog post useful. Mention ‘Coffee’ in 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

    How to Make Coding Fun

    May 25, 2022

    How to Add Captions and Subtitles to Your YouTube Video

    April 25, 2022

    How to Enable or Disable New Gmail 2022 User Interface

    March 5, 2022

    Fix – Stop Edge from Hijacking/Opening PDF Files – (Workaround)

    February 21, 2022
    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.

    Download Windows 11 Native Screen Recording Tool
    Our Picks

    How to Enable “Fix problems using Windows Update” option in Windows 11 Settings

    January 27, 2023

    Fix – Windows Terminal 1.16 Won’t open (Startup issue)

    January 27, 2023

    How to Display or Show Desktop Icons in Windows 11 (Desktop Shortcuts)

    January 27, 2023

    How to Add or Remove (Unpin) Widgets in Windows 11

    January 26, 2023
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube

    Subscribe to Updates

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

    Need Support?

    Please do not hesitate to Contact me on Twitter 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)

    Help Us Grow!

    Buy us a coffee if you find information shared in this blog post useful. Mention ‘Coffee’ in Subject. So that I can thank you

    Do you find the information shared on our blog useful? You might want to check Hot Deals on Amazon for your next purchase. With this, you support our site and the prices will remain the same for you ( you don't need to pay any extra amount) We appreciate your support, Thank you!

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

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