How to Block a Website on Windows 10

In this post, we’ll see how to block a website on Windows 10 with no software. Let’s get started.

Steps

Open Notepad as Administrator (to do this: Open Run Command. In it, type notepad and then press Ctrl + Shift + Enter keys simultaneously. Hit “Yes” in the UAC pop-up).

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.

Entered sites

After that, hit “File” and then hit the “Save.”

That’s it. All done.

To Unblock a Site:

Remove the line regarding the site

OR

Comment the line by putting # at the front of it.

Sharing is caring!

Scroll to Top