How to Find and Edit the Hosts File in Windows 11 (Block Websites)
While we have different methods to block websites, the most popular and the best option is editing the Hosts file. However, the problem with restricting websites via the Hosts file is that the file is hidden deep under the system installation folder, and editing it requires administrator access.
How to Find the Hosts File in Windows 11
The host file in Windows 11 resides deep in the System 32 folder. Finding host files in Windows 11 could be complicated, but you can make things easy by knowing the exact path.
1. Open the File Explorer on your PC and double-click on your system installation drive.
2. On the System installation drive, usually Local Disk C:, double-click on Windows.
3. In the Windows folder, find and double-click on the system32 folder.
4. In the System32 folder, find the drivers folder. If you can’t find the driver’s folder, utilize the search option to find it.
5. On the driver’s folder, double-click on the etc folder.
6. Click the view button on the top bar and select Show > Hidden items. Now, you will find a file named Hosts.
How to Block Websites Using the Hosts File?
If you want to block websites using the host file, you first need to log in to your administrator account on Windows 11. If you don’t want to use the administrator account, you can grant the administrator permission to your user account
Before editing the Hosts file, copy the original file to a safe location. Double-click on the Hosts file and select Notepad to open it.
If you want to block any website, add a line at the bottom of the host file. The line you need to add is:
0.0.0.0 facebook.com
The above line will block the Facebook website on your device. You can add as many websites to the host file as you want. The web address should appear after 0.0.0.0
Click the File button and select the Save option. This will block the website on your Windows 11 PC.
If you want to unblock the website, you need to delete the line you have added to the host file. Or else, you can add a # at the beginning of the line to convert the syntax into a comment.
This is how you can edit the host file in Windows 11 to block websites. Now, whenever you try to visit the site, you will see a screen like the one below.
That’s all about how to find and edit the hosts file in Windows 11. If anything goes wrong, you need to replace the edited hosts file with the original one you copied before. If you have any doubts, let us know in the comments below.
The post How to Find and Edit the Hosts File in Windows 11 (Block Websites) appeared first on TechViral.
ethical hacking,hacking,bangla ethical hacking,bangla hacking tutorial,bangla tutorial,bangla hacking book,ethical hacking bangla,bangla,hacking apps,ethical hacking bangla tutorial,bangla hacking,bangla hacking pdf,bangla hacking video,bangla android hacking,bangla hacking tutorials,bangla fb hacking tutorial,bangla hacking book download,learn ethical hacking,hacking ebook,hacking tools,bangla ethical hacking course, tricks,hacking,ludo king tricks,whatsapp hacking trick 2019 tricks,wifi hacking tricks,hacking tricks: secret google tricks,simple hacking tricks,whatsapp hacking tricks,tips and tricks,wifi tricks,tech tricks,redmi tricks,hacking trick paytm cash,hacking trick helo app,hacking trick of helo app,paytm cash hacking trick,wifi password hacking,paytm cash hacking trick malayalam,hacker tricks, tips and tricks,pubg mobile tips and tricks,tricks,tips,tips and tricks for pubg mobile,100 tips and tricks,pubg tips and tricks,excel tips and tricks,google tips and tricks,kitchen tips and tricks,season 2 tips and tricks,android tips and tricks,fortnite tips and tricks,godnixon tips and tricks,free fire tips and tricks,advanced tips and tricks,whatsapp tips and tricks, facebook tricks,facebook,facebook hidden tricks,facebook tips and tricks,facebook latest tricks,facebook tips,facebook new tricks,facebook messenger tricks,facebook android app tricks,fb tricks,facebook app tricks,facebook tricks and tips,facebook tricks in hindi,tricks,facebook tutorial,new facebook tricks,cool facebook tricks,facebook tricks 2016,facebook tricks 2017,facebook secret tricks,facebook new tricks 2020,blogger blogspot seo tips and tricks,blogger tricks,blogger,blogger seo tips,blogger seo tips and tricks,seo for blogger,blogger seo in hindi,blogger seo best tips for increasing visitors,blogging tips and tricks,blogger blog seo,blogger seo in urdu,adsense approval trick,blogging tips and tricks for beginners,blogging tricks,blogger tutorial,blogger tricks 2016,blogger tricks 2017 bangla,tricks,bangla tutorial,bangla magic,bangla motivational video,bangla tricks,bangla tips,all bangla tips,magic tricks,akash bangla tricks,top 10 bangla tricks,tips and tricks,all bangla trick,bangla computer tricks,computer bangla tricks,bangla magic card tricks,ms word bangla tips and tricks,bangla computer tips,trick,psychology tricks,youtube bangla,magic tricks bangla,si trick Credit techviral