Close Menu
    Facebook X (Twitter) Instagram
    • About
    • Contact
    • Career
    Facebook X (Twitter) Instagram Pinterest LinkedIn WhatsApp
    Geeker Mag.
    • Windows
      50 Rainmeter Skins That Will Rock Your Desktop in 2024

      50 Rainmeter Skins & Themes To Customize Your Windows Desktop

      December 1, 2026
      Windows 11 Is Tracking You for Ads? Disable These 5 Settings

      Windows 11 Is Tracking You for Ads? Disable These 5 Settings

      August 19, 2026
      How to Install Windows 11 25H2 on Unsupported PC (2026 Guide)

      How to Install Windows 11 25H2 on Unsupported PC (2026 Guide)

      March 2, 2026
      How to Check if Your PC has the New Windows UEFI CA 2023 Secure Boot Certificate

      How to Check if Your PC has the New Windows UEFI CA 2023 Secure Boot Certificate

      February 17, 2026
      How to Fix Slow Internet on Windows 11 (Change DNS Settings)

      How to Fix Slow Wifi- Internet Speed on Windows 11 (2026 Guide)

      January 12, 2026
    • Gaming
      how to reset roblox password and recover roblox account

      How to Reset Roblox Password (2026 Update) – Step-by-Step Guide

      January 7, 2026
      how to fix corrupted database on ps5

      How to Fix Corrupted Database on PS5 (Rebuild Database)

      January 7, 2026
      How to Gameshare on PS5 with Your Friends

      How to Gameshare on PS5 with Your Friends (Full Guide)

      November 28, 2025
      How to Enable Voice Chat in Roblox (Full Guide for 2025)

      How to Enable Voice Chat in Roblox (Full Guide for 2025)

      May 6, 2025
      🎮 How to Fix Game Share Locked Issue on PS5 (Step-by-Step Guide)

      How to Fix Game Share Locked Issue on PS5 (Step-by-Step Guide)

      April 18, 2025
    • Browser
      Chrome Downloading AI Files? How to Find & Delete Them

      Chrome Downloading AI Files? How to Find & Delete Them

      August 9, 2026
      How to Fix Slow Download Speed in Microsoft Edge

      How to Fix Slow Download Speed in Microsoft Edge

      January 10, 2026
      fix slow download speed chrome 1

      How to Fix Slow Download Speeds in Google Chrome

      January 10, 2026
      how to use custom dns in microsoft edge

      How to Change DNS in Microsoft Edge Use Custom DNS (Google & Cloudflare)

      January 7, 2026
      How to Change DNS in Google Chrome (Use Custom DNS – Cloudflare & Google)

      How to Change DNS in Google Chrome (Use Custom DNS – Cloudflare & Google)

      January 7, 2026
    • Mobile
      turn on now

      Fix Samsung “Can’t Use Mobile Hotspot when restricted background data is ON” Issue

      February 19, 2022
      Fix - One UI 3.0 Isn't showing battery stats for 2021 on Galaxy phone

      Fix – One UI 3.0 Isn’t showing battery stats for 2021 on Galaxy phone

      January 5, 2021
      How to Disable Samsung Galaxy A51 Apps Notifications

      How to Turn-off and Disable Samsung Galaxy A51 Apps Notifications

      March 24, 2020
      How to Take Screenshot in Samsung Galaxy A51

      How to Take Screenshot in Samsung Galaxy A51 (Four Methods)

      March 23, 2020
      How to Enable Call Recording Feature in Samsung Galaxy A51

      How to Enable Call Recording Feature in Samsung Galaxy A51

      March 20, 2020
    • AI
      How AI Can Help Writers Be Better

      How AI Can Help Writers Be Better

      May 6, 2025
      How to Create Ghibli Images for Free ChatGPT (No Skills Needed!)

      How to Create Ghibli Images for Free ChatGPT (No Skills Needed!)

      April 5, 2025
      deepseek login problem

      Gmail Not Receiving DeepSeek Verification Code Fix – DeepSeek Login Problem

      January 31, 2025
      Copy of USE OLD COPILOT

      How to Use Old Version of Microsoft Copilot

      December 2, 2024

      How to Generate Unlimited AI Images for Free: With This Method

      November 26, 2024
    • More
      50 Rainmeter Skins That Will Rock Your Desktop in 2024

      50 Rainmeter Skins & Themes To Customize Your Windows Desktop

      December 1, 2026
      bill keeper in house

      Every Household Has a Bill Keeper. One App Wants to Retire the Role.

      September 26, 2026
      dafio

      How Dafio Decides Which Card You Should Tap, And Why It Shows You The Arithmetic

      September 2, 2026
      Windows 11 Is Tracking You for Ads? Disable These 5 Settings

      Windows 11 Is Tracking You for Ads? Disable These 5 Settings

      August 19, 2026
      Windows PC Running Slow? Here’s How to Clear RAM Cache

      Windows PC Running Slow? Here’s How to Clear RAM Cache

      August 10, 2026
    Geeker Mag.
    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)

    Viney DhimanBy Viney DhimanSeptember 19, 2019Updated:December 29, 202312 Comments4 Mins Read
    How to Block Websites on Microsoft Edge in Windows 10

    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 that time the company has introduced lots of useful features and one of them is a parental control feature. Users can take the help of this security feature to block certain sites on the 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 types of websites.

    The parental Control feature has the part of the Edge browser for a long time. And blocking sites using this feature is not very 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 are 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 that 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 that you want to block

    Next, you need to type links of the sites that 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 as 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 that 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 the Edge browser. Maybe, the company will introduce 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.

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

    Windows 10
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleFix – Windows 10 1903 Update (18362.329) Causes High CPU Usage (SearchUI.exe) and Search Not Working
    Next Article How to Play Chrome Dinosaur Game Dino Run without Going Offline
    Viney Dhiman
    • Website
    • Facebook
    • X (Twitter)
    • Instagram
    • LinkedIn

    Viney Dhiman, the mind behind GeekerMag, is a seasoned content writer with over 12 years of experience. Specializing in simplifying complex tech concepts, he covers Windows OS, Android, iOS, web apps, and product reviews. His work can be found on popular tech websites like Gizmodo and The Verge, and he has been interviewed by the Microsoft Edge team.

    Related Posts

    Best VPN for Windows 10
    Windows

    10 Best Free VPNs for Windows 11/10 PC – 2025 (Updated)

    January 3, 2025
    TRANSLATE PDF FILE TO DIFFERENT LANGUAGE
    How to

    How to Translate PDF Files into Any Language (Workaround)

    December 30, 2024
    How to Get Copilot on Your Windows 10 Taskbar.
    Windows

    How to Get Copilot on Your Windows 10 Taskbar (Right now)

    June 6, 2024
    View 12 Comments

    12 Comments

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

      this doesn’t work at all!

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

        It should work, you might have done something wrong.

        • 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…:(

          • 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.

            • 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 !

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

      This doesn’t work

    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.

    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!

    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!

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

      its not working

    Trending Posts
    50 Rainmeter Skins That Will Rock Your Desktop in 2024

    50 Rainmeter Skins & Themes To Customize Your Windows Desktop

    December 1, 2026
    how to fix corrupted database on ps5

    How to Fix Corrupted Database on PS5 (Rebuild Database)

    January 7, 2026
    4k video downloaders failed to download youtube videos

    4K Video Downloader Failed to Download Videos (April 2025)

    April 26, 2025
    How to Completely Disable Leo AI in Brave Browser (Step-by-Step Guide)

    How to Completely Disable Leo AI in Brave Browser (Step-by-Step Guide)

    April 8, 2025
    How to Remove "Learn more about this picture" icon from Windows 11 Desktop

    How to Remove “Learn about this picture” icon from Windows 11 Desktop

    January 2, 2025
    How to Connect or Pair Your PS5 Controller to Windows PC

    How to Connect or Pair Your PS5 Controller to Windows PC

    December 18, 2024
    Facebook X (Twitter) Instagram Pinterest WhatsApp Telegram
    • About
    • Contact
    • Editorial Guidelines
    • Privacy
    • TOC
    © 2026 Geeker Mag. | Maintained by Viney Dhiman.

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

    Powered by CookieAdmin
    Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
    None
    Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
    None
    Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
    None
    Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
    None
    Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
    None
    Powered by CookieAdmin
    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.