How to Find and Edit the Hosts File in Windows 11 (Block Websites)

0
Hosts-file-featured.jpg

How to Find and Edit the Hosts File in Windows 11 (Block Websites)

On Home windows 11, you have got a number of methods to dam time-consuming or distracting web sites. For instance, if you happen to use Google Chrome, you may set up extensions to block websites. Or else, you should utilize third-party software program or make rules in the firewall to forestall particular websites from opening in your machine.

Whereas now we have totally different strategies to dam web sites, the preferred and the best choice is enhancing the Hosts file. Nonetheless, the issue with proscribing web sites by way of the Hosts file is that the file is hidden deep underneath the system set up folder, and enhancing it requires administrator entry.

Steps to Discover and Edit the Hosts File in Home windows 11 (Block Web sites)

Nonetheless, as soon as you recognize the method, issues will turn into a lot simpler. Therefore, in case you are interested by discovering and enhancing the hosts recordsdata in Home windows 11 to dam particular web sites, you have got landed on the precise web page. Beneath, now we have shared a step-by-step information on discovering and enhancing hosts file in Home windows 11. Let’s get began.

Easy methods to Discover the Hosts file in Home windows 11

As talked about above, the hosts file in Home windows 11 resides deep within the System 32 folder. Discovering hosts file in Home windows 11 might be sophisticated, however you can also make issues simple by realizing the precise 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 (normally Native Disk (C:)), double click on on the Home windows.

Windows

3. On the Home windows folder, discover and double click on on the system32 folder.

system32

4. On the system32 folder, discover the drivers folder. In case you can’t discover the drivers folder, make the most of the search possibility to seek out it.

drivers

5. On the drivers folder, double click on on the and many others folder.

double click on the etc folder

6. On the and many others folder, click on on the view button on the highest bar and choose Present > Hidden objects. Now you will see that a file named ‘Hosts

file named 'Hosts'

That’s it! That is the hosts file that you’ll want to edit to dam web sites.

Easy methods to Block Web sites utilizing Hosts File?

If you wish to block web sites utilizing the hosts file, you first have to log in to your administrator account on Home windows 11. In case you don’t need to use the administrator account, you may grant the administrator permission to the person account you’re utilizing.

Earlier than enhancing the Hosts file, copy the unique file to a secure location. Subsequent, double-click on the Hosts file and choose Notepad to open the file.

select Notepad

If you wish to block any web site, you’ll want to add a line on the backside of the hosts file. The road you’ll want to add is:

0.0.0.0 fb.com

0.0.0.0 facebook.com

The above line will block the Fb web site in your machine. You may add as many web sites to the hosts file as you need. The online handle ought to seem after 0.0.0.0

As soon as carried out, click on on the File button and choose the ‘Save‘ possibility. That’s it! This may block the web site in your Home windows 11 PC.

click on the File button and select the 'Save' option

If you wish to unblock the web site, you’ll want to delete the road you have got added within the hosts file. Or else, you may add # at the start of the road to transform the syntax right into a remark.

delete the line you have added

That’s it! That is how one can edit the hosts file in Home windows 11 to dam web sites. Now every time you’ll attempt to go to the location, you will notice a display screen like under.

So, that’s all about tips on how to discover and edit the hosts file in Home windows 11. If something goes incorrect, you’ll want to substitute the edited hosts file with the unique one you copied earlier than. When you’ve got any doubts about this, tell us within the feedback under.