On Windows 11, you have multiple ways to block time-consuming or distracting websites.

For example, using Google Chrome, you’re able to installextensions to block websites.

you might also use third-party software ormake rules in the firewallto prevent specific sites from opening on your equipment.

Windows

Why to Edit the Hosts file?

  1. pop fire up File Explorer on your PC and double-tap on your system installation drive.

On the System installation drive (usually Local Disk (C:)), double choose theWindows.

system32

On the Windows folder, find and double-choose thesystem32folder.

On the system32 folder, find thedriversfolder.

If you cant find the drivers folder, utilize the search option to find it.

drivers

On the drivers folder, double-press the,etcfolder.

On the etc folder, poke the view button on the top bar and selectShow > Hidden items.

Now, you will find a file namedHosts.

double click on the etc folder

How to Block Websites Using Hosts File?

Then, double-tap on the Hosts file and selectNotepadto open it.

If you want to block any website, ydd a line at the bottom of the host file.

file named ‘Hosts’

You canadd as many websites to the host file as you want.

The web address should appear after 0.0.0.0

Once youve done this, click theFilebutton and select theSaveoption.

This will block the website on your Windows 11 PC.

select Notepad

If you want to unblock the website, you need todelete the line you have addetoin the host file.

This is how you might edit the host file in Windows 11 to block websites.

Now, whenever you attempt to visit the site, you will see a screen like the one below.

0.0.0.0 facebook.com

How to Hide Apps in Realme Phones

Google Chrome Not Saving Password?

8 Ways to Fix it

How To Fix Mobile Hotspot Connected but No Internet on Android

click on the File button and select the ‘Save’ option

delete the line you have added

host file in Windows 11

How to Hide Apps in Realme Phones

Fix Google Chrome Not Saving Password

How To Fix Mobile Hotspot Connected but No Internet on Android