Websites can be locked in Windows 11 and 10 with a few steps. We show you what methods there are and how you use them.
- Lock websites via the hosts file
-
Lock websites via Windows Children's Protection
-
Block websites about browser extensions
The internet is full of exciting content, but not everything is suitable for children. To ensure that you only access age -appropriate websites, you can specifically block certain pages. This prevents her from being called up to unsuitable or potentially dangerous content.
But the function can also be practical for yourself. For example, to avoid certain websites or prevent third parties from getting to your data. We show you what options Windows 10 and Windows 11 offers and how you implement the block step by step.
Block/block websites
The “hosts” file is an easy way to block certain websites on a Windows 11 PC. This file controls how your computer treats certain Internet addresses. By determining there that a website refers to an invalid address, you prevent access to it.
Lock websites via the hosts file
-
1
To block a website, you first have to edit the “hosts” file. To do this, open the editor with administrator rights.
-
2
To do this, click on the search field in the Windows tasta bar, enter “Editor” and right-click on the search result.
-
3
Then select “Run as administrator” so that you can make the necessary changes.
-
4
As soon as the editor is open, click on “File” at the top and then on “Open”.
-
5
Now navigates to the folder “C: \ Windows \ System32 \ Drivers \ etc”. By default, only text files are displayed, which is why you have to switch to “All files” below at “File type”. Then you can see the “Hosts” file that you now open.
-
6
To lock a website, add a new line with the following structure at the end of the file: “127.0.0.1 www.blockteweb page.com”
-
7
Replaces “blockedeweb page.com” with the address of the page that you want to lock. If you want to block several websites, simply add a new line in the same format for each page.
-
8
After you have added all the desired pages, save the file by pressing Ctrl + S or clicking on “File” and then “Save”. So that the changes become effective, you have to restart your PC.
If you want to release a website later, open the “Hosts” file again and remove the added lines. Then save the file and restart the PC to take over the changes.
Free VPNs for Windows
Virtual private network for Windows PCs
Do you want to surf anonymously and safely online without having to spend money? We show you the best free VPN providers for Windows 10 and Windows 11.
Lock websites via Windows Children's Protection
If you want to prevent children or other users from calling out certain websites, you can use Windows family settings. These make it possible to block websites in a targeted manner and allow age -appropriate content.
Open the settings with Windows + I and then navigate to “accounts” on “family”. If the child affected does not yet have its own user account, creates a new children's account. Otherwise, the existing children's account selects and click on “Manage family settings”. This option opens the Microsoft Family Safety website in the browser.
There you can activate the web and search filters to automatically block inappropriate content. In addition, you can add certain pages to “blocked websites” that may not be called up. As soon as the changes are saved, they apply to the selected account.
Block websites about browser extensions
Browser extensions are a simple alternative to the host file or Windows settings. Many browsers such as Chrome or Firefox offer add-ons with which websites can be locked:
- Chrome: The Blocksite expansion enables websites to be blocked with just a few clicks.
- Firefox: There are also block site or similar add-ons with individual blocking functions.
- Edge: Microsoft Edge offers under the settings> Data protection, search & services a child lock with which you can block websites.
This method is particularly practical if you only want to limit the lock to certain browsers.
Regardless of whether you want to protect children from unsuitable content or simply block certain websites – Windows offers you various options for this. The hosts file is a quick and permanent solution, while Windows child protection is particularly practical for families.
If you only need the lock in certain browsers, browser extensions such as block site will help. Which method ultimately suits you depends best on how flexible or permanently the lock should be.
- » Tipp: The best VPN providers for more security and data protection
- »Buy the balcony power plant: Compare the best solar systems
Nothing missed with that NetworkNewsletter
Every Friday: the most informative and entertaining summary from the world of technology!
Table of Contents



