On Windows 11, there are multiple ways to block websites, but editing the Hosts file is the most popular and effective method.
To find the Hosts file in Windows 11, open File Explorer, navigate to the system installation drive, Windows folder, system32 folder, drivers folder, etc folder, and locate the Hosts file.
To block websites using the Hosts file, log in as an administrator, open the Hosts file with Notepad, and add a line with the format '0.0.0.0 [website]' to block the desired site. Save the file to apply the block.
To unblock a website, either delete the corresponding line in the Hosts file or comment it out by adding a '#' at the beginning of the line.