
Navigate to C:\Windows\System32\drivers\etc.Right-click Notepad and select “ Run as administrator“. On Windows 10 search bar, search for “ Notepad“.Here’s how to edit the hosts file to block any website you want in Windows 10. So, to block a website, we only have to map the website to an IP address that is inaccessible by default such as 127.0.0.1. When this website address is requested by your browser or any other program, it will be resolved to that particular IP address instead of its actual one. If you map a certain host name (website address) to a certain IP address. The hosts file is a operating system file in Windows that handles mapping of IP addresses to host names.
How to Block Websites on Microsoft Edge in Windows 10.
