On Windows 11, you may have a number of methods to block time-consuming or distracting web sites. For instance, should you use Google Chrome, you possibly can set up extensions to block web sites. Or else, you should use third-party software program or make guidelines in the firewall to stop particular websites from opening in your machine.
While we now have completely different strategies to block web sites, the hottest and the best choice is enhancing the Hosts file. However, the downside with limiting web sites through the Hosts file is that the file is hidden deep below the system set up folder, and enhancing it requires administrator entry.
Steps to Find and Edit the Hosts File in Windows 11 (Block Websites)
However, as soon as you already know the course of, issues will turn into a lot simpler. Hence, in case you are in discovering and enhancing the hosts information in Windows 11 to block particular web sites, you may have landed on the proper web page. Below, we now have shared a step-by-step information on discovering and enhancing hosts file in Windows 11. Let’s get began.
How to Find the Hosts file in Windows 11
As talked about above, the hosts file in Windows 11 resides deep in the System 32 folder. Finding hosts file in Windows 11 may very well be sophisticated, however you may make issues simple by figuring out the actual path.
1. First, open the File Explorer in your PC and double click on in your system set up drive.
2. On the System set up drive (often Local Disk (C:)), double click on on the Windows.
3. On the Windows folder, discover and double click on on the system32 folder.
4. On the system32 folder, discover the drivers folder. If you possibly can’t discover the drivers folder, make the most of the search possibility to discover it.
5. On the drivers folder, double click on on the and so on folder.
6. On the and so on folder, click on on the view button on the high bar and choose Show > Hidden gadgets. Now you’ll find a file named ‘Hosts‘
That’s it! This is the hosts file that you simply want to edit to block web sites.
How to Block Websites utilizing Hosts File?
If you need to block web sites utilizing the hosts file, you first want to log in to your administrator account on Windows 11. If you don’t need to use the administrator account, you possibly can grant the administrator permission to the person account you might be utilizing.
Before enhancing the Hosts file, copy the unique file to a secure location. Next, double-click on the Hosts file and choose Notepad to open the file.
If you need to block any web site, you want to add a line at the backside of the hosts file. The line you want to add is:
The above line will block the Facebook web site in your machine. You can add as many web sites to the hosts file as you need. The net deal with ought to seem after 0.0.0.0
Once completed, click on on the File button and choose the ‘Save‘ option. That’s it! This will block the web site in your Windows 11 PC.
If you need to unblock the web site, you want to delete the line you may have added in the hosts file. Or else, you possibly can add # at the starting of the line to convert the syntax right into a remark.
That’s it! This is how one can edit the hosts file in Windows 11 to block web sites. Now at any time when you’ll attempt to go to the website, you will note a display screen like under.
So, that’s all about how to discover and edit the hosts file in Windows 11. If something goes fallacious, you want to substitute the edited hosts file with the unique one you copied earlier than. If you may have any doubts about this, tell us in the feedback under.