In this post, we’ll see how to block a website on Windows 10 with no software. Let’s get started.
Hit on File > Open.
Go to this location in the pop-up: C:\Windows\system32\drives\etc.
Now, choose “All Files” from the drop-down list above the “Open” button, and you can see the “hosts” file. Double-click it.
Now, at the end of the file, in a new line, type: 127.0.0.1 thewebsiteyouwanttoblock
Remember that you need to use the exact URL of the site. I want to block Facebook. So, I need to enter 127.0.0.1 www.facebook.com
I hope you got the point. Now, do the same for all the websites you want to block.
After that, hit “File” and then hit the “Save.”
That’s it. All done.
To Unblock a Site:
Remove the line regarding the site
Comment the line by putting # at the front of it.